problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02811 | 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')
| [
"call.add",
"call.arguments.change"
] | 612,142 | 612,143 | u423964598 | python |
p02811 | K, X = input().split()
K = int(K)
X = int(X)
print("YES" if K * 500 >= X else "NO") | K, X = input().split()
K = int(K)
X = int(X)
print("Yes" if K * 500 >= X else "No") | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,146 | 612,145 | u671792681 | python |
p02811 |
#! //Users/daigofujiwara/anaconda3/bin python3
#h行で列和がyかy+1であるかどうかとサンプルを出力
input1=input()
K,X=input1.split(" ")
K,X=int(K),int(X)
if 500*K>X:
print("Yes")
else:
print("NO")
|
#! //Users/daigofujiwara/anaconda3/bin python3
#h行で列和がyかy+1であるかどうかとサンプルを出力
input1=input()
K,X=input1.split(" ")
K,X=int(K),int(X)
if 500*K>=X:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,148 | 612,149 | u387977464 | python |
p02811 | K,X = input().split()
res=int(K)*500
if(res>int(X)):
print("Yes")
else:
print("No") | K,X = input().split()
res=int(K)*500
if(res>=int(X)):
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,166 | 612,165 | u666961261 | python |
p02811 | (K, X) = list(map(int, input().split()))
if (K * 500) >= K:
print("Yes")
else:
print("No") | (K, X) = list(map(int, input().split()))
if (K * 500) >= X:
print("Yes")
else:
print("No") | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 612,183 | 612,184 | u205936263 | python |
p02811 | (K, X) = list(map(int, input().split()))
if (K * 500) > K:
print("Yes")
else:
print("No") | (K, X) = list(map(int, input().split()))
if (K * 500) >= X:
print("Yes")
else:
print("No") | [] | 612,185 | 612,184 | u205936263 | python |
p02811 | x,y = map(str,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') | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,193 | 612,194 | u218393296 | python |
p02811 | s = input()
x,a = [int(ele) for ele in s.split(' ')]
if x*500 >= a:
print("yes")
else:
print("no") | s = input()
x,a = [int(ele) for ele in s.split(' ')]
if x*500 >= a:
print("Yes")
else:
print("No") | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,195 | 612,196 | u263015890 | python |
p02811 | def main():
k, x = [int(p) for p in input().split()]
if k * 500 > x:
print("Yes")
else:
print("No")
if __name__ == "__main__":
main()
| def main():
k, x = [int(p) for p in input().split()]
if k * 500 >= x:
print("Yes")
else:
print("No")
if __name__ == "__main__":
main()
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,199 | 612,200 | u971113766 | python |
p02811 | [K,N] = [int(x) for x in input().split()]
if K * 500 <= N:
print('Yes')
else:
print('No')
| [K, X] = [int(x) for x in input().split()]
if K * 500 >= X:
print('Yes')
else:
print('No') | [
"assignment.variable.change",
"identifier.change"
] | 612,201 | 612,202 | u213314609 | python |
p02811 | K,X = map(int, input().split())
v = 500 * K
if s >= X:
print("Yes")
else:
print("No")
| K,X = map(int, input().split())
v = 500 * K
if v >= X:
print("Yes")
else:
print("No")
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 612,203 | 612,204 | u019355060 | python |
p02811 | # AtCoder Beginner Contest 150 : A (2020/01/10)
K, X = map(int, input().split())
if 500*K >= X:
print('yes')
else:
print('no') | # AtCoder Beginner Contest 150 : A (2020/01/10)
K, X = map(int, input().split())
if 500*K >= X:
print('Yes')
else:
print('No') | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,224 | 612,225 | u608585697 | python |
p02811 | from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools,pprint,fractions
sys.setrecursionlimit(10**8)
mod = 10**9+7
mod2 = 998244353
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().... | from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools,pprint,fractions
sys.setrecursionlimit(10**8)
mod = 10**9+7
mod2 = 998244353
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().... | [] | 612,228 | 612,229 | u645250356 | python |
p02811 | N, X = map(int, input().split())
if X >= N * 500:
print("Yes")
else:
print("No")
| N, X = map(int, input().split())
if X <= N * 500:
print("Yes")
else:
print("No")
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,238 | 612,239 | u766349820 | python |
p02811 | def two_int():
N, K = map(int, input().split())
return N,K
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
K, X = input().split()
if K*500 >= X:
print("Yes")
else:
print("No") | def two_int():
N, K = map(int, input().split())
return N,K
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
K, X = two_int()
print()
if K*500 >= X:
print("Yes")
else:
print("No") | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.add"
] | 612,248 | 612,249 | u688375653 | python |
p02811 | 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.readli... | 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.readli... | [
"control_flow.branch.if.condition.change"
] | 612,254 | 612,255 | u854685063 | python |
p02811 | 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") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,256 | 612,257 | u152554456 | python |
p02811 | K, X = [int(i) for i in input().split()]
total = 500 * K
if total > X:
print("Yes")
else:
print("No") | K, X = [int(i) for i in input().split()]
total = 500 * K
if total >= X:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,260 | 612,261 | u582387763 | python |
p02811 | #!/usr/bin/env python
from __future__ import division, print_function
import os
import sys
from io import BytesIO, IOBase
if sys.version_info[0] < 3:
from __builtin__ import xrange as range
from future_builtins import ascii, filter, hex, map, oct, zip
def main():
k, x = map(int, input().split())
pri... | #!/usr/bin/env python
from __future__ import division, print_function
import os
import sys
from io import BytesIO, IOBase
if sys.version_info[0] < 3:
from __builtin__ import xrange as range
from future_builtins import ascii, filter, hex, map, oct, zip
def main():
k, x = map(int, input().split())
pri... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,262 | 612,263 | u147437360 | python |
p02811 | #!/usr/bin/env python
from __future__ import division, print_function
import os
import sys
from io import BytesIO, IOBase
if sys.version_info[0] < 3:
from __builtin__ import xrange as range
from future_builtins import ascii, filter, hex, map, oct, zip
def main():
k, x = map(int, input().split())
pr... | #!/usr/bin/env python
from __future__ import division, print_function
import os
import sys
from io import BytesIO, IOBase
if sys.version_info[0] < 3:
from __builtin__ import xrange as range
from future_builtins import ascii, filter, hex, map, oct, zip
def main():
k, x = map(int, input().split())
pri... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,264 | 612,263 | u147437360 | python |
p02811 | 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") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,267 | 612,268 | u345132740 | python |
p02811 | 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") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,269 | 612,268 | u345132740 | python |
p02811 | 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")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,272 | 612,273 | u697601622 | python |
p02811 | a,b = map(int,input().split())
#L = list()map(int,input().split())
if a*500 >= b:
print("YES")
else:
print("NO")
| a,b = map(int,input().split())
#L = list()map(int,input().split())
if a*500 >= b:
print("Yes")
else:
print("No")
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,278 | 612,279 | u252828980 | python |
p02811 | 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() | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,290 | 612,291 | u382905693 | python |
p02811 | # -*- coding: utf-8 -*-
############### TESTCASE ###############
test = ""
test = \
"""
4 2001
"""
########################################
test = list(reversed(test.strip().splitlines()))
if test:
def input2():
return test.pop()
else:
def input2():
return input()
################# MAIN #######... | # -*- coding: utf-8 -*-
############### TESTCASE ###############
test = ""
#test = \
"""
4 2001
"""
########################################
test = list(reversed(test.strip().splitlines()))
if test:
def input2():
return test.pop()
else:
def input2():
return input()
################# MAIN ######... | [
"assignment.remove"
] | 612,292 | 612,293 | u272075541 | python |
p02811 | Input = list(map(int,input().split()))
K=Input[0]
X=Input[1]
if (500*K)>=K:
print("Yes")
else:
print("No") | Input = list(map(int,input().split()))
K=Input[0]
X=Input[1]
if (500*K)>=X:
print("Yes")
else:
print("No") | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 612,294 | 612,295 | u917441099 | python |
p02811 | 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')
| [
"call.add"
] | 612,306 | 612,307 | u170839742 | python |
p02811 | 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') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,312 | 612,313 | u826188728 | python |
p02811 | 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')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,324 | 612,325 | u586662847 | python |
p02811 | 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") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,328 | 612,327 | u318024671 | python |
p02811 | 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') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,357 | 612,358 | u621509924 | python |
p02811 | n,m = map(int,input().split())
if m<500*n:
print("Yes")
else:
print("No") | n,m = map(int,input().split())
if m<=500*n:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,363 | 612,364 | u810348111 | python |
p02811 | k,x = map(int, input().split())
num = 500*k
if num >= k:
print('Yes')
else:
print('No') | k,x = map(int, input().split())
num = 500*k
if num >= x:
print('Yes')
else:
print('No')
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 612,369 | 612,370 | u435593586 | python |
p02811 | 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') | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,387 | 612,388 | u393253137 | python |
p02811 |
def main():
K, X = map(int, input().split())
print("Yes" if K * X >= 900 else "No")
if __name__ == '__main__':
main()
|
def main():
K, X = map(int, input().split())
print("Yes" if K * 500 >= X else "No")
if __name__ == '__main__':
main()
| [
"identifier.replace.remove",
"literal.replace.add",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"identifier.replace.add",
"literal.replace.remove"
] | 612,391 | 612,392 | u574189773 | python |
p02811 | 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') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,405 | 612,406 | u009885900 | python |
p02811 | 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') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,407 | 612,406 | u009885900 | python |
p02811 | 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') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,408 | 612,409 | u445983356 | python |
p02811 | 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') | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,443 | 612,444 | u144913062 | python |
p02811 | k, x = map(int, input().split())
print(['no','yes'][x <=(500*k)]) | k, x = map(int, input().split())
print(['No','Yes'][x <=(500*k)]) | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,460 | 612,461 | u299856014 | python |
p02811 | import sys; readline = sys.stdin.readline
from collections import deque
k, x = map(int, readline().split())
if k * 500 >= x:
print('yes')
else:
print('No') | import sys; readline = sys.stdin.readline
from collections import deque
k, x = map(int, readline().split())
if k * 500 >= x:
print('Yes')
else:
print('No') | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,469 | 612,470 | u780465569 | python |
p02811 | import sys; readline = sys.stdin.readline
from collections import deque
k, x = map(int, readline().split())
if k * 500 >= x:
print('yes')
else:
print('no') | import sys; readline = sys.stdin.readline
from collections import deque
k, x = map(int, readline().split())
if k * 500 >= x:
print('Yes')
else:
print('No') | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,471 | 612,470 | u780465569 | python |
p02811 | a = list(map(int, input().split()))
print("Yes" if a[0]*500 > a[1] else "No") | a = list(map(int, input().split()))
print("Yes" if a[0]*500 >= a[1] else "No") | [
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 612,472 | 612,473 | u331899940 | python |
p02811 | K, X = [int(x) for x in input().split()]
print('Yes' if K*500 >X else 'No') | K, X = [int(x) for x in input().split()]
print('Yes' if K*500 >= X else 'No') | [
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 612,493 | 612,494 | u550835660 | python |
p02811 | 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') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,505 | 612,506 | u465246274 | python |
p02811 | 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") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,509 | 612,510 | u875600867 | python |
p02811 | K,X = map(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") | [
"expression.operator.compare.change"
] | 612,516 | 612,517 | u135360096 | python |
p02811 | #
def main():
coins, test = map(int, input().split(" "))
if 500 * coins > test:
print("Yes")
else:
print("No")
if __name__ == '__main__':
main()
| #
def main():
coins, test = map(int, input().split(" "))
if 500 * coins >= test:
print("Yes")
else:
print("No")
if __name__ == '__main__':
main()
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,522 | 612,523 | u628907033 | python |
p02811 | 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") | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change",
"literal.number.integer.change",
"expression.operation.binary.change",
"io.output.change"
] | 612,524 | 612,525 | u951672936 | python |
p02811 | k,x=map(int,input().split())
if k<=x*500:
print("Yes")
else:
print("No")
| k,x=map(int,input().split())
if x<=k*500:
print("Yes")
else:
print("No")
| [
"control_flow.branch.if.condition.change"
] | 612,530 | 612,531 | u573754721 | python |
p02811 | # -*- 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()))
d... | # -*- 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()))
d... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,534 | 612,535 | u379629675 | python |
p02811 | from sys import stdin
def fetch_one_line():
return stdin.readline().rstrip()
def fetch_int_input():
return [int(s) for s in fetch_one_line().split()]
K, X = fetch_int_input()
answer = ["Yes", "No"]
print(answer[int(500 * K >= X)]) | from sys import stdin
def fetch_one_line():
return stdin.readline().rstrip()
def fetch_int_input():
return [int(s) for s in fetch_one_line().split()]
K, X = fetch_int_input()
answer = ["No", "Yes"]
print(answer[int(500 * K >= X)]) | [
"literal.string.change",
"assignment.value.change"
] | 612,540 | 612,541 | u717387812 | python |
p02811 | k, x = list(map(int, input().split()))
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') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 612,559 | 612,560 | u104922648 | python |
p02811 | X,K = map(int, input().split())
if X <= K * 500:
print('Yes')
else:
print('No') | K, X = map(int, input().split())
if X <= K * 500:
print('Yes')
else:
print('No')
| [] | 612,563 | 612,564 | u945181840 | python |
p02811 | K,N = map(int, input().split())
if 500*K >= N:
print("yes")
else:
print("no") | K,N = map(int, input().split())
if 500*K >= N:
print("Yes")
else:
print("No") | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 612,565 | 612,566 | u196344286 | python |
p02812 | N = int(input())
S = input()
# print(S.count('ABC'))
cnt = 0
for i in range(N):
if S[i] == 'A' and S[i + 1] == "B" and S[i + 2] == "C":
cnt += 1
print(cnt) | N = int(input())
S = input()
# print(S.count('ABC'))
cnt = 0
for i in range(N - 2):
if S[i] == 'A' and S[i + 1] == "B" and S[i + 2] == "C":
cnt += 1
print(cnt)
| [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 612,567 | 612,568 | u304058693 | python |
p02812 | N = int(input())
S = input()
# print(S.count('ABC'))
cnt = 0
for i in range(N):
if S[i] == 'A' and S[i + 1] == "B" and S[i + 2] == "C":
cnt += 1
print(cnt)
| N = int(input())
S = input()
# print(S.count('ABC'))
cnt = 0
for i in range(N - 2):
if S[i] == 'A' and S[i + 1] == "B" and S[i + 2] == "C":
cnt += 1
print(cnt)
| [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 612,569 | 612,568 | u304058693 | python |
p02812 | n=int(input())
s=input()
ans=0
for i in range(n-3):
if s[i:i+3]=="ABC":
ans+=1
print(ans) | n=int(input())
s=input()
ans=0
for i in range(n-2):
if s[i:i+3]=="ABC":
ans+=1
print(ans) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,591 | 612,592 | u910632349 | python |
p02812 | n = int(input())
s = input()
ans = 0
#print(s.count('ABC'))
for ni in range(n-3):
if s[ni:ni+3] == 'ABC':
ans += 1
print(ans) | n = int(input())
s = input()
ans = 0
#print(s.count('ABC'))
for ni in range(n):
if s[ni:ni+3] == 'ABC':
ans += 1
print(ans) | [
"expression.operation.binary.remove"
] | 612,595 | 612,596 | u935139749 | python |
p02812 | N=int(input())
S=input()
slen=len(S)
nabc=0
for i in range(0,slen-2):
if S[i:i+2]=='ABC':
nabc+=1
print(nabc) | N=int(input())
S=input()
slen=len(S)
nabc=0
for i in range(0,slen-2):
if S[i:i+3]=='ABC':
nabc+=1
print(nabc) | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 612,609 | 612,610 | u314825579 | python |
p02812 | def solve():
N = int(input())
S = input()
count = 0
for i in range(N):
if(S[i] == "A" and S[i+1] == "B" and S[i+2] == "C"):
count += 1
print(count)
if __name__ == "__main__":
solve() | def solve():
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 += 1
print(count)
if __name__ == "__main__":
solve() | [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 612,611 | 612,612 | u537217069 | python |
p02812 | n = int(input())
s = input()
str = "ABC"
cnt = 0
for i in range(0,n-3):
if str == s[i]+s[i+1]+s[i+2]:
cnt += 1
print(cnt)
| n = int(input())
s = input()
str = "ABC"
cnt = 0
for i in range(0,n-2):
if str == s[i]+s[i+1]+s[i+2]:
cnt += 1
print(cnt)
| [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,613 | 612,614 | u594933155 | python |
p02812 | N=int(input())
S=input()
ans=0
for i in range(N-3):
if S[i:i+3]=='ABC':
ans+=1
print(ans) | N=int(input())
S=input()
ans=0
for i in range(N-2):
if S[i:i+3]=='ABC':
ans+=1
print(ans) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,615 | 612,616 | u665452497 | python |
p02812 | print(len(input().split("ABC")) - 1) | n = input()
print(len(input().split("ABC")) - 1) | [
"assignment.add"
] | 612,622 | 612,623 | u739843002 | python |
p02812 | n = int(intput())
str = input()
print(str.count('ABC')) | n = int(input())
s = input()
print(s.count('ABC'))
| [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change",
"assignment.variable.change",
"io.output.change"
] | 612,624 | 612,625 | u005039821 | python |
p02812 | def resolve():
N = int(input())
S = input()
cnt = 0
for i in range(len(S)-3):
if S[i:i+3] == "ABC":
cnt += 1
print(cnt)
if '__main__' == __name__:
resolve() | def resolve():
N = int(input())
S = input()
cnt = 0
for i in range(len(S)-2):
if S[i:i+3] == "ABC":
cnt += 1
print(cnt)
if '__main__' == __name__:
resolve() | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,637 | 612,638 | u106797249 | python |
p02812 | N = int(input())
S=str(input())
cnt=0
for i in range(N-2):
if S[i] =='A' and S[i+1]=='B' and S[i+2]=='C':
cnt+=1 | N = int(input())
S=str(input())
cnt=0
for i in range(N-2):
if S[i] =='A' and S[i+1]=='B' and S[i+2]=='C':
cnt+=1
print(cnt) | [
"call.add"
] | 612,649 | 612,650 | u433380437 | python |
p02812 | n = int(input())
s = input()
c = 0
for i in range(len(s) - 3):
if s[i:i + 3] == 'ABC':
c += 1
print(c)
| n = int(input())
s = input()
c = 0
for i in range(len(s) - 2):
if s[i:i + 3] == 'ABC':
c += 1
print(c) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,651 | 612,652 | u956112889 | python |
p02812 | n=int(input())
s=list(input())
num=0
if n<3:
exit()
for i in range(n):
if (s[i]=="A") and (s[i+1]=="B") and (s[i+2]=="C"):
num+=1
print(num)
| n=int(input())
s=list(input())
num=0
if n<3:
exit()
for i in range(n-2):
if (s[i]=="A") and (s[i+1]=="B") and (s[i+2]=="C"):
num+=1
print(num)
| [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 612,665 | 612,666 | u438189153 | python |
p02812 | N=int(input())
S=input()
S.count('ABC') | N=int(input())
S=input()
n=S.count('ABC')
print(n) | [
"call.add"
] | 612,671 | 612,672 | u091217940 | python |
p02812 | S=input()
print(S.count("ABC")) | N=input()
S=input()
print(S.count("ABC"))
| [
"assignment.add"
] | 612,673 | 612,674 | u112364985 | python |
p02812 | n=int(input())
s=input()
count=0
if n==3:
if s=="ABC":
count=1
else:
s=list(s)
for i in range(n-3):
if s[i]=="A" and s[i+1]=="B" and s[i+2]=="C":
count+=1
print(count)
| n=int(input())
s=input()
count=0
if n==3:
if s=="ABC":
count=1
else:
s=list(s)
for i in range(n-3+1):
if s[i]=="A" and s[i+1]=="B" and s[i+2]=="C":
count+=1
print(count)
| [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 612,679 | 612,680 | u200887663 | python |
p02812 | import sys
N = int(input())
S = input()
array_S = list(S)
if not ( 3 <= N <= 50 and S.isupper() ): sys.exit()
count = 0
for I in range(N-3):
if ''.join(array_S[I:I+3]) == 'ABC':
count += 1
print(count) | import sys
N = int(input())
S = input()
array_S = list(S)
if not ( 3 <= N <= 50 and S.isupper() ): sys.exit()
count = 0
for I in range(N-2):
if ''.join(array_S[I:I+3]) == 'ABC':
count += 1
print(count) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,695 | 612,696 | u190178779 | python |
p02812 | N = int(input())
S = input()
thre = "ABC"
res = 0
for i in range(N-3):
if thre == S[i:i+3]:
res +=1
print(res) | N = int(input())
S = input()
thre = "ABC"
res = 0
for i in range(N-2):
if thre == S[i:i+3]:
res +=1
print(res) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,697 | 612,698 | u113255362 | python |
p02812 | _ = input()
S = input()
newS = S.replace("ABC", "")
print(S, newS)
print((len(S) - len(newS)) // 3) | _ = input()
S = input()
newS = S.replace("ABC", "")
print((len(S) - len(newS)) // 3) | [
"call.remove"
] | 612,699 | 612,700 | u849756457 | python |
p02812 | n=int(input())
s=input()
ans=0
for i in range(len(s)-3):
if s[i]+s[i+1]+s[i+2]=="ABC":
ans+=1
print(ans)
| n=int(input())
s=input()
ans=0
for i in range(len(s)-2):
if s[i]+s[i+1]+s[i+2]=="ABC":
ans+=1
print(ans)
| [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,703 | 612,704 | u313890617 | python |
p02812 | N=int(input())
S=input()
print(len([i for i in range(N-3) if S[i:i+3]=='ABC'])) | N=int(input())
S=input()
print(len([i for i in range(N-2) if S[i:i+3]=='ABC'])) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,705 | 612,706 | u892487306 | python |
p02812 | a=int(input())
b=input()
count=0
for i in range(a-2):
if b[i]=='a'and b[i+1]=='b' and b[i+2]=='c':
count+=1
print(count)
| a=int(input())
b=input()
count=0
for i in range(a-2):
if b[i]=='A' and b[i+1]=='B' and b[i+2]=='C':
count+=1
print(count) | [
"literal.string.change",
"literal.string.case.change",
"control_flow.branch.if.condition.change",
"misc.typo"
] | 612,711 | 612,712 | u629607744 | python |
p02812 | n = int(input)
s = input()
s2 = s.replace("ABC","")
print(int((len(s)-len(s2))/3)) | n = int(input())
s = input()
s2 = s.replace("ABC","")
print(int((len(s)-len(s2))/3)) | [
"call.add"
] | 612,718 | 612,719 | u440478998 | python |
p02812 | n = int(input())
s = input()
count = 0
for i in range(n):
if s[i] == "A" and s[i + 1] == "B" and s[i + 2] == "C":count += 1
print(count) | 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 += 1
print(count) | [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 612,732 | 612,733 | u338988175 | python |
p02812 | n = int(input())
s = input()
count = 0
for i in range(n):
if s[i] == "A":
if s[i+ 1] == "B":
if s[i + 2] == "C":
count += 1
print(count) | 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 += 1
print(count) | [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 612,734 | 612,733 | u338988175 | python |
p02812 | N=int(input())
S=list(input())
count=0
for i in range(N):
if S[i]=="A":
if S[i+1]=="B":
if S[i+2]=="C":
count+=1
print(count)
| N=int(input())
S=list(input())
count=0
for i in range(N-2):
if S[i]=="A":
if S[i+1]=="B":
if S[i+2]=="C":
count+=1
print(count)
| [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 612,743 | 612,744 | u502594696 | python |
p02812 | N=int(input())
S=list(input())
count=0
for i in range(N):
if S[i]=="A" and S[i+1]=="B" and S[i+2]=="C":
count+=1
print(count)
| N=int(input())
S=list(input())
count=0
for i in range(N-2):
if S[i]=="A":
if S[i+1]=="B":
if S[i+2]=="C":
count+=1
print(count)
| [
"control_flow.branch.if.condition.change"
] | 612,745 | 612,744 | u502594696 | python |
p02812 | print(input().count("ABC")) | input();print(input().count("ABC")) | [] | 612,748 | 612,749 | u885634168 | python |
p02812 | N = int(input())
S = input()
counter = 0
for i in range(0,N):
if(S[i] == "A"):
if(S[i+1] == "B"):
if(S[i+2] == "C"):
counter += 1
print(counter) | N = int(input())
S = input()
counter = 0
for i in range(0,N-2):
if(S[i] == "A"):
if(S[i+1] == "B"):
if(S[i+2] == "C"):
counter += 1
print(counter) | [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 612,756 | 612,757 | u539123425 | python |
p02812 | def main():
N = int(input())
S = input()
cnt = 0
for i in range(N):
if S[i] == 'A':
if S[i+1] == 'B':
if S[i+2] == 'C':
cnt += 1
print(cnt)
main()
| def main():
N = int(input())
S = input()
cnt = 0
for i in range(N-2):
if S[i] == 'A':
if S[i+1] == 'B':
if S[i+2] == 'C':
cnt += 1
print(cnt)
main() | [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 612,758 | 612,759 | u690833702 | python |
p02812 | _ = input()
S = input()
count = 0
for i in range(len(S)-3):
if S[i] + S[i+1] + S[i+2] == 'ABC':
count += 1
print(count)
| _ = input()
S = input()
count = 0
for i in range(len(S)-2):
if S[i] + S[i+1] + S[i+2] == 'ABC':
count += 1
print(count) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,769 | 612,770 | u437723389 | python |
p02812 | n=int(input())
l=input()
cnt=0
for i in range(n-3):
if l[i:i+3]=="ABC":
cnt+=1
print(cnt) | n=int(input())
l=input()
cnt=0
for i in range(n-2):
if l[i:i+3]=="ABC":
cnt+=1
print(cnt) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,783 | 612,784 | u123745130 | python |
p02812 | n=int(input())
l=input()
cnt=0
for i in range(n-3):
if l[i:i+3]=="ABC":
cnt+=1
print(cnt) | n=int(input())
l=input()
cnt=0
for i in range(n-2):
if l[i:i+3]=="ABC":
cnt+=1
print(cnt) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,786 | 612,784 | u123745130 | python |
p02812 | N = int(input())
S = input()
ans = 0
for i in range(N-3):
if S[i:i+3]=="ABC":
ans += 1
print(ans) | N = int(input())
S = input()
ans = 0
for i in range(N-2):
if S[i:i+3]=="ABC":
ans += 1
print(ans) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,809 | 612,810 | u860002137 | python |
p02812 | N=int(input())
S=input()
print(sum(S[i]==A and S[i+1]==B and S[i+2]==C for i in range(N-2))) | N=int(input())
S=input()
print(sum(S[i]=='A' and S[i+1]=='B' and S[i+2]=='C' for i in range(N-2))) | [
"call.arguments.change"
] | 612,811 | 612,812 | u729119068 | python |
p02812 | N = int(input())
S = input()
idx = 0
res = 0
while idx + 3 < N:
if S[idx] == 'A':
if S[idx:idx+3] == 'ABC':
res += 1
idx += 3
idx += 1
print(res) | N = int(input())
S = input()
idx = 0
res = 0
while idx + 2 < N:
if S[idx] == 'A':
if S[idx:idx+3] == 'ABC':
res += 1
idx += 3
continue
idx += 1
print(res) | [
"literal.number.integer.change",
"control_flow.loop.condition.change",
"control_flow.continue.add"
] | 612,813 | 612,814 | u450956662 | python |
p02812 | N = int(input())
S = input()
count = 0
for i in range(N-3):
if S[i:i+3] == 'ABC':
count += 1
print(count)
| N = int(input())
S = input()
count = 0
for i in range(N-2):
if S[i:i+3] == 'ABC':
count += 1
print(count)
| [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,815 | 612,816 | u688587139 | python |
p02812 | N=int(input())
S=input()
print(sum(S[i:i+3]=="ABC" for i in range(N-3))) | N=int(input())
S=input()
print(sum(S[i:i+3]=="ABC" for i in range(N-2))) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,817 | 612,818 | u597374218 | python |
p02812 | n=int(input())
s=input()
cnt=0
for i in range(n-3+1):
if s[i:i+4]=="ABC": cnt+=1
print(cnt) | n=int(input())
s=input()
cnt=0
for i in range(n-3+1):
if s[i:i+3]=="ABC": cnt+=1
print(cnt) | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 612,825 | 612,826 | u131881594 | python |
p02812 | n = int(input())
s = str(inout())
print(s.count('ABC')) | n = int(input())
s = input()
print(s.count('ABC')) | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 612,832 | 612,833 | u652656291 | python |
p02812 | n = int(input())
s = str(inout())
print(s.count('ABC')) | n = int(input())
s = str(input())
print(s.count('ABC')) | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 612,832 | 612,835 | u652656291 | python |
p02812 | def have_ABC_string(n, str):
count = 0
for i in range(n):
if str[i] == 'A' and str[i+1] == 'B' and str[i+2] == 'C':
count += 1
return count
N = int(input())
S = input()
result = have_ABC_string(N, S)
print(result) | def have_ABC_string(n, str):
count = 0
for i in range(n-2):
if str[i] == 'A' and str[i+1] == 'B' and str[i+2] == 'C':
count += 1
return count
N = int(input())
S = input()
result = have_ABC_string(N, S)
print(result) | [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 612,844 | 612,845 | u025236579 | python |
p02812 | n=int(input())
s=input()
t="ABC"
ans=0
for i in range(len(s)-3):
if(s[i:i+3]==t):ans+=1
print(ans) | n=int(input())
s=input()
t="ABC"
ans=0
for i in range(len(s)-2):
if(s[i:i+3]==t):ans+=1
print(ans) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 612,850 | 612,851 | u614162316 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.