Datasets:

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
p02812
N = int(input()) S = input() cnt = 0 for n in range(N-3): if S[n:n+3] == "ABC": cnt+=1 print(cnt)
N = int(input()) S = input() cnt = 0 for n in range(N-2): if S[n:n+3] == "ABC": cnt+=1 print(cnt)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,415
614,416
u255943004
python
p02812
# -*- coding: utf-8 -*- cnt = int(input()) str = input() print(srt.count('ABC'))
cnt = int(input()) s = input() print(s.count('ABC'))
[ "assignment.variable.change", "identifier.change", "call.arguments.change", "io.output.change" ]
614,433
614,434
u811853862
python
p02812
n = int(input()) s = input() ans = 0 for i in range(n-3): temp = s[i:i+3] if(temp == 'ABC'): ans += 1 print(ans)
n = int(input()) s = input() ans = 0 for i in range(n-2): temp = s[i:i+3] if(temp == 'ABC'): ans += 1 print(ans)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,445
614,446
u490642448
python
p02812
N = int(input()) S = input() p = 0 c = 0 for i in range(N): if p == 0 and S[i] == 'A': p = 1 elif p == 1 and S[i] == 'B': p = 2 elif p == 2 and S[i] == 'C': c += 1 p = 0 else: p = 0 print(c)
N = int(input()) S = input() p = 0 c = 0 for i in range(N): if S[i] == 'A': p = 1 elif p == 1 and S[i] == 'B': p = 2 elif p == 2 and S[i] == 'C': c += 1 p = 0 else: p = 0 print(c)
[ "control_flow.loop.for.condition.change" ]
614,447
614,448
u002459665
python
p02812
n = int(input()) s = input() x = list(s) y = 0 a = 0 while y <= n - 3: z = x[y] + x[y + 1] + x[y + 2] if z == "abc": a += 1 y += 1 else: a += 0 y += 1 print(a)
n = int(input()) s = input() x = list(s) y = 0 a = 0 while y <= n - 3: z = x[y] + x[y + 1] + x[y + 2] if z == "ABC": a += 1 y += 1 else: a += 0 y += 1 print(a)
[ "literal.string.change", "literal.string.case.change", "control_flow.branch.if.condition.change" ]
614,480
614,481
u914671452
python
p02812
n=int(input()) s=list(input()) d=0 for i in range(n): if n-(i+1)>=2: if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C': d+=1 else: pass else: pass print(c)
n=int(input()) s=list(input()) d=0 for i in range(n): if n-(i+1)>=2: if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C': d+=1 else: pass print(d)
[ "identifier.change", "call.arguments.change", "io.output.change" ]
614,482
614,483
u223555291
python
p02812
n=int(input()) s=list(input()) d=0 for i in range(n): if n-(i+1)>=2: if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C': d+=1 else: pass print(c)
n=int(input()) s=list(input()) d=0 for i in range(n): if n-(i+1)>=2: if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C': d+=1 else: pass print(d)
[ "identifier.change", "call.arguments.change", "io.output.change" ]
614,484
614,483
u223555291
python
p02812
n=int(input()) s=list(input()) d=0 for i in range(n): if n-(i+1)>=2: if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C': d+=1 print(c)
n=int(input()) s=list(input()) d=0 for i in range(n): if n-(i+1)>=2: if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C': d+=1 else: pass print(d)
[ "control_flow.pass.add", "identifier.change", "call.arguments.change", "io.output.change" ]
614,485
614,483
u223555291
python
p02812
a = int(input()) b = input() c = list(b) for i in range(a - 2): j = 0 if c[i] == 'A' and c[i + 1] == 'B' and c[i + 2] == 'C': j += 1 print(j)
a = int(input()) b = input() c = list(b) j = 0 for i in range(a - 2): if c[i] == 'A' and c[i + 1] == 'B' and c[i + 2] == 'C': j += 1 print(j)
[ "assignment.add", "assignment.remove" ]
614,490
614,491
u529500825
python
p02812
# 値の入力 N=int(input()) S=str(input()) i=N-1 result=0 # 処理 while True: if i-3<0: break if S[i]=='C' and S[i-1]=='B' and S[i-2]=='A' : result+=1 i-=1 print(result)
# 値の入力 N=int(input()) S=str(input()) i=N-1 result=0 # 処理 while True: if i-2<0: break if S[i]=='C' and S[i-1]=='B' and S[i-2]=='A' : result+=1 i-=1 print(result)
[ "literal.number.integer.change", "control_flow.branch.if.condition.change" ]
614,496
614,497
u183432736
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" ]
614,510
614,511
u777916428
python
p02812
N = int(input()) S = input() ans = 0 for i in range(len(S)-3): if S[i:i+3] == 'ABC': ans+=1 print(ans)
N = int(input()) S = input() ans = 0 for i in range(len(S)-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" ]
614,530
614,531
u310678820
python
p02812
N = int(input()) S = input() cnt = 0 for i in range(N - 3): if S[i:].startswith('ABC'): cnt += 1 print(cnt)
N = int(input()) S = input() cnt = 0 for i in range(N - 2): if S[i:].startswith('ABC'): cnt += 1 print(cnt)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,534
614,535
u526603504
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" ]
614,536
614,537
u608088992
python
p02812
n=int(input()) s=input() i=0 ans=0 while i<len(s)-2: if s[i]=="A": if s[i+1]=="B" and s[i+2]=="C": ans+=1 i+=3 else: i+=1 print(ans)
n=int(input()) s=input() i=0 ans=0 while i<len(s)-2: if s[i]=="A" and s[i+1]=="B" and s[i+2]=="C": ans+=1 i+=3 else: i+=1 print(ans)
[]
614,552
614,553
u783255320
python
p02812
N = input() S = input() print(s.count('ABC'))
N = input() S = input() print(S.count('ABC'))
[ "identifier.change", "call.arguments.change", "io.output.change" ]
614,568
614,569
u718559100
python
p02812
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 N == 3 and S == abc: ret = 1 else: for i in range(N - len(abc) + 1): if abc == S[i:i+3]: ret += 1 print(ret)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
614,579
614,580
u541921833
python
p02812
text = input().split("ABC") print(len(text)-1)
input() text = input().split("ABC") print(len(text)-1)
[ "call.add" ]
614,581
614,582
u604055101
python
p02812
total = int(input()) text = input() res = 0 if total < 3: for x in range(0, total - 1): if text[x] == "A": if x + 2 <= total: if text[x + 1] == "B" and text[x + 2] == "C": res += 1 print(res)
total = int(input()) text = input() res = 0 if total >= 3: for x in range(0, total - 1): if text[x] == "A": if x + 3 <= total: if text[x + 1] == "B" and text[x + 2] == "C": res += 1 print(res)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.number.integer.change" ]
614,592
614,591
u709686535
python
p02812
Num=int(Input()) Str=str(Input()) print(str.count("ABC"))
N = int(input()) S = str(input()) print(S.count("ABC"))
[ "assignment.variable.change", "identifier.change", "assignment.value.change", "call.function.change", "call.arguments.change", "io.output.change" ]
614,619
614,620
u016753669
python
p02812
put=int(Input()) str=str(Intput()) print(str.count("ABC"))
N = int(input()) S = str(input()) print(S.count("ABC"))
[ "assignment.variable.change", "identifier.change", "assignment.value.change", "call.function.change", "call.arguments.change", "io.output.change" ]
614,621
614,620
u016753669
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": 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" ]
614,624
614,625
u558494840
python
p02812
n = int(input()) s = list(input()) p = 0 res = 0 for e in s: if p == 0 and e == 'A': p += 1 elif p == 1 and e == 'B': p += 1 elif p == 2 and e == 'C': p = 0 res += 1 else: p = 0 print(res)
n = int(input()) s = list(input()) p = 0 res = 0 for e in s: if e == 'A': p = 1 elif p == 1 and e == 'B': p += 1 elif p == 2 and e == 'C': p = 0 res += 1 else: p = 0 print(res)
[ "control_flow.loop.for.condition.change", "assignment.value.change" ]
614,626
614,627
u284854859
python
p02812
N=int(input()) S=input() k=0 for i in range(N-3): a=S[i]+S[i+1]+S[i+2] if a=="ABC": k+=1 print(k)
N=int(input()) S=input() k=0 for i in range(N-2): a=S[i]+S[i+1]+S[i+2] if a=="ABC": k+=1 print(k)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,630
614,631
u042662066
python
p02812
N = int(input()) S = input() res = 0 for i in range(N - 3): if S[i] == "A" and S[i + 1] == "B" and S[i + 2] == "C": res += 1 print(res)
N = int(input()) S = input() res = 0 for i in range(N - 2): if S[i] == "A" and S[i + 1] == "B" and S[i + 2] == "C": res += 1 print(res)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,657
614,658
u698624877
python
p02812
N = int(input()) S = input() S.count('ABC')
n = int(input()) s = input() print (s.count('ABC'))
[ "assignment.variable.change", "identifier.change", "misc.typo", "call.arguments.add", "call.arguments.change" ]
614,659
614,660
u854612823
python
p02812
N = int(input()) List = input() List = list(List) a = 0 for n in range(N): if List[n] == 'A': if List[n + 1] == 'B': if List[n + 2] == 'C': a += 1 print(a)
N = int(input()) List = input() List = list(List) a = 0 for n in range(N - 2): if List[n] == 'A': if List[n + 1] == 'B': if List[n + 2] == 'C': a += 1 print(a)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
614,661
614,662
u329568242
python
p02812
if __name__ == '__main__': N = int(input()) S = input() check = "ABC" count = 0 for i in range(N-3): sub = S[i:i+3] if check == sub: count += 1 print(count)
if __name__ == '__main__': N = int(input()) S = input() check = "ABC" count = 0 for i in range(N-2): sub = S[i:i+3] if check == sub: count += 1 print(count)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,671
614,672
u296758006
python
p02812
if __name__ == '__main__': N = int(input()) S = input() check = "ABC" count = 0 for i in range(N-3): sub = S[i:i+3] if check in sub: count += 1 print(count)
if __name__ == '__main__': N = int(input()) S = input() check = "ABC" count = 0 for i in range(N-2): sub = S[i:i+3] if check == sub: count += 1 print(count)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change", "control_flow.branch.if.condition.change" ]
614,673
614,672
u296758006
python
p02812
N = int(input()) S = input() ans = 0 if N > 3: for i in range(N-3): if S[i:i+3] == "ABC": ans += 1 else: ans = 1 if S == "ABC" else 0 print(ans)
N = int(input()) S = input() ans = 0 if N > 3: for i in range(N-2): if S[i:i+3] == "ABC": ans += 1 else: ans = 1 if S == "ABC" else 0 print(ans)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,686
614,687
u978178314
python
p02812
N=int(input()) S=input() a=0 for i in range(N): if S[i]=="A": if S[i+1]=="B": if S[i+2]=="C": a+=1 i+=2 print(a)
N=int(input()) S=input() a=0 for i in range(N-2): if S[i]=="A": if S[i+1]=="B": if S[i+2]=="C": a+=1 i+=2 print(a)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
614,689
614,690
u265506056
python
p02812
n = int(input()) i =input() c=0 for j in range(0,n-3): if i[j:j+3]=="ABC": c+=1 print(c)
n = int(input()) i =input() c=0 for j in range(0,n-2): if i[j:j+3]=="ABC": c+=1 print(c)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,701
614,702
u866374539
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" ]
614,707
614,708
u520276780
python
p02812
n = int(input()) s = list(input()) ans = 0 for i in range(n-2): if a[i]=='A' and a[i+1]=='B' and a[i+2]=='C': ans+=1 print(ans)
n = int(input()) a = list(input()) ans = 0 for i in range(n-2): if a[i]=='A' and a[i+1]=='B' and a[i+2]=='C': ans+=1 print(ans)
[ "assignment.variable.change", "identifier.change" ]
614,709
614,710
u133134242
python
p02812
#ABC144 B N=int(input()) S=input() #print(N) result=0 for i in range(N): if S[i]=="A" and S[i+1]=="B" and S[i+2]=="C": #print(i) result+=1 else: #print("after"+str(i)) p=1 print(result)
#ABC144 B N=int(input()) S=input() #print(N) result=0 for i in range(N-2): if S[i]=="A" and S[i+1]=="B" and S[i+2]=="C": #print(i) result+=1 else: #print("after"+str(i)) p=1 print(result)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
614,722
614,723
u469574680
python
p02812
n=int(input()) s=list(input()) c=0 for i in range(len(s)): if s[i] == "A": if s[i+1]=="B": try: if s[i+2]=="C": c+=1 except: pass print(c)
n=int(input()) s=list(input()) c=0 for i in range(len(s)): if s[i] == "A": try: if s[i+1]=="B": if s[i+2]=="C": c+=1 except: pass print(c)
[]
614,724
614,725
u688055251
python
p02812
n=int(input()) s = list(input()) c=0 for i in range(len(s)): if s[i] == "A": if s[i+1]=="B": if s[i+2]=="C": c+=1 print(c)
n=int(input()) s=list(input()) c=0 for i in range(len(s)): if s[i] == "A": try: if s[i+1]=="B": if s[i+2]=="C": c+=1 except: pass print(c)
[ "control_flow.pass.add" ]
614,726
614,725
u688055251
python
p02812
N=int(input()) s=input() S=list(s) #print(S[0]) flg=0 for i in range(N): if S[i] == 'A': if S[i+1] =='B': if S[i+2] =='C': flg+=1 print(flg)
N=int(input()) s=input() S=list(s) #print(S[0]) flg=0 for i in range(N-2): if S[i] == 'A': if S[i+1] =='B': if S[i+2] =='C': flg+=1 print(flg)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
614,729
614,728
u316233444
python
p02812
n=int(input()) s=str(input()) count=0 for i in range(n-3): if s[i:i+3] =='ABC': count+=1 print(count)
n=int(input()) s=str(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" ]
614,732
614,733
u672882146
python
p02812
N = int(input()) S = str(input()) mycnt = 0 for i in range(N-3): if S[i] == 'A' and S[i+1] == 'B' and S[i+2] == 'C': mycnt += 1 print(mycnt)
N = int(input()) S = str(input()) mycnt = 0 for i in range(N-2): #print(i) if S[i] == 'A' and S[i+1] == 'B' and S[i+2] == 'C': mycnt += 1 print(mycnt)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,754
614,755
u919017918
python
p02812
n = int(input()) s = input() count = 0 for i in range(n-3): x = s[i:i+3] if x == 'ABC': count += 1 print(count)
n = int(input()) s = input() count = 0 for i in range(n-2): x = s[i:i+3] if x == 'ABC': count += 1 print(count)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,760
614,761
u613292673
python
p02812
#b n=int(input()) s=input() ans=0 for i in range(n-3): a=s[i]+s[i+1]+s[i+2] if a=="ABC": ans+=1 print(ans)
#b n=int(input()) s=input() ans=0 for i in range(n+1-3): a=s[i]+s[i+1]+s[i+2] if a=="ABC": ans+=1 print(ans)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
614,766
614,767
u723583932
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" ]
614,770
614,771
u601384736
python
p02812
n = int(input()) s = input() cnt = 0 for i in range(0, n-2): if s[i:i+3] == "ABC": cnt += 1 print(i) print(cnt)
n = int(input()) s = input() cnt = 0 for i in range(0, n-2): if s[i:i+3] == "ABC": cnt += 1 print(cnt)
[ "call.remove" ]
614,774
614,775
u830054172
python
p02812
n = int(input()) s = input() cnt = 0 for i in range(0, n-3): if s[i:i+3] == "ABC": cnt += 1 print(cnt)
n = int(input()) s = input() cnt = 0 for i in range(0, n-2): if s[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" ]
614,776
614,775
u830054172
python
p02812
N = int(input()) S = input() count = 0 for n in range(len(S)-3): if S[n:n+3] == "ABC": count += 1 print(count)
N = int(input()) S = input() count = 0 for n in range(len(S)-2): if S[n:n+3] == "ABC": count += 1 print(count)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,781
614,782
u853010060
python
p02812
N = int(input()) S = str(input()) cnt = 0 for i in range(0,len(S)): if S[i] == 'A' and S[i+1] == 'B' and S[i+2] == 'C': cnt += 1 print(cnt)
N = int(input()) S = str(input()) cnt = 0 for i in range(0,len(S)-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" ]
614,789
614,790
u057668615
python
p02812
n=int(input()) s=input() a=0 if n>2: for i in range(0,n): if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C': a=a+1 print(a)
n=int(input()) s=input() a=0 if n>2: for i in range(0,n): if i<n-2 and s[i]=='A' and s[i+1]=='B' and s[i+2]=='C': a=a+1 print(a)
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
614,792
614,793
u311176548
python
p02812
# -*- coding: utf-8 -*- n = int(10) s = list('ZABCDBABCQ') result = 0 for i in range(len(s)): if (i > n - 3): break if (s[i] == 'A' and s[i+1] == 'B' and s[i+2] == 'C'): result = result + 1 print(result)
n = int(input()) s = list(input()) result = 0 for i in range(len(s)): if (i > n - 3): break if (s[i] == 'A' and s[i+1] == 'B' and s[i+2] == 'C'): result = result + 1 print(result)
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "call.add" ]
614,800
614,801
u043844098
python
p02812
def p_b(): n = int(input()) s = input() ans = 0 for i in range(n - 2): if "ABC" == s[i:i + 3]: ans += 1 p_b()
def p_b(): n = int(input()) s = input() ans = 0 for i in range(n - 2): if "ABC" == s[i:i + 3]: ans += 1 print(ans) p_b()
[ "call.add" ]
614,803
614,804
u756829954
python
p02812
n=int(input()) x=input() x.count("ABC")
n=int(input()) x=input() y=x.count("ABC") print(y)
[ "call.add" ]
614,816
614,817
u631460433
python
p02812
from math import gcd # from datetime import date, timedelta from heapq import* import math from collections import defaultdict, Counter, deque from bisect import * import itertools # import sys # sys.setrecursionlimit(10 ** 7) MOD = 10 ** 9 + 7 # input = sys.stdin.readline def lcm(a, b): return a * b / math.gcd(a, b) def main(): n = int(input()) s = input() ans = 0 for i in range(n - 3): if s[i:i + 3] == "ABC": ans += 1 print(ans) # n, m = map(int, input().split()) # a = list(map(int, input().split())) # g = lcm(a[0], a[1]) # for i in range(2, n): # g = lcm(g, a[i]) # if g // 2 > m: # print(0) # exit() # print(g) # print(math.ceil(m//g + 0.5)) if __name__ == '__main__': main()
from math import gcd # from datetime import date, timedelta from heapq import* import math from collections import defaultdict, Counter, deque from bisect import * import itertools # import sys # sys.setrecursionlimit(10 ** 7) MOD = 10 ** 9 + 7 # input = sys.stdin.readline def lcm(a, b): return a * b / math.gcd(a, b) def main(): n = int(input()) s = input() ans = 0 for i in range(n - 2): # print(s[i:i+3]) if s[i:i + 3] == "ABC": ans += 1 print(ans) # n, m = map(int, input().split()) # a = list(map(int, input().split())) # g = lcm(a[0], a[1]) # for i in range(2, n): # g = lcm(g, a[i]) # if g // 2 > m: # print(0) # exit() # print(g) # print(math.ceil(m//g + 0.5)) if __name__ == '__main__': main()
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,855
614,856
u644778646
python
p02812
N=int(input()) S=input() ans=0 for i in range(N-3): if S[i]=='A' and S[i+1]=='B' and S[i+2]=='C': ans+=1 print(ans)
N=int(input()) S=input() ans=0 for i in range(N-2): if S[i]=='A' and S[i+1]=='B' and S[i+2]=='C': ans+=1 print(ans)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,861
614,862
u852690916
python
p02812
str_len = int(input()) string_sample = input() sample = 'ABC' counter = 0 for i in range(str_len - 2): print(i) if string_sample[i:i+3] == sample: counter += 1 print(counter)
str_len = int(input()) string_sample = input() sample = 'ABC' counter = 0 for i in range(str_len - 2): if string_sample[i:i+3] == sample: counter += 1 print(counter)
[ "call.remove" ]
614,866
614,867
u556751939
python
p02812
str_len = int(input()) string_sample = input() sample = 'ABC' counter = 0 for i in range(str_len - 3): if string_sample[i:i+3] == sample: counter += 1 print(counter)
str_len = int(input()) string_sample = input() sample = 'ABC' counter = 0 for i in range(str_len - 2): if string_sample[i:i+3] == sample: counter += 1 print(counter)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,868
614,867
u556751939
python
p02812
N = int(input()) S = list(input()) ans = 0 for i in range(N-3): if S[i:i+3] == ["A","B","C"]: ans += 1 print(ans)
N = int(input()) S = list(input()) ans = 0 for i in range(N-2): if S[i:i+3] == ["A","B","C"]: ans += 1 print(ans)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,876
614,877
u267300160
python
p02812
n = int(input()) s = str(input()) count = 0 for i in range(n): if s[i] == 'a' or s[i] == 'A': if i + 1 <= n: if s[i + 1] == 'b' or s[i + 1] == 'B': if i + 2 <= n: if s[i + 2] == 'c' or s[i + 2] == 'C': count += 1 print(count)
n = int(input()) s = str(input()) count = 0 for i in range(n): if s[i] == 'a' or s[i] == 'A': if i + 1 < n: if s[i + 1] == 'b' or s[i + 1] == 'B': if i + 2 < n: if s[i + 2] == 'c' or s[i + 2] == 'C': count += 1 print(count)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
614,880
614,881
u057996804
python
p02812
n = int(input()) s = input() query = 'ABC' ans = 0 i = 0 while i<n: i = s.find(query,i) print(i) if i>=0: ans +=1 i+=1 else: break print(ans)
n = int(input()) s = input() query = 'ABC' ans = 0 i = 0 while i<n: i = s.find(query,i) if i>=0: ans +=1 i+=1 else: break print(ans)
[ "call.remove" ]
614,886
614,887
u898967808
python
p02812
n = int(input()) #a,b = map(int,input().split()) #da = list(map(int,input().split())) 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" ]
614,888
614,889
u057079894
python
p02812
# -*- coding: utf-8 -*- """ Created on Fri Jan 10 21:09:39 2020 @author: over- """ N=int(input()) S=input() c=0 for i in range(N-3): if S[i:i+3]=='ABC': c+=1 print(c)
# -*- coding: utf-8 -*- """ Created on Fri Jan 10 21:09:39 2020 @author: over- """ N=int(input()) S=input() c=0 for i in range(N-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" ]
614,894
614,895
u159723084
python
p02812
n = int(input()) s = input() cnt = 0 for i in range(n-3): if s[i] + s[i+1] + s[i+2] == "ABC": cnt += 1 print(cnt)
n = int(input()) s = input() cnt = 0 for i in range(n-2): if s[i] + s[i+1] + s[i+2] == "ABC": cnt += 1 print(cnt)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,896
614,897
u620755587
python
p02812
a = input() b = a.count('ABC') print(b)
c=input() a = input() b = a.count('ABC') print(b)
[ "assignment.add" ]
614,911
614,912
u970388292
python
p02812
n = int(input()) a = input() count = 0 for i in range(2, n-1): if a[i-2]+a[i-1]+a[i] == "ABC": count += 1 print(count)
n = int(input()) a = input() count = 0 for i in range(2, n): if a[i-2]+a[i-1]+a[i] == "ABC": count += 1 print(count)
[ "expression.operation.binary.remove" ]
614,913
614,914
u498575211
python
p02812
n = int(input()) s = input() res = 0 for i in range(n): if s[i] == 'A' and s[i+1] == 'B' and s[i+2] == 'C': res += 1 print(res)
n = int(input()) s = input() res = 0 for i in range(n - 2): if s[i] == 'A' and s[i+1] == 'B' and s[i+2] == 'C': res += 1 print(res)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
614,917
614,918
u887860190
python
p02812
N = int(input()) S = str(input()) ctr = 0 if N == 3: if S[0 : 3] == "ABC": ctr += 1 else: for i in range(N - 3): if S[i : i + 3] == "ABC": ctr += 1 print(ctr)
N = int(input()) S = str(input()) ctr = 0 if N == 3: if S[0 : 3] == "ABC": ctr += 1 else: for i in range(N - 2): if S[i : i + 3] == "ABC": ctr += 1 print(ctr)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
614,923
614,924
u577138895
python
p02812
class Solution: def CountABC(self, s: str): if len(s) <= 3: return 0 count = 0 for idx in range(len(s)): if s[idx : idx + 3] == "ABC": count += 1 return count if __name__ == "__main__": n, s = int(input()), input() solution = Solution() print(solution.CountABC(s))
class Solution: def CountABC(self, s: str): if len(s) < 3: return 0 count = 0 for idx in range(len(s)): if s[idx : idx + 3] == "ABC": count += 1 return count if __name__ == "__main__": n, s = int(input()), input() solution = Solution() print(solution.CountABC(s))
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
614,932
614,933
u190076745
python
p02812
N=int(input()) S=input() print(S.count("abc",0,N))
N=int(input()) S=input() print(S.count("ABC",0,N))
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
614,940
614,941
u631998785
python
p02812
N=int(input()) S=input() print(S.count("abc"))
N=int(input()) S=input() print(S.count("ABC",0,N))
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change", "call.arguments.add" ]
614,942
614,941
u631998785
python
p02812
n = int(input()) s = input() i = 0 ans = 0 while i < len(s) - 3: if s[i] == "A" and s[i + 1] == "B" and s[i + 2] == "C": ans += 1 i += 3 else: i += 1 print(ans)
n = int(input()) s = input() i = 0 ans = 0 while i < len(s) - 2: if s[i] == "A" and s[i + 1] == "B" and s[i + 2] == "C": ans += 1 i += 3 else: i += 1 print(ans)
[ "literal.number.integer.change", "control_flow.loop.condition.change" ]
614,959
614,960
u325956328
python
p02812
n = int(input()) s = input() i = 0 ans = 0 while i < len(s): if s[i] == "A" and s[i + 1] == "B" and s[i + 2] == "C": ans += 1 i += 3 else: i += 1 print(ans)
n = int(input()) s = input() i = 0 ans = 0 while i < len(s) - 2: if s[i] == "A" and s[i + 1] == "B" and s[i + 2] == "C": ans += 1 i += 3 else: i += 1 print(ans)
[ "control_flow.loop.condition.change" ]
614,961
614,960
u325956328
python
p02812
N = int(input()) S = list(input()) stage = 0 count = 0 for i in range(N): if(S[i]=="A"): stage = 1 if(stage==1) and (S[i]=="B"): stage = 2 if(stage==2) and (S[i]=="C"): stage = 0 count += 1 print(count)
N = int(input()) S = list(input()) stage = 0 count = 0 for i in range(N): if(S[i]=="A"): stage = 1 continue if(stage==1) and (S[i]=="B"): stage = 2 continue if(stage==2) and (S[i]=="C"): stage = 0 count += 1 continue stage = 0 print(count)
[ "control_flow.continue.add" ]
614,968
614,969
u539639881
python
p02812
n = int(input()) s = input() SUM = 0 for i in range(len(s)-3): if s[i] == 'A' and s[i+1] == 'B' and s[i+2] == 'C': SUM = SUM + 1 print(SUM)
n = int(input()) s = input() SUM = 0 for i in range(n-2): if s[i] == 'A' and s[i+1] == 'B' and s[i+2] == 'C': SUM = SUM + 1 print(SUM)
[ "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change", "literal.number.integer.change" ]
614,992
614,993
u666550725
python
p02812
n= int(input()) s = input() ans=0 for i in range(n-3): if 'ABC' == s[i:i+3]: ans += 1 print(ans)
n= int(input()) s = input() ans=0 for i in range(n): if 'ABC' == s[i:i+3]: ans += 1 print(ans)
[ "expression.operation.binary.remove" ]
614,996
614,997
u521866787
python
p02812
N=int(input()) S=input() ans=0 for s in S: if s=="A": c=1 elif s=="B" and c==1: c=2 elif s=="C" and c==2: ans+=1 c=0 else: c=0 print(ans)
N=int(input()) S=input() ans=0 c=0 for s in S: if s=="A": c=1 elif s=="B" and c==1: c=2 elif s=="C" and c==2: ans+=1 c=0 else: c=0 print(ans)
[ "assignment.add" ]
614,998
614,999
u765865533
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" ]
615,000
615,001
u811436126
python
p02812
A=int(input()) B=input().split() print(B.count("ABC"))
A=int(input()) B=input() print(B.count("ABC"))
[ "call.remove" ]
615,010
615,011
u816070625
python
p02812
n,w,ans = int(input()),input(),0 for i in range(n-3): if w[i:i+3] == 'ABC' : ans += 1 print(ans)
n,w,ans = int(input()),input(),0 for i in range(n-2): if w[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" ]
615,022
615,023
u152391261
python
p02812
n = int(input()) s = input() c = 0 for i in range(n-3): if s[i:(i+3)] == 'ABC': c += 1 print(c)
n = int(input()) s = input() c = 0 for i in range(n-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" ]
615,032
615,033
u765270691
python
p02812
n = int(input()) s = input() cnt = 0 for i in range(0, n-3): if s[i:i+3] == 'ABC': cnt += 1 print(cnt)
n = int(input()) s = input() cnt = 0 for i in range(0, n-2): if s[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" ]
615,038
615,039
u058592821
python
p02812
N = int(input()) S = input() ans = 0 for i in range(N-2): if S[i] == "A" and S[i+1] == "B" and S[i+2] == "C": ans = ans + 1
N = int(input()) S = input() ans = 0 for i in range(N-2): if S[i] == "A" and S[i+1] == "B" and S[i+2] == "C": ans = ans + 1 print(ans)
[ "call.add" ]
615,040
615,041
u609814378
python
p02812
n=int(input()) s=input() c=0 for i in range(len(s)): if s[i]=="A": if s[i+1]=="B": if s[i+2]=="C": c+=1 i+=2 print(c)
n=int(input()) s=input() c=0 for i in range(len(s)-2): if s[i]=="A": if s[i+1]=="B": if s[i+2]=="C": c+=1 i+=2 print(c)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
615,044
615,045
u032222383
python
p02812
ans=0 n=input() s=input() for i in s: if i=="A": flag="a" elif i=="B" and flag=="a": flag="b" elif i=="C" and flag=="b": flag="0" ans+=1 else: flag="0" print(ans)
ans=0 n=input() s=input() flag="0" for i in s: if i=="A": flag="a" elif i=="B" and flag=="a": flag="b" elif i=="C" and flag=="b": flag="0" ans+=1 else: flag="0" print(ans)
[ "assignment.add" ]
615,046
615,047
u058861899
python
p02812
n = int(input()) s = input() count = 0 for i in range(len(s)): if(s[i] == "A"): if(s[i+1] == "B"): if(s[i+2] == "C"): count = count + 1 print(count)
n = int(input()) s = input() count = 0 for i in range(len(s)-2): if(s[i] == "A"): if(s[i+1] == "B"): if(s[i+2] == "C"): count = count + 1 print(count)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
615,048
615,049
u761676084
python
p02812
N = int(input()) s = input() cnt = 0 flg = 0 for i in range(N): if flg == 0 and s[i] == "A": flg = 1 elif flg == 1 and s[i] == "B": flg = 2 elif flg == 2 and s[i] == "C": flg = 0 cnt += 1 else: flg = 0 print(cnt)
N = int(input()) s = input() cnt = 0 flg = 0 for i in range(N): if s[i] == "A": flg = 1 elif flg == 1 and s[i] == "B": flg = 2 elif flg == 2 and s[i] == "C": flg = 0 cnt += 1 else: flg = 0 print(cnt)
[ "control_flow.loop.for.condition.change" ]
615,054
615,055
u301387419
python
p02812
n = int(input()) s = str(input()) a = 0 for i in range(0,n): if s[i] == "A": if s[i+1] == "B": if s[i+2] == "C": a +=1 print(a)
n = int(input()) s = str(input()) a = 0 for i in range(0,n-2): if s[i] == "A": if s[i+1] == "B": if s[i+2] == "C": a +=1 print(a)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
615,066
615,067
u589913372
python
p02812
s = input().split()[1] print(s.count("ABC"))
s = input() s = input() print(s.count("ABC"))
[ "call.add" ]
615,068
615,069
u879866069
python
p02812
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(500000) n = int(readline()) s = readline().decode("utf-8") cnt = 0 for i in range(n-3): if s[i:i+3] == "ABC": cnt += 1 print(cnt)
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(500000) n = int(readline()) s = readline().decode("utf-8") cnt = 0 for i in range(n-2): if s[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" ]
615,074
615,075
u961683878
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" ]
615,082
615,083
u922952729
python
p02812
n = int(input()) s = input() ans = 0 for i in range(n - 3): if (s[i] == "A"): if s[i + 1] == "B": if s[i + 2] == "C": ans += 1 print(ans)
n = int(input()) s = input() ans = 0 for i in range(n - 2): if s[i] == "A": if s[i + 1] == "B": if s[i + 2] == "C": ans += 1 print(ans)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change", "control_flow.branch.if.condition.change" ]
615,088
615,089
u536685012
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" ]
615,090
615,091
u684906944
python
p02812
from sys import stdin def fetch_one_line(): return stdin.readline().rstrip() fetch_one_line() line = fetch_one_line() count = 0 for i in range(len(line) - 3): if line[i: i + 3] == "ABC": count += 1 print(count)
from sys import stdin def fetch_one_line(): return stdin.readline().rstrip() fetch_one_line() line = fetch_one_line() count = 0 for i in range(len(line) - 2): if line[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" ]
615,092
615,093
u717387812
python
p02812
N=int(input()) S=input() cnt=0 for i in range(N-3): s=S[i:i+3] if s=="ABC": cnt+=1 print(cnt)
N=int(input()) S=input() cnt=0 for i in range(N-2): s=S[i:i+3] if s=="ABC": cnt+=1 print(cnt)
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
615,100
615,101
u639592190
python
p02812
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)
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)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
615,135
615,136
u966311314
python
p02812
N=int(input()) A=input() i=0 ans=0 while(True): if i>N-3: break if A[i]=='A' and A[i+1]=='B' and A[i+2]=='C': ans+=1 i+=3 else: i+=1
N=int(input()) A=input() i=0 ans=0 while(True): if i>N-3: break if A[i]=='A' and A[i+1]=='B' and A[i+2]=='C': ans+=1 i+=3 else: i+=1 print(ans)
[ "call.add" ]
615,145
615,146
u058809975
python
p02812
import sys; readline = sys.stdin.readline from collections import deque n = int(readline()) s = readline().rstrip() count = 0 for i in range(n - 2): if s[i:i+3] == 'abc': count += 1 print(count)
import sys; readline = sys.stdin.readline from collections import deque N = int(readline()) S = readline().rstrip() count = 0 for i in range(N - 2): if S[i:i+3] == 'ABC': count += 1 print(count)
[ "assignment.variable.change", "identifier.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change", "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change" ]
615,149
615,150
u780465569
python
p02812
import sys; readline = sys.stdin.readline from collections import deque N = int(readline()) S = readline().rstrip() count = 0 for i in range(N - 3): if S[i:i+3] == 'ABC': count += 1 print(count)
import sys; readline = sys.stdin.readline from collections import deque N = int(readline()) S = readline().rstrip() 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" ]
615,151
615,150
u780465569
python
p02812
import math import queue import bisect import heapq import time import itertools mod = int(1e9+7) def swap(a,b): return (b,a) def gcd(a,b): #最大公約数 if (a<b): a,b = swap(a,b) if (b==0): return a else: return gcd(b,a%b) def lcm(a,b): #最小公倍数 return a/gcd(a,b)*b def divisors(a): # 約数列挙 divisors = [] for i in range(1,int(a**0.5)+1): if a%i==0: divisors.append(i) if i!=a//i: divisors.append(a//i) return divisors def is_prime(a): #素数判定 if a<2: return False elif a==2: return True elif a%2==0: return False sqrt_num = int(a**0.5) for i in range(3,sqrt_num+1,2): if a%i==0: return False return True def prime_num(a): #素数列挙 pn = [2] for i in range(3,int(a**0.5),2): prime = True for j in pn: if i%j==0: prime = False break if prime: pn.append(i) return pn def prime_fact(a): #素因数分解 sqrt = math.sqrt(a) res = [] i = 2 if is_prime(a): res.append(a) else: while a!=1: while a%i==0: res.append(i) a //= i i += 1 return res def main(): n = int(input()) s = input() ans = 0 for i in range(n-3): if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C': ans += 1 print(ans) return if __name__=='__main__': main()
import math import queue import bisect import heapq import time import itertools mod = int(1e9+7) def swap(a,b): return (b,a) def gcd(a,b): #最大公約数 if (a<b): a,b = swap(a,b) if (b==0): return a else: return gcd(b,a%b) def lcm(a,b): #最小公倍数 return a/gcd(a,b)*b def divisors(a): # 約数列挙 divisors = [] for i in range(1,int(a**0.5)+1): if a%i==0: divisors.append(i) if i!=a//i: divisors.append(a//i) return divisors def is_prime(a): #素数判定 if a<2: return False elif a==2: return True elif a%2==0: return False sqrt_num = int(a**0.5) for i in range(3,sqrt_num+1,2): if a%i==0: return False return True def prime_num(a): #素数列挙 pn = [2] for i in range(3,int(a**0.5),2): prime = True for j in pn: if i%j==0: prime = False break if prime: pn.append(i) return pn def prime_fact(a): #素因数分解 sqrt = math.sqrt(a) res = [] i = 2 if is_prime(a): res.append(a) else: while a!=1: while a%i==0: res.append(i) a //= i i += 1 return res def main(): n = int(input()) s = input() ans = 0 for i in range(n-2): if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C': ans += 1 print(ans) return if __name__=='__main__': main()
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
615,159
615,160
u807028974
python
p02812
N=int(input()) S=input() count=0 for n in range(N-3): s=S[n:n+3] if s=='ABC': count+=1 print(count)
N=int(input()) S=input() count=0 for n in range(N-3+1): s=S[n:n+3] if s=='ABC': count+=1 print(count)
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
615,173
615,174
u997641430
python
p02812
def main(): n=int(input()) s=input() print(sum(1 for i in range(max(0,n-3)) if s[i:i+3] == 'ABC')) main()
def main(): n=int(input()) s=input() print(sum(1 for i in range(max(0,n-2)) if s[i:i+3] == 'ABC')) main()
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
615,177
615,178
u013582910
python
p02812
def main(): n=int(input()) s=input() print(sum(1 for i in range(n-3) if s[i:i+3] == 'ABC')) main()
def main(): n=int(input()) s=input() print(sum(1 for i in range(max(0,n-2)) if s[i:i+3] == 'ABC')) main()
[ "call.add", "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
615,179
615,178
u013582910
python