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):
k = int(input("Enter k: "))
x = int(input("Enter x: "))
if (k * 500 > x):
    print("Yes")
else:
    print("No")


K = int(input("Enter k: "))
X = int(input("Enter 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')

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 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

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(X<=K*500):
    print("Yes")
else:
   print("No")

k,x=(int(a) for a in input().split())
if(x<=k*500):
    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):
char = input().split(" ")
if int(char[0])*500 >= (char[1]):
    print("Yes")
else: 
    print("No")

char = input().split(" ")
if char[0]*500 >= char[1]:
    print("Yes")
else:
    print("No")

char = input().split(" ")
if char[0]*500 >= char[1]:
    print("Yes")
else 
    print("No")

char = input().split(" ")
if char[0]*500 >= char[1]:
    print("Yes")
else:
    print("No")

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

Verdicts: Runtime Error

Wrong Answer

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())

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

else:
    print('Yes')

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

if (k*500) >=  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 = int(input())
X = int(input())

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



K = int(input())
X = int(input())

if 500*x >= 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):
def f(K,X):
  assert K in range(1,101) and X in range(1,10**5+1)
  M = K*500
  if M>=X:
    return 'Yes'
  else:
    return 'No'
    

def f(K,X):
  #assert K in range(1,101) and X in range(1,10**5+1)
  M = K*500
  if M>=X:
    return 'Yes'
  else:
    return 'No'
K,X=map(int,input().split())
print(f(K,X))


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 ghke(k, x):
    return k * 500 >= x

if __name__ == "__main__":
    import sys
    in_str = []
    for line in sys.stdin:
        in_str.append(int(line))
    roundone([int(_) for _ in in_str[0].split()])

def ghke(k, x):
    print('Yes') if k * 500 >= x else print("No")

if __name__ == "__main__":
    import sys
    in_str = []
    for line in sys.stdin:
        in_str.append(line)
    k, x = [int(_) for _ in in_str[0].split(' ')]
    ghke(k, x)

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):
import math

def count_index(list, k):
    count = 0
    for i in range(k):
        if (list[i] < list[k]):
            count = count + 1
    return list[k]-count-1

n = int(input())-1
p = list(map(int,input().split()))
q = list(map(int,input().split()))

a = (p[0]-1) * math.factorial(n)+1
b = (q[0]-1) * math.factorial(n)+1

for i in range(1,n):
    a = a + count_index(p, i) * math.factorial(n-i)
    b = b + count_index(q, i) * math.factorial(n-i)

ans = a-b
print(abs(ans))

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()
print("Yes" if 500 * K > X else "No")

K, X = input().split()
print("Yes" if 500 * int(K) >= int(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):
import sys
from itertools import permutations
def input(): return sys.stdin.readline().rstrip()
def main():
    n=int(input())
    P=tuple(map(int,input().split()))
    Q=tuple(map(int,input().split()))
    p_list=list(permutations(range(1,n+1)))
    print(abs(p_list.index(Q)-p_list.index(P)))

if __name__=='__main__':
    main()

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):
# -*- coding: utf-8 -*-
count, maxsum = map(int, input().split())
print('YES' if count * 500 >= maxsum else 'No')

# -*- coding: utf-8 -*-
cnt, maxs = list(map(int, input().split()))
print('Yes' if cnt * 500 >= maxs 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):
import sys

VALUE = 500

num = int(sys.argv[1])
if 1 < num > 100:
    assert False, 'Invalid value'

threshold = int(sys.argv[2])
if 1 < threshold > 10**5:
    assert False, 'Invalid value'

result = 'Yes' if num * VALUE >= threshold else 'No'
print(result)


#!/usr/bin/env python
import sys

VALUE = 500

num = int(sys.argv[1])
if num < 1 or num > 100:
    assert False, 'Invalid value'

threshold = int(sys.argv[2])
if threshold < 1 or threshold > 10**5:
    assert False, 'Invalid value'

result = 'Yes' if num * VALUE >= threshold else 'No'
print(result)


import sys

VALUE = 500

num = int(sys.argv[1])
if num < 1 or num > 100:
    assert False, 'Invalid value'

threshold = int(sys.argv[2])
if threshold < 1 or threshold > 10**5:
    assert False, 'Invalid value'

result = 'Yes' if num * VALUE >= threshold else 'No'
print(result)


#!/usr/bin/env python

VALUE = 500

stdin = input()
args = stdin.split(' ')

num = int(args[0])
if num < 1 or num > 100:
    assert False, 'Invalid value'

