TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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`.

Submission attempts (in order):
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,copy,time,os
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

# In[]:
debug = os.getcwd()[0] == "C"
debug

# In[]:
if DEBUG:
    K,X = 2,900
else:
    K,X = inpl()

# In[]:
if K*500 >= X:
    print("Yes")
else:
    print("No")


from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,copy,time
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

K,X = inpl()
if K*500 >= X:
    print("Yes")
else:
    print("No")


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k,x = map(int,input().split())
K = 500*k
if x <= k:
    print("Yes")

else:
    print("No")

k,x = map(int,input().split())
K = 500*k
if x > k:
    print("No")

else:
    print("Yes")

k,x = map(int,input().split())
K = 500*k
if x > K:
    print("No")
else:
    print("Yes")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
x,y=map(int,input().split())
if 500*x>=y:
  print("yes")
else:
  print("no")

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n,m = maps(int,input().split())
if n*500>=m:
  print("Yes")
else:
  print("No")

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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k,x=mpa(int,input().split())
if 500*k >= x:
  print("Yes")
else:
  print("No")



k,x=map(int,input().split())

if k*500>=x:
    print("Yes")
else:
    print("No")


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K,X=input().split()
if(int(K)*500>int(X)):
  print("yes")
else:
  print("no")

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
s = input()
s = s[:n]
count = s.count("ABC")
print(count)

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K,X=map(int,input())

if 500*K>=X:
  print("Yes")
else:
  print("No")

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K, X = map(int, input().split())
if 500*K >= X:
    print('YES')
else:
    print('NO')

K, X = map(int, input().split())
if 500*K >= X:
    print('YES')
else:
    print('NO')

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
A = list(map(int, input().split()))
if A[0] * 500 >= A[1]:
  print("Yes")
  else:
    print("No")

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k,x = map(int, input().split())
if 2*k >= x:
  print("Yes")
else:
  print("No")

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


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K, X = map(int, input().split())

if (500 * x) >= K:
    print('Yes')
else:
    print('No')


K, X = map(int, input().split())

if (500 * x) >= K:
    print('Yes')
else:
    print(('No')


K, X = map(int, input().split())

if (500 * K) >= X:
    print('Yes')
else:
    print('No')


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):

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


K, X = input().strip().split()
K, X = [int(K), int(X)]
sougaku = 500*K
if sougaku >= X:
    print('Yes')
    else:
        print('No')


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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k,x = input().split()
if k*500 >= x:
  print("Yes")
else:
  print("No")

k,x = input().split()
if int(k)*500 >= int(x):
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
k, x = input().split()
if x % 500 == 0 and k * 500 <= x:
  print('Yes')
else:
  print('No')


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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a,b = map(int,input().split(" "))
if a * 500 >= b:
    print("yes")
else:
    print("no")


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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K, X = map(int,input().split())
if 500K >= X:
  	print('Yes')
else:
    print('No')

K, X = map(int,input().split())

if 500*K >= X:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
print("Yes" if int(input()) * 500 >= int(input()) else "No")

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
def is_much_money(num_of_coin, yen):
  if num_of_coin * 500 >= yen:
    return "Yes"
  else:
    return "No"

if __name__ == "__main__":
    num_of_coin, yen = int(input().split())
    judgement = is_much_mony(num_of_coin, yen)
    print(judgement)

def is_much_money(num_of_coin, yen):
  if num_of_coin * 500 >= yen:
    return "Yes"
  else:
    return "No"
 
if __name__ == "__main__":
    num_of_coin, yen = input().split()
    judgement = is_much_money(int(num_of_coin), int(yen))
    print(judgement)

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K,X=map(int,input().split())
If K*500>=X:
    print(‘Yes’)
else:
    print(‘No’) 

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
from sys import stdin

line = stdin.readline()
k, x = line.rstrip().split()

if k * 500 >= x:
    print('Yes')
else:
    print('No')

from sys import stdin

line = stdin.readline()
input = [int(x) for x in line.rstrip().split()]

if input[0] * 500 >= input[1]:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: 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`.

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K, X = input().split()
 
