AtCoder Beginner Contest 150 - 500 Yen Coins

Takahashi has K 500-yen coins. (Yen is the currency of Japan.)
If these coins add up to X yen or more, print Yes; otherwise, print No.

-----Constraints-----
 - 1 \leq K \leq 100
 - 1 \leq X \leq 10^5

-----Input-----
Input is given from Standard Input in the following format:
K X

-----Output-----
If the coins add up to X yen or more, print Yes; otherwise, print No.

-----Sample Input-----
2 900

-----Sample Output-----
Yes

Two 500-yen coins add up to 1000 yen, which is not less than X = 900 yen.

Difficulty: EASY

Starter code:

Solutions:
(k, x) = map(int, input().split())
print('No' if 500 * k < x else 'Yes')


(k, x) = map(int, input().split())
print('NYoe s'[500 * k >= x::2])


(K, X) = map(int, input().split())
print('YNeos'[500 * K < X::2])


print('YNeos'[eval(input().replace(' ', '*500<'))::2])


(K, X) = list(map(int, input().split()))
print('Yes' if K * 500 >= X else 'No')


(a, b) = input().split()
print('YNeos'[eval(a + '*500<' + b)::2])


(k, n) = map(int, input().split())
print('Yes' if 500 * k >= n else 'No')


(n, x) = map(int, input().split())
print('No' if n * 500 < x else 'Yes')


(K, X) = [int(x) for x in input().split()]
print('Yes' if K * 500 >= X else 'No')


(k, x) = (int(x) for x in input().split())
print('Yes' if 500 * k >= x else 'No')


(x, y) = map(int, input().split())
print('Yes' if 500 * x >= y else 'No')


(a, s) = map(int, input().split())
if 500 * a >= s:
	print('Yes')
else:
	print('No')


(N, K) = map(int, input().split())
if 500 * N >= K:
	print('Yes')
else:
	print('No')


(a, b) = map(int, input().split())
print('Yes' if a * 500 >= b else 'No')


(k, x) = map(int, input().split())
print('YNeos'[k * 500 < x:5:2])


(K, X) = map(int, input().split())
print(['No', 'Yes'][K * 500 >= X])


(k, x) = map(int, input().split())
d = {1: 'Yes', 0: 'No'}
print(d[k * 500 >= x])


a = list(map(int, input().split()))
if int(a[0]) * 500 >= int(a[1]):
	print('Yes')
else:
	print('No')


print('YNeos'[input()[1:].find('1') >= 0::2])


(a, x) = map(int, input().split())
print('Yes' if a * 500 >= x else 'No')


(N, M) = [int(i) for i in input().split()]
print('Yes' if N * 500 >= M else 'No')


(a, b) = map(int, input().split())
ans = ['Yes', 'No']
print(ans[500 * a < b])


(X, Y) = map(int, input().split())
print('Yes' if X * 500 >= Y else 'No')


(n, s) = map(int, input().split())
print('Yes' if 500 * n >= s else 'No')


(N, A) = map(int, input().split())
print('Yes' if 500 * N >= A else 'No')


(n, y) = map(int, input().split())
print('Yes' if n * 500 >= y else 'No')


(K, X) = input().split()
print('Yes' if 500 * int(K) >= int(X) else 'No')


(k, x) = map(int, input().split())
print(['No', 'Yes'][500 * k >= x])


print('Yes' if eval(input().replace(' ', '*500>=')) else 'No')


(N, X) = map(int, input().split())
print('Yes') if N * 500 >= X else print('No')


(K, X) = map(int, input().split())
ans = 500 * K
if ans >= X:
	print('Yes')
	return
print('No')


(n, k) = map(int, input().split())
print('YNeos'[n * 500 < k::2])


n = input()
x = n.split()
if 500 * int(x[0]) >= int(x[1]):
	print('Yes')
elif 500 * int(x[0]) < int(x[1]):
	print('No')


(k, y) = map(int, input().split())
print('Yes' if 500 * k >= y else 'No')


(a, b) = map(int, input().split())
print('YNeos'[a * 500 < b::2])


import sys
input = sys.stdin.readline
(k, x) = map(int, input().split())
if k * 500 >= x:
	print('Yes')
else:
	print('No')


(n, m) = map(int, input().split())
if n * 500 >= m:
	print('Yes')
else:
	print('No')


import re
print(re.search('.1', input()) and 'No' or 'Yes')


def main():
	(k, x) = list(map(int, input().split()))
	print('Yes' if 500 * k >= x else 'No')

def __starting_point():
	main()
__starting_point()


(k, y) = [int(i) for i in input().split()]
print('Yes' if 500 * k >= y else 'No')


(k, x) = map(int, input().split())
ans = 'Yes'
if 500 * k < x:
	ans = 'No'
print(ans)


(A, X) = [int(i) for i in input().split()]
print('Yes' if 500 * A >= X else 'No')


print(['No', 'Yes'][eval('500*' + input().replace(' ', '>='))])


(k, x) = [int(s) for s in input().split()]
print('YNeos'[int(not 500 * k >= x)::2])


import sys
(K, X) = map(int, next(sys.stdin).split())
print('Yes' if K * 500 >= X else 'No')


m = input().split(' ')
print('Yes' if int(m[0]) * 500 >= int(m[1]) else 'No')


(N, X) = map(int, input().split())
print(['No', 'Yes'][X <= N * 500])


(A, B) = map(int, input().split())
print('Yes' if A * 500 >= B else 'No')


(X, Y) = map(int, input().split())
print('YNeos'[X * 500 < Y::2])


(num500, total) = map(int, input().split())
print('Yes' if num500 * 500 >= total else 'No')


(a, k) = map(int, input().split())
if a * 500 >= k:
	print('Yes')
else:
	print('No')


ri = lambda S: [int(v) for v in S.split()]

def rii():
	return ri(input())
(K, X) = rii()
print('Yes' if K * 500 >= X else 'No')


(f, x) = map(int, input().split())
print('Yes' if f * 500 >= x else 'No')


import math
from collections import Counter
from itertools import product
ii = lambda : int(input())
mi = lambda : map(int, input().split())
li = lambda : list(map(int, input().split()))
(k, x) = mi()
if 500 * k >= x:
	print('Yes')
else:
	print('No')


(x, b) = map(int, input().split())
print('Yes' if x * 500 >= b else 'No')