threshold = int(args[1])
if threshold < 1 or threshold > 10**5:
    assert False, 'Invalid value'

result = 'Yes' if num * VALUE >= threshold else 'No'
print(result)


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):
K,X=map(int,input().split())
ans=YES
if 500*K<X:
    ans=NO
print(ans)


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

K,X=map(int,input().split())
if X<=K*500:
    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 X<=500*K:
    print('YES')
else:
    print('NO')
    

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


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


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


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


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


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


Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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):
a  = int(input())
if a == 2:
    a1, a2 = map(int, input().split())
    b1, b2 = map(int, input().split())
    print()
elif a == 3:
    a1, a2, a3 = map(int, input().split())
    a1, a2, a3 = map(int, input().split())
    print(1,3)
elif a == 5:
    a1, a2, a3, a4, a5 = map(int, input().split())
    a1, a2, a3, a4, a5 = map(int, input().split())
    print(a1,a2)
    print(a1+1,a2)
    print(a1+2,a2)
    print(a1+3,a2)
    print(a1+4,a2)
elif a == 6:
    a1, a2, a3, a4, a5, a6 = map(int, input().split())
    a1, a2, a3, a4, a5, a6 = map(int, input().split())
    print(2,2)
    print(5,5)

K, X = map(int, input().split())
result = K*500
if result >= X:
    print("yes")
elif result < X:
    print("no")

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

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

Verdicts: 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 sys
k, x = map(int, sys.stdin.readline())
if k*500 >= x:
  print('Yes')
else:
  print('No')

import sys
k, x = map(int, sys.stdin.readline().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().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):
l = int(input())
 
word = input()
 
counter = 0
for i in range(len(word)):
  if len(word[i:]) >= 3:
    if word[i:i+3] == 'abc':
      counter += 1
      
print(counter)

numbers = input().split(' ')
a = int(numbers[0])
b = int(numbers[1])

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):
import sys
from fractions import gcd
from itertools import groupby as gb
from itertools import permutations as perm
from itertools import combinations as comb
from collections import Counter as C
from collections import defaultdict as dd
sys.setrecursionlimit(10**5)
def y(f):
    if f:
        print('Yes')
    else:
        print('No')
def Y(f):
    if f:
        print('YES')
    else:
        print('NO')
def Z(f):
    if f:
        print('Yay!')
    else:
        print(':(')
def ispow(n):
    if int(n**.5)**2==n:
        return True
    return False

a,b = map(int,input().split())
Y(a * 500 >= b)

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):
#!/usr/bin/python3
# -*- coding: utf-8 -*-

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

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



#!/usr/bin/python3
# -*- coding: utf-8 -*-

# N = int(input())
# N = int(input().split())
# N, K = [int(x) for x in input().split()]

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

if K * 500 >= 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*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):
n = int(input())
s = list(input())
count = 0
if n % 3 != 0 and n >= 3:
  for i in range (1,n):  
    if s[i-1] == 'A' and s[i] == 'B' and s [i+1] == 'C':
      count += 1
elif n % 3 == 0 and n >= 3:
  for i in range(1, n-1):
    if s[i-1] == 'A' and s[i] == 'B' and s [i+1] == 'C':
      count += 1
if n == 2:
  print(0)
else:
  print(count)

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):
money,sum=int(input().split())
money500=500*money
if money500>=sum:
    print('Yes')
else:
    print('No')

money=int(input().split())
sum=int(input())
money500=500*money
if money500>=sum:
    print('Yes')
else:
    print('No')

money=input()
sum=input()
money500=500*money
if money500>=sum:
    print('Yes')
else:
    print('No')

money=int(input())
sum=int(input())
money500=500*money
if money500>=sum:
    print('Yes')
else:
    print('No')

money=input()
sum=input()
money500=500*money
if money500>=sum:
    print('Yes')
else:
    print('No')


money=input()
sum=input()
money500=500*money
if money500>=sum:
    print('Yes')
else:
    print('No')
return 0

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

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):
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):
list1 = [int(i) for i in input().split()]
total = list1[0]*500
 
if total > list1[1]:
  print("yes")
else:
  print("no")

i = list(map(int, input().split())) 


total = i[0]*500

if total > i[1]:
  print("yes")
else:
  print("no")

t1 = [int(i) for i in input().split()]
total = list1[0]*500
 
if total > list1[1]:
  print("Yes")
else:
  print("No")

K, X = map(int,input().split())
print(type(K), K, X)
total = K*500

if total > X:
  print("yes")
else:
  print("no")

K,X=map(int,input().split())
total = K*500

if total > X:
  print("yes")
else:
  print("no")

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

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

Verdicts: Wrong Answer

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 sys
import math
def i():return int(sys.stdin.readline().replace("\n",""))
def i2():return map(int,sys.stdin.readline().replace("\n","").split())
def s():return str(sys.stdin.readline().replace("\n",""))
def l():return list(sys.stdin.readline().replace("\n",""))
def intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()]
def lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\n","").split()))
def t():return tuple(map(int,sys.stdin.readline().replace("\n","").split()))

if __name__ == "__main__":pass

n = i()
s = s()
cnt = 0
l = s.split("ABC")
if len(l) == 1:
    print(0)
else:
    print(len(l)-1)

import sys
import math
def i():return int(sys.stdin.readline().replace("\n",""))
def i2():return map(int,sys.stdin.readline().replace("\n","").split())
def s():return str(sys.stdin.readline().replace("\n",""))
def l():return list(sys.stdin.readline().replace("\n",""))
def intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()]
def lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\n","").split()))
def t():return tuple(map(int,sys.stdin.readline().replace("\n","").split()))

if __name__ == "__main__":pass

k,x = i2()
if k >= x:
    print("Yes")
else:
    print("No")

import sys
import math
def i():return int(sys.stdin.readline().replace("\n",""))
def i2():return map(int,sys.stdin.readline().replace("\n","").split())
def s():return str(sys.stdin.readline().replace("\n",""))
def l():return list(sys.stdin.readline().replace("\n",""))
def intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()]
def lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\n","").split()))
def t():return tuple(map(int,sys.stdin.readline().replace("\n","").split()))

if __name__ == "__main__":pass

k ,x = i2()
if 500*k >= x:
    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):
k, x = map(str, 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):
x,k=map(int,input().split())
if x*500>=k:
  print(Yes)
else:
  print(No)

x,k=map(int,input().split())
if 500*x>=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):
K, X = input().split()
G = 500 * int (K)
if G > X:
    print("Yes")
else:
    print("No")

K, X = input().split()

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

K, X = input().split()
G = 500 * int(K)
if G >= int(X):
    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):
data = input().spilt()

k = int(data[0])
x = int(data[1])

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


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

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


data = input().split()
k = int(data[0])
x = int(data[1])
 
if k * 500 >= 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=map(int,input())
if k*500>=x:
    print('Yes')
else:
    print('No')



k,x=map(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

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("Yes")
else:
    print("No")

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

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=input().split()
if int(A[0])*500 => int(A[1]):
  print('Yes')
else:
  print('No')

A = input().split()
if 500 * int(A[0]) >= int(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 = (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

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())
if n*500 < m:
  print("No")
else:
  pprint("Yes")

n, m = map(int, input().split())
if n*500 < m:
  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, 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):
N = int(input())
S = input()
cnt = 0
ans = 0
for i in range(N):
    if S[i] == "A":
        if cnt == 0:
            cnt += 1
        else:
            cnt = 1
    if S[i] == "B":
        if cnt == 1:
            cnt += 1
        else:
            cnt = 0
    if S[i] == "C":
        if cnt == 2:
            ans += 1
            cnt = 0
        else:
            cnt = 0

print(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):
X,K = int(input())

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

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

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


    


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

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

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

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

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

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

Verdicts: Runtime Error

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):

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())

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

N=int(input())
S=input()
ans=0
for i in range(N-2):
	if S[i]+S[i+1]+S[i+2]=='ABC':
		ans+=1
print(ans)

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

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

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

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):
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):
 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):
N = int(input())
S = input()
print(S.count('ABC'))


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

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

N = int(input())
S = input()
print(S.count('ABC'))

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

Verdicts: Runtime Error

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):
K = int(input())
X = int(input())
if 500 * K >= X:
  print(Yes)
else:
  print(Yes)

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):
print("No" if int(input())*500<int(input()) else "yes")

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

k, x = map(int, input().split())
print("Yes" if k*500 >= x else "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):
N=int(input())
S=input()
count=0
for i in range(N-2):
  if S[i]=='A' and S[i+1]=='B' and S[i+2]=='C':
    count=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):
K, X = list(map(int,input().split()))

def main():
    coin = 500
    if x <= coin*K:
        print("Yes")

    else:
        print("No")

if __name__ == "__main__":
    main()


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

def main():
    coin = 500
    if X <= coin*K:
        print("Yes")

    else:
        print("No")

if __name__ == "__main__":
    main()


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 = input().split()
a = int(A)
b = int(B)
if(a*500>=b):
  print(Yes)
else:
  print(No)

A, B = input().split()
a = int(A)
b = int(B)
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):
n.m=map(int,input().split())
if 500*n>=m:
    print("Yes")
else:
    print("No")

n,m=map(int,input().split())
if 500*n >= 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):
line = input()

k, x = line.split(' ')

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

line = input()
 
k, x = line.split(' ')
k = int(k)
x = int(x)

if k * 500 >= 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=input()
s=input()

print(s.count('ABC'))

# coding: utf-8
# Your code here!
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):
input()
print(input().count('ABC'))


a = list(map(int, input().split()))
K = a[0]
X = a[1]

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):
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):
k=int(input())
x=int(input())
k=k*500
if k<x:
  print("Yes")
else:
  print("No")

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

10
ZABCDBABCQ

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

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):


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


def s0():return input()
def s1():return input().split()
def s2(n):return [input() for x in range(n)]
def s3(n):return [[input().split()] for _ in range(n)]
def n0():return int(input())
def n1():return [int(x) for x in input().split()]
def n2(n):return [int(input()) for _ in range(n)]
def n3(n):return [[int(x) for x in input().split()] for _ in range(n)]
def t3(n):return [tuple(int(x) for x in input().split()) for _ in range(n)]
def p0(b,yes,no): print(yes) if b else print(no)
# from collections import Counter,deque,defaultdict
# import itertools
# import math
# import networkx

k,x=n1()

p0(k*500>=x,"Yes","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):
input1 = list(map(int,input().split()))
K = input[0]
X = input[1]
if K * 500 >= X:
  print("Yes")
else:
  print("No")

input1 = list(map(int,input().split()))
K = input1[0]
X = input1[1]
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()
total = 500*K
if total>=X :
  print("Yes")
else :
  print("No")

K,X = map(int,input().split())
total = 500*K
if total>=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")


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

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


X,K=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

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):
from sys import stdin

a, b = stdin.readline().rstrip().split()

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


from sys import stdin

a, b = stdin.readline().rstrip().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 = list(map(int, input().split(" ")))
if 2 * k >= x:
  print('Yes')
else:
  print('No')

k, x = list(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):
num = int(input()).split()
if num[0] * 500 > num[1]: print("Yes")
else: print("No")

num = input().split()
if int(num[0])*500 >= int(num[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):
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: 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 = int(input.split)
if K*500 == X:
  print(Yes)
elif:
  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().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, intpu().split())
print("Yes" if K * 400 >= X 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):
K,X =int(input()),int(input())
if K*500>=X:
  print("Yes")
else:
  print("No")

s = input().rstrip().split()
K,X =int(s[0]),int(s[1])
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):

import math


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


if k * 500 >= x:
    text = "yes"
else:
    text = "No"


print(text)



import math


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


if k * 500 >= x:
    text = "Yes"
else:
    text = "No"


print(text)


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())

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):
if 500 * k >= x:
  print('Yse')
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=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):
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):
K,X= map(int,input().split())

if 500*X >= 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: 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()))

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

K, X = list(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 K*500<X:
  print('No')
else:
  print('Yes')
  

K, X = map(int, input().split())
if K * 500 >= 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 =list(map(int, input().split()))
if [k*500>=x] :
 print('yes')
 exit()
else:
 print('no')


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


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


k, x = map(int, input().split())
if 500*k >= x:
    print("yes")
    exit()
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 k * 500 >= x:
    print('yes')
else:
    print('no')


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

else:
    print("No")
    exit()


Verdicts: Wrong Answer

Wrong Answer

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 itertools
n = int(input())
p = tuple(map(int, input().split()))
q = tuple(map(int, input().split()))
nums = [i for i in range(1,n+1)]
fac = [words for words in itertools.permutations(nums)]
ans = abs(fac.index(p) - fac.index(q))
print(ans)


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 = [int(x) for x in stdin.readline().rstrip().split()]
Ks = K * 500
if Ks < X:
  print('No')
else:
  print('Yes')

k,x = map(int,input().split())
ks = k * 500
if ks < 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):
print(input(), type(input()))

b,c = 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):
import sys
import numpy as np
readline = sys.stdin.readline
write = sys.stdout.write

def main():
  N = int(readline())
  a = np.array(list(map(int, readline().split())))
  b = np.array(list(map(int, readline().split())))
  NA = np.arange(N)

  #for k in range(N):
  
    #r = np.bitwise_xor(a[(NA+k)%N], b)
    #if np.all(r == r[0]):
    
    #  #print(k, r[0])

if __name__ == '__main__':
    main()
 

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):
f,n = map(int,input().split())
print('Yes' if n >= f*500 else 'No')

f,x = map(int,input().split())
print('Yes' if f*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):
k,n=map(int,input().split())
if k*500>=n:
    print("YES")
else:
    print("NO")


k,n=map(int,input())
if k*500>=n:
    print("YES")
else:
    print("NO")

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

Verdicts: 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())
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):
total=500*k
if total=>X:
  print("Yes")
else:
  print("No")
  

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have a string S of length N consisting of uppercase English letters.  How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)?

Submission attempts (in order):
N=int(input())
S=input()
ans=0

for i in range(N-2):
    if S[i:i+3]=="ABC":
        ans+=1

N=int(input())
S=input()
ans=0

for i in range(N-2):
    if S[i:i+3]=="ABC":
        ans+=1

print(ans)

Verdicts: Wrong Answer

Accepted
Problem: We have a string S of length N consisting of uppercase English letters.  How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)?

Submission attempts (in order):
n = int(intput())
str = input()
print(str.count('ABC'))

n = int(input())

s = input()

print(s.count('ABC'))


Verdicts: Runtime Error

Accepted
Problem: We have a string S of length N consisting of uppercase English letters.  How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)?

Submission attempts (in order):
    N = input()
    S = input()
    count = 0
    if int(N) >= 3 and int(N) <= 50:
      for i in range(1, int(N)-1):
        if S[i-1] + S[i] + S[i+1] == "ABC":
          count += 1
    print(count)

N = input()
S = input()
count = 0
if(int(N)>=3 and int(N)<=50):
    for i in range(1, int(N)-1):
        if S[i-1]+S[i]+S[i+1] == "ABC":
            count += 1
    print(count)
Seen by Sokhom Sovichea at 19:59

N = input()
S = input()
count = 0
if int(N) >= 3 and int(N) <= 50:
  for i in range(1, int(N)-1):
    if s[i-1] + s[i] + s[i+1] == "ABC":
      count += 1
print(count)

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

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

n = int(input())
s = str(input())
print(s.count("ABC"))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have a string S of length N consisting of uppercase English letters.  How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)?

Submission attempts (in order):
N=int(input())
S=str(input())
S=S.remove('ABC')
if N==len(S):
  return 0
else:
  return (N-len(S))//3

N=int(input())
S=str(input())
S=S.replace('ABC','')
if N==len(S):
  print(0)
else:
  print((N-len(S))//3)

Verdicts: Runtime Error

Accepted
Problem: We have a string S of length N consisting of uppercase English letters.  How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)?

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

check = ['A', 'B', 'C']

count = 0
state = 0
for c in list(s):
	if c != check[state]:
      state = 0
      continue
    
    state += 1
    if state >= len(check):
      count += 1
      state = 0

print(count)

_ = input()
s = input()

check = ['A', 'B', 'C']

count = 0
state = 0

for i in range(len(s)):
    c = s[i]
    if c != check[state]:
        state = 0
        if c != check[state]:
            state = 1
        continue
    
    state += 1
    if state == 3:
        count += 1
        state = 0

print(count)



#from math import sqrt
#from heapq import heappush, heappop
#from collections import deque

#a, b = [int(v) for v in input().split()]


def main():
    N = int(input())
    S = input()

    count = 0
    state = 0

    for c in S:
        if c == 'A':
            state = 1
        elif state == 1:
            if c == 'B':
                state = 2
            else:
                state = 0
        elif state == 2:
            if c == 'C':
                count += 1
            state = 0

    print(count)


main()


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: We have a string S of length N consisting of uppercase English letters.  How many times does `ABC` occur in S as contiguous subsequences (see Sample Inputs and Outputs)?

Submission attempts (in order):
def main():
    N = int(input())
    S = str(input())
    print (S)
    if 'ABC' in S :
        C = S.split('ABC')
        #print (C)
        print (len(C)-1)


if __name__ == '__main__':
    main()

def main():
    N = int(input())
    S = str(input())
    #print (S)
    if 'ABC' in S :
        C = S.split('ABC')
        #print (C)
        print (str(len(C)-1))
    else :
        print ('0')


if __name__ == '__main__':
    main()

Verdicts: Wrong Answer

Accepted