if 500 * int(K) >= int(X):
  print("YES")
else:
  print("NO")

N = input()
S = input()
ABCCount  = 0

for n in range(int(N)-2):
    if S[n] == "A" and S[n+1] == "B" and S[n+2] == "C":
        ABCCount = ABCCount + 1

print(ABCCount)

K, X = input().split()

total = int(K) * 500

if total >= int(X):
  print("YES")
else:
  print("NO")

K, X = input().split()

if 500 * int(K) >= X:
  print("YES")
else:
  print("NO")

K, X = input().split()

total = int(K) * 500

if total >= int(X):
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k,x = map(int,input().split())
if x<500*k:
  print("No")
else:
  print("Yes")

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
# -*- coding: utf-8 -*-
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
write = sys.stdout.write
def ii(): return int(readline())
def mi(): return map(int, readline().rstrip().split())
def li(): return list(readline().rstrip())
def lmi(): return list(map(int, readline().rstrip().split()))
def end(*arg): print(*arg); sys.exit()
# template


def main():
    k, x = mi()
    if 500 * k >= x:
        print("YES")
    else:
        print("NO")
    return


if __name__ == '__main__':
    main()


# -*- coding: utf-8 -*-
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
write = sys.stdout.write
def ii(): return int(readline())
def mi(): return map(int, readline().rstrip().split())
def li(): return list(readline().rstrip())
def lmi(): return list(map(int, readline().rstrip().split()))
def end(*arg): print(*arg); sys.exit()
# template


def main():
    k, x = mi()
    if 500 * k >= x:
        print("Yes")
    else:
        print("No")
    return


if __name__ == '__main__':
    main()


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
def main():
    kx = list(map(int, input().split()))
    if kx[1] >= 500*kx[0]:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

def main():
    kx = list(map(int, input().split()))
    if kx[1] <= 500*kx[0]:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K, X = list(map(int, input().split()))
if(500 + K < X):
  print("No")
else:
  print("Yes")

K, X = list(map(int, input().split()))
if(500 * K < X):
  print("No")
else:
  print("Yes")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a,b=map(int,input().split())
if 500 * a >= b:
  print("Yes")
else
print("No")

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K, X = map(int, input().split())

if 500 * K >= X:
    print('YES')
else:
    print('NO')


K, X = map(int, input().split())

if 500 * K >= X:
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
k, x = mao(int, inout().split())
if 500*k < x: print("No")
else: print("Yes")
  

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n = input()
print(input().count("ABC"))


k, x = map(int, input().split())
if 500*k >= X:
  print("Yes")
else:
  print("No")

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


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
x,k = map(int,input().split())

if 500*x >= k:
  print('YES')
  
  else:
    print('NO')
    
    

x,k = map(int,input().split())

if 500*x >= k:
  print('YES')
  
else:
    print('NO')
    
    


X,K = map(int,input().split())

if 500*X >= K:
  print('Yes')
  
else:
    print('No')

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a,b=map(int,input().split())
c=int(500*a-b)
if c >0:
  print(Yes)
else:
  print(No)

a,b=map(int,input().split())
c = int(500*a-b)
if c >=0:
  print("Yes")
else:
  print("No")


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K,X = map(input().split())
if K*500 > X-1:
  print('Yes')
else:
  print('No')

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k, x = input().split("")
k = int(k)
x = int(x)
if 500*k >= x:
  print('Yes')
else:
  print('No')

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k, x = map(int, input().split())
print("Yes" if x >= k * 500 else "No")

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
if __name__ == "__main__":
    x = int(input())
    m, n = map(int, input().split())
    if m * 500 >= n:
        print("Yes")
    else:
        print("No")


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


Verdicts: Runtime Error

