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 9
values |
|---|---|---|---|---|---|---|---|
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,240
| 614,241
|
u971096161
|
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,242
| 614,241
|
u971096161
|
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,247
| 614,248
|
u143903328
|
python
|
p02812
|
N = int(input())
S = input()
ans = 0
for i in range(N-1):
print(i)
if S[i:i+3] == "ABC":
ans += 1
print(ans)
|
N = int(input())
S = input()
ans = 0
for i in range(N-1):
if S[i:i+3] == "ABC":
ans += 1
print(ans)
|
[
"call.remove"
] | 614,266
| 614,267
|
u198905553
|
python
|
p02812
|
N=int(input())
S=list(input())
x=count=0
search_word=["A","B","C"]
for x in range(N):
if S[x]==search_word[0] and S[x+1]==search_word[1] and S[x+2]==search_word[2]:
count+=1
x+=1
print(count)
|
N=int(input())
S=list(input())
x=count=0
search_word=["A","B","C"]
for x in range(N-2):
if S[x]==search_word[0] and S[x+1]==search_word[1] and S[x+2]==search_word[2]:
count+=1
x+=1
print(count)
|
[
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 614,292
| 614,293
|
u464205401
|
python
|
p02812
|
N=int(input())
S=input()
cnt=0
for i in range(len(S)-3):
if S[i:i+3]=="ABC":
cnt+=1
print(cnt)
|
N=int(input())
S=input()
cnt=0
for i in range(len(S)-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,296
| 614,297
|
u821251381
|
python
|
p02812
|
N = int(input())
S = str(input())
S = S.replace("abc","pq")
print(N - len(S))
|
N = int(input())
S = str(input())
S = S.replace("ABC","ab")
print(N - len(S))
|
[
"literal.string.change",
"literal.string.case.change",
"assignment.value.change",
"call.arguments.change"
] | 614,298
| 614,299
|
u074140654
|
python
|
p02812
|
N = int(input())
S = str(input())
S.replace("abc","pq")
print(N - len(S))
|
N = int(input())
S = str(input())
S = S.replace("ABC","ab")
print(N - len(S))
|
[
"literal.string.change",
"literal.string.case.change",
"assignment.value.change",
"call.arguments.change"
] | 614,300
| 614,299
|
u074140654
|
python
|
p02812
|
n = int(input())
s = input()
cnt = 0
flag = 0
for i in range(n):
if s[i] == "A":
flag = 1
elif s[i] == "B" and flag == 1:
flag = 2
elif s[i] == "C" and flag == 2:
cnt += 1
flag = 0
print(cnt)
|
n = int(input())
s = input()
cnt = 0
flag = 0
for i in range(n):
if s[i] == "A":
flag = 1
elif s[i] == "B" and flag == 1:
flag = 2
elif s[i] == "C" and flag == 2:
cnt += 1
flag = 0
else:
flag = 0
print(cnt)
|
[
"assignment.add"
] | 614,305
| 614,306
|
u141410514
|
python
|
p02812
|
n = input()
print(inpur().count("ABC"))
|
n = input()
print(input().count("ABC"))
|
[
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 614,311
| 614,312
|
u393512980
|
python
|
p02812
|
n=int(input())
s=input()
s.split('ABC')
print(len(s)-1)
|
n=(input())
s=input()
s=s.split('ABC')
print(len(s)-1)
|
[
"assignment.add"
] | 614,319
| 614,320
|
u995109095
|
python
|
p02812
|
n =int(input())
s =list(input())
k =0
for i in range(n-3):
if s[i]=="A":
if s[i+1]=="B" and s[i+2]=="C":
k+=1
print(k)
|
n =int(input())
s =list(input())
k =0
for i in range(n-2):
if s[i]=="A":
if s[i+1]=="B" and s[i+2]=="C":
k+=1
print(k)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 614,325
| 614,326
|
u757991037
|
python
|
p02812
|
n =int(input())
s =input()
k =0
for i in range(n-3):
if s[i]=="A":
if s[i+1]=="B" and s[i+2]=="C":
k+=1
print(k)
|
n =int(input())
s =list(input())
k =0
for i in range(n-2):
if s[i]=="A":
if s[i+1]=="B" and s[i+2]=="C":
k+=1
print(k)
|
[
"call.add",
"call.arguments.change",
"literal.number.integer.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 614,327
| 614,326
|
u757991037
|
python
|
p02812
|
n=int(input())
s=str(input())
ans=0
for i in range(n):
if s[i:i+3] =="abc":
ans +=1
else:
ans +=0
print(ans)
|
n=int(input())
s=str(input())
ans=0
for i in range(n):
if s[i:i+3] =="ABC":
ans +=1
else:
ans +=0
print(ans)
|
[
"literal.string.change",
"literal.string.case.change",
"control_flow.branch.if.condition.change"
] | 614,330
| 614,331
|
u182594853
|
python
|
p02812
|
#coding:utf-8
n = int(input())
s = input()
count = 0
for i in range(0, n-3):
if s[i:i+3] == 'ABC':
count += 1
print(count)
|
#coding:utf-8
n = int(input())
s = input()
count = 0
for i in range(0, n-2):
#print(s[i:i+3])
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,334
| 614,335
|
u167908302
|
python
|
p02812
|
#python3
n=int(input())
s=input()
match='ABC'
cnt=0
for i in range(n-3):
b=s[i:i+3]
if match == b:
cnt+=1
print(cnt)
|
#python3
n=int(input())
s=input()
match='ABC'
cnt=0
for i in range(n-2):
b=s[i:i+3]
if match == b:
cnt+=1
print(cnt)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 614,380
| 614,381
|
u775681539
|
python
|
p02812
|
N = int(input())
S = int(input())
print(S.count('ABC'))
|
N = int(input())
S = input()
print(S.count('ABC'))
|
[
"call.remove",
"call.arguments.change"
] | 614,386
| 614,387
|
u975797983
|
python
|
p02812
|
n = int(input())
s = str(inout())
ans = 0
for i in range(n-2):
if s[i] == "A" and s[i+1] == "B" and s[i+2] == "C":
ans += 1
else:
continue
print(ans)
|
n = int(input())
s = str(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
else:
continue
print(ans)
|
[
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 614,402
| 614,403
|
u972892985
|
python
|
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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.