Accepted
Problem: 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`.

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

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K,X= input().split()
if 500*K>=X:
  print("Yes")
else:
  print("No")

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
k, x = map(int, input().split())
if 500*k >= x:
    print('yes')
else:
    print('no')


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


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K,X= input().split()

if 500 * K >= X:
    print('Yes')
else:
    print('No')


K,X= map(int,input().split())

if 500 * K >= X:
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
b, c = list(map(int, input().split()))
if 500 * b => c :
    print("Yes")
else:
    print("No")

b, c = list(map(int, input().split()))
if 500 * b >= c :
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
s,t=input().split()
print (t+s)

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
list = [s for s in input().split()]
if list[0] * 500 >= list[1]:
  print("Yes")
else:
	print("No")

list = [s for s in input().split()]
if int(list[0]) * 500 >= int(list[1]):
  print("Yes")
else:
	print("No")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input()) 
x = int(input()) 

if (k*500 >= x):
    print('Yes')
else:
    print('No')



k, x = map(int, input().split()) 

if (k*500 >= x):
    print('Yes')
else:
    print('No')



Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
hoge = input()
c,s = hoge.sprit()

if x * 500 >= s:
  res = "Yes"
else:
  res = "No"
  
print(res)

import fractions
from functools import reduce

def lcm_base(x, y):
    return (x * y) // fractions.gcd(x, y)

def lcm_list(numbers):
	n = len(numbers)
	#print(numbers)
    #lcm_tmp = (numbers[0] * numbers[1]) // fractions.gcd(numbers[0], numbers[1])
	lcm_tmp = lcm_base(numbers[0],numbers[1])
	for i in range(2,n):
		lcm_tmp = lcm_base(numbers[i],lcm_tmp)
	return lcm_tmp

n,m = map(int,input().split())
t = list(map(int,input().split()))
#print(t)
#lcm = (a * b) // fractions.gcd(a, b)
lcm = lcm_list(t)
x = m // (lcm /2 )
y = m // (lcm)
print(int(x-y))

# 100 points
import math
# -*- coding: utf-8 -*-

n, k = map(int, input().split())
if n*500 >= k:
    
    print('YES')
else:
    
    print('NO')# 100 points


# 100 points
# -*- coding: utf-8 -*-

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


Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
k, x = map(int, input().split())
print(k, x)


if k * 500 >= x:
  print('Yes')
else:
  print('No')

k, x = map(int, input().split())

if k * 500 == x:
  print('Yes')
else:
  print('No')

k, x = map(int, input().split())

if k * 500 >= x:
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K, X = map(int,input().split())
a = 500 * K
if a > X:
  print("Yes")
 else:
  print("No")
 

K, X = map(int,input().split())
a = 500 * K
if a >= X:
  print("Yes")
else:
  print("No")
  

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K, X = [map(int, input().split())]
print("Yes") if K*500 >= X else print("No")

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k,x=map(int,input().split())

if 500*k=>x:
  print("Yes")
else:
  print("No")

k,x=map(int,input().split())

if 500*k>=x:
  print("Yes")
else:
  print("No")


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):

K= [ ]
K= int(input())

X= [ ]
X= int(input())

if 500*K<X:
    print("No")
else:
    print("Yes")



K, X= input().split()

if 500*K<X:
    print("No")
elif 500*K==X:
    print("Yes")
elif 500*K>X:
    print("Yes")


K= [ ]
K= int(input())

X= [ ]
X= int(input())

if 500*K<X:
    print("No")
elif 500*K==X:
    print("Yes")
elif 500*K>X:
    print("Yes")


K= int(input())

X= int(input())

if 500*K<X:
    print("No")
else:
    print("Yes")



K, X= map(int, input().split())

if 500*K<X:
    print("No")
else:
    print("Yes")

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k,x = list(map(int, input().split()))
print("Yes" if 500*k - x >= 0 "No")

k,x = list(map(int, input().split()))
print("Yes" if 500*k - x >= 0 else "No")

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a, b = map(int, input().split())
if(a * 500 >= b){
  print("Yes")
} else {
  print("No")
}

N=int(input())
S=input()
count=0
for i in range(N):
    if (S[i:i+3]=="ABC"):
        count=count+1
print(count)

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n=int(input())
s=list(input())
count=0
for i in range(n):
  if i<=48:
    if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C':
      count+=1
    
print(count)

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a,b=map(int,input().split())
if  (a * 500) < b:
    print("Yes")
else:
    print("No")
    


a,b=map(int,input().split())
if  (a * 500) <= b:
    print("Yes")
else:
    print("No")
    



a,b=map(int,input().split())
if  (a * 500) < b:
    print("No")
else:
    print("Yes")
    


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
x = [x for x in input().split()]
print('Yes') if x[0]*500>x[1] else print('No')

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


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n, m = map(int, input().split())
a = list(map(int, input().split()))

import math
from functools import reduce

# for i, j in enumerate(a):

def lcm_base(x, y):
    return (x * y) // math.gcd(x, y)

def lcm(*numbers):
    return reduce(lcm_base, numbers, 1)

def lcm_list(numbers):
    return reduce(lcm_base, numbers, 1)

def gcd(*numbers):
    return reduce(math.gcd, numbers)

def gcd_list(numbers):
    return reduce(math.gcd, numbers)

kouyakusuu = gcd_list(a)
koubaisuu = lcm_list(a)

buf = 1
for i, j in enumerate(a):
    buf *= j / kouyakusuu

ans = (m - buf) // koubaisuu + 1

print(int(ans))


k, x = map(int, input().split())

if 500*k >= x:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K, X = map(int,input().split())

if 500 * K <= X:
    print("Yes")
else:
    print("No")

K, X = map(int,input().split())

if 500 * K >= X:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K,X=map(int,input().split())
print ('Yes' if 500 * K =< X else 'No')

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


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


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

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

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

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

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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a,b=(int(x) for x in input().split())

if a*500 >= b:
  print("YES")
else:
        print("NO")

a,b=(int(x) for x in input().split())

if a*500 >= b:
    print("YES")
else:
    print("NO")

a = [3]
a = input()

if a[0]*500 >= a[2]:
  print("YES")
else:
        print("NO")

a,b=(int(x) for x in input().split())

if a*500 > b:
    print("YES")
else:
    print("NO")

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
import sys
import numpy as np
 
if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
 
k,x=map(int,input(),.split())

if k*500>=x:
	print("Yes")
else:
	print("No")

import sys
import numpy as np
 
if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
 
k,x=map(int,input().split())

if k*500>=x:
	print("Yes")
else:
	print("No")

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K,X=input().split()
if 500*K>=X:
    print('Yes')
else:
    print('No')
    

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
k,x=input().split()
if k*500 >= x:
  print("Yes")
else:
  print("No")

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
import numpy as np 
import sys

def gcd(a,b):
    while b!=0:
        a,b=b,a%b
    return a

def lcm(a, b):
    return (a * b)//gcd(a,b)

N,M = map(int,input().split())
a = list(map(int,input().split()))

A = np.array(a)

##while np.sum(A%2) == 0:
  ##  A = A//2

if np.sum(A%2) != len(A):
    print("0")
    sys.exit()
    
tmp = 1##LCM

for i in range(N):
    tmp = lcm(tmp,a[i]//2)

if tmp > M:
    print("0")

else:
    print((M//tmp+1)//2)

K,X = map(int,input().split())


if 500*K>=X:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a, b = list(map(int, input().split())
if a * 500  < b :
  print('No')
else:
  print('Yes')


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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k = int(input())
x = int(input())

if k*500 < x:
    print("No")
else:
    print("Yes")


k = input()
x = input()

if k*500 < x:
    print("no")
else:
    print("yes")


k = int(input())
x = int(input())

if k*500 < x:
    print("No")
else:
    print("Yes")


k,x=(int(x) for x in input().split())

if k*500 < x:
    print("No")
else:
    print("Yes")


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
import itertools

N = int(input())

permu = [i+1 for i in range(N)]
s = 0
flag = False

P = tuple([int(i) for i in input().split(" ")])
Q = tuple([int(i) for i in input().split(" ")])

for i, value in enumerate(itertools.permutations(permu)):
    

    if value == P or value == Q:
        # print(i)
        if flag:
            s -= i
        else:
            s += i
            flag = True

print(abs(s))


K, X = [int(i) for i in input().split(" ")]

print("Yes" if 500 * K >= X else "No")

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())
K = int(input())
if N * 500 >= K:
  print("Yes")
else:
  print("No")

N = input()
K = input()
if N * 500 >= K:
  print("Yes")
else:
  print("No")

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K, X = map(int, input())

if 500 * X >= X:
    print('Yes')
else:
    print('No')


K, X = map(int, input().split())

if K * 500 >= X:
    print('Yes')

else:
    print('No')

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k,x = list(map(int,input().split()))
if 500 * k >= x
   print('Yes')
else:
   print('No')

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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k,x = map(int,input().split())
print('Yes' if x/k<=4 else 'No')

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
k, x = list(map(int, input().split))
print('Yes') if k *500 <= x else print('No')

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):

n = int(input())
c = list(map(int, input().split( )))

c.sort()


sm = 0
for i in range(n):
    sm += (n-i)*c[i]

sm *= pow(2,2*n-2,10**9+7)

print(sm)

k,x = map(int, input().split( ))

if 500*k>=x:
    print("Yes")
else:
    print("No")


k,x = map(int, input().split( ))

if 500*k>=x:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k,x = map(int,input().split())

if (k * 500) >= x :
    print("yes")
else:
    print("no")


k,x = map(int,input().split())

if (k * 500) >= x :
    print('yes')
else:
    print('no')


k,x = map(int,input().split())

if (k * 500) >= x :
    print("yes")
else:
    print("no")

k,x = map(int,input().split())
sum = k * 500

if sum >= x :
    print('yes')
else:
    print('no')


k,x = map(int,input().split())
sum = k * 500

if sum >= x :
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
lst = input().split()
if 500*lst[0] >= lst[1]:
    print('Yes')
else:
    print('No')

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
import sys
stdin=sys.stdin

ns=lambda:stdin.readline().rstrip()
ni=lambda:int(stdin.readline().rstrip())
nm=lambda:map(int,stdin.readline().rstrip())
nl=lambda:list(map(int,stdin,readline().rstrip()))

K,X=nm()
print('Yes' if X<=500*K else 'No')

import sys
stdin = sys.stdin

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))

K,X=nm()
print('Yes' if X<=500*K else 'No')

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a,b = list(map(int, input().split()))
if a*500>=b:
  print("Yes)
else:
  print("No")

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n,k=map(int,input().split())
if 500 * n >= k:print("Yes")
  else:print("No")

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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
Ken, New = map(int, input().split())
if (Ken * 500) - New >= 0:
    print("Yes")
elif (Ken * 500) - New < 0:
    print("No")
else:
    

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

Ken, New = map(int, input().split())
if (Ken * 500) - New >= 0:
    print("Yes")
elif (Ken * 500) - New < 0:
    print("No")
else:
    print("")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
s = input()

count = 0
for i in range(0, len(s)-2):
   if(s[i] == 'A' and s[i+1] == 'B' and s[i+2] == 'C'):
      count += 1
print(count)


k, x = map(int, input().split())

if (500 * k >= x):
   print('Yes')
else:
   print('No')


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a = int(input())
b = int(input())
c = a*500
if c>=b:
  print("Yes")
else:
  print("No")

a = int(input()) * 500
b = int(input())
if a>=b:
  print("Yes")
else:
  print("No")


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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
b, c = map(int, input().split())
result = int(b) * 500
if c < result:
    print("yes")
else:
    print('no')


b, c = map(int, input().split())
result = b * 500
if c < result:
    print("Yes")
elif c == result:
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
yen = map(int, input().slice(" "))
if yen[0] * 500 >= yen[1]:
    print("Yes")
else:
    print("No")

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k, x = map(int, input())

print("Yes" if 500*k >= x else "No")

k, x = map(int, input().split())

print("Yes" if 500*k >= x else "No")

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
abc = 'ABC'
N = int(input().rstrip())
S = input().rstrip()
ret = 0
if N == 3 and S == abc:
    ret = 1
else:
    for i in range(N - len(abc)):
        if abc == S[i:i+3]:
            ret += 1
print(ret)


abc = 'ABC'
N = int(input().rstrip())
S = input().rstrip()
ret = 0
if len(S) == 3 and S == 'ABC':
    ret = 1
else:
    for i in range(N - len(abc)):
        if 'ABC' == S[i:i + 3]:
            ret += 1
print(ret)


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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
import math

def gcd(a, b):
	if  b == 0:
		return a
	else:
		return gcd(b, a % b)

def lcm(a, b):
	return (a * b) // gcd(a, b)

n, m = map(int, input().split())
a = [int(x) for x in input().split()]
g = a[0]
for i in range(n):
	g = lcm(g, a[i])
while g % 2 == 0:
	g //= 2

rb = m // g
if rb % 2 == 0:
	print(rb // 2)
else:
	print(rb // 2 + 1)

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K=input()
X=input()
if int(K)*500>=int(X):
    print('Yes')
else:
    print('No')


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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K, X = map(int, input().split())
print("Yes" if 500*K > = 2000 else "No")

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


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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K, X = [int(i) for i in input().split()]
print("Yes" if 500*K>=X else "No"

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
K,X = map(int,input().split())
if 500*K >= X:
    print('yes')
    exit()
else:
    print('no')
    exit()


import math
import fraction
from functools import reduce
N,M=map(int,input().split())
A=list(map(int,input().split()))
def lcm_base(x, y):
    return (x * y) // fraction.gcd(x, y)
def lcm(*numbers):
    return reduce(lcm_base, numbers, 1)
saisyou = lcm(*A)
kosuu = math.ceil(M/saisyou)
print(kosuu)

K,X = map(int,input().split())
if 500*K <= X :
    print('yes')
else:
    print('no')

K,X = map(int,input().split())
if 500*K >= X :
    print('yes')
else:
    print('no')

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

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
# import math

# import heapq
# from copy import deepcopy
# from collections import deque
# from collections import Counter
# from itertools import accumulate
from itertools import permutations
# import numpy as np


# k,x = map(int, input().split())

n = int(input())
p = list(map(int, input().split()))
q = list(map(int, input().split()))
m = [i + 1 for i in range(n)]
c = 0
for i in permutations(m):
    c += 1
    # print(i)
    if list(i) == p:
        a = c
    if list(i) == q:
        b = c
print(abs(a - b))


# import math

# import heapq
# from copy import deepcopy
# from collections import deque
# from collections import Counter
# from itertools import accumulate
# from itertools import permutations
# import numpy as np


# k,x = map(int, input().split())

n = int(input())
p = list(map(int, input().split()))
q = list(map(int, input().split()))
m = [i + 1 for i in range(n)]
c = 0
for i in permutations(m):
    c += 1
    # print(i)
    if list(i) == p:
        a = c
    if list(i) == q:
        b = c
print(abs(a - b))


# import math

# import heapq
# from collections import deque
# import numpy as np

k,x = map(int, input().split())
# n = int(input())
# a = list(map(int,input().split()))
ans = 'No'
if 500 * k >= x : ans = 'Yes'
print(ans)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
k, y = map(int, input().split())

if k*500 <= y:
	print("Yes")
else:
	print("No")

k, y = map(int, input().split())

if k*500 >= y:
	print("Yes")
else:
	print("No")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a, b = map(int, input().split())
money = 500 * a
if money <= b:
  print('Yes')
else:
  print('No')

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
# input
K, X = map(int, input().split())

# output
print("YES" if 500*K >= X else "NO")


# input
K, X = map(int, input().split())

# output
print("Yes" if 500*K >= X else "No")


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
K,X = map(int,input().split())

if 500*K =>X:
  print('Yes')
else:
  print('No')


N = int(input())
P = list(map(int, input().split()))
Q = list(map(int, input().split()))

ans = []
l = range(1, N + 1)
import itertools


for v in itertools.permutations(l, N):
    if list(v) == P:
      a = v.index(P)
        
    if list(v) == Q:
      b = v.index(Q)  
    

print(abs(b - a))


K,X = map(int,input().split())

if 500*K => X:
  print('Yes')
else:
  print('No')


K,X = map(int,input().split())

if 500*K >= X:
  print('Yes')
else:
  print('No')


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted