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()
flag = 0
for i in range(n-1):
if i == n-3:
break
if s[i] == 'A':
if s[i+1] == 'B':
if s[i+2] == 'C':
flag =+ 1
print(flag)
|
n = int(input())
s = input()
flag = 0
for i in range(n-1):
if i == n-2:
break
if s[i] == 'A':
if s[i+1] == 'B':
if s[i+2] == 'C':
flag += 1
print(flag)
|
[
"literal.number.integer.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"expression.operation.unary.arithmetic.remove"
] | 613,594
| 613,592
|
u335281728
|
python
|
p02812
|
N = int(input())
S = input()
cnt = 0
for i in range(len(S)):
if S[i]=='A' and S[i+1]=='B' and S[i+2]=='C':
cnt += 1
print(cnt)
|
N = int(input())
S = input()
cnt = 0
for i in range(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"
] | 613,597
| 613,598
|
u627803856
|
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"
] | 613,624
| 613,625
|
u067694718
|
python
|
p02812
|
import math
import copy
from copy import deepcopy
import sys
import fractions
# import numpy as np
from functools import reduce
# import statistics
import decimal
import heapq
import collections
import itertools
from operator import mul
sys.setrecursionlimit(100001)
# input = sys.stdin.readline
# sys.setrecursionlimit(10**6)
# ===FUNCTION===
def getInputInt():
inputNum = int(input())
return inputNum
def getInputListInt():
outputData = []
inputData = input().split()
outputData = [int(n) for n in inputData]
return outputData
def getSomeInputInt(n):
outputDataList = []
for i in range(n):
inputData = int(input())
outputDataList.append(inputData)
return outputDataList
def getSomeInputListInt(n):
inputDataList = []
outputDataList = []
for i in range(n):
inputData = input().split()
inputDataList = [int(n) for n in inputData]
outputDataList.append(inputDataList)
return outputDataList
# ===CODE===
n = int(input())
s = input()
ans = 0
for i in range(n - 3):
if s[i:i + 3] == "ABC":
ans += 1
print(ans)
|
import math
import copy
from copy import deepcopy
import sys
import fractions
# import numpy as np
from functools import reduce
# import statistics
import decimal
import heapq
import collections
import itertools
from operator import mul
sys.setrecursionlimit(100001)
# input = sys.stdin.readline
# sys.setrecursionlimit(10**6)
# ===FUNCTION===
def getInputInt():
inputNum = int(input())
return inputNum
def getInputListInt():
outputData = []
inputData = input().split()
outputData = [int(n) for n in inputData]
return outputData
def getSomeInputInt(n):
outputDataList = []
for i in range(n):
inputData = int(input())
outputDataList.append(inputData)
return outputDataList
def getSomeInputListInt(n):
inputDataList = []
outputDataList = []
for i in range(n):
inputData = input().split()
inputDataList = [int(n) for n in inputData]
outputDataList.append(inputDataList)
return outputDataList
# ===CODE===
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"
] | 613,655
| 613,656
|
u888337853
|
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"
] | 613,660
| 613,661
|
u538632589
|
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"
] | 613,674
| 613,675
|
u914330401
|
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"
] | 613,676
| 613,675
|
u914330401
|
python
|
p02812
|
N = int(input())
S = str(input())
S.count('ABC')
|
N = int(input())
S = str(input())
print(S.count('ABC'))
|
[
"call.add",
"call.arguments.change"
] | 613,681
| 613,682
|
u461833298
|
python
|
p02812
|
N = int(input())
S = list(input())
ans = 0
for i in range(N):
if (S[i]=="A" and S[i+1]=="B" and S[i+2]=="C"):
ans += 1
print(ans)
|
N = int(input())
S = list(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)
|
[
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 613,690
| 613,691
|
u212786022
|
python
|
p02812
|
N = int(input())
s = input()
ans = 0
if N < 3:print(0);exit()
for i in range(N-3):
if s[i:i+3] == 'ABC':ans += 1
print(ans)
|
N = int(input())
s = input()
ans = 0
if N < 3:print(0);exit()
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"
] | 613,697
| 613,698
|
u704284486
|
python
|
p02812
|
n = int(input())
s = input()
ss = "ABC"
cnt = 0
for i in range(n-3):
if s[i:i+3] == ss:
cnt += 1
print(cnt)
|
n = int(input())
s = input()
ss = "ABC"
cnt = 0
for i in range(n-2):
if s[i:i+3] == ss:
#print(s[i:i+3])
cnt += 1
print(cnt)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 613,703
| 613,704
|
u252828980
|
python
|
p02812
|
from sys import stdin
lines = stdin.readlines()
n = int(lines[0].rstrip())
s = str(lines[1].rstrip())
counter = 0
for i in range(n-2):
print(i)
if s[i] == 'A':
if s[i+1] == 'B':
if s[i+2] == 'C':
counter += 1
print(counter)
|
from sys import stdin
lines = stdin.readlines()
n = int(lines[0].rstrip())
s = str(lines[1].rstrip())
counter = 0
for i in range(n-2):
if s[i] == 'A':
if s[i+1] == 'B':
if s[i+2] == 'C':
counter += 1
print(counter)
|
[
"call.remove"
] | 613,717
| 613,718
|
u374815848
|
python
|
p02812
|
N = int(input())
A = input()
ans = 0
for i in range(N):
if A[i] == 'A' and A[i+1] == 'B' and A[i+2] == 'C':
ans += 1
print(ans)
|
N = int(input())
A = 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)
|
[
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 613,731
| 613,732
|
u514118270
|
python
|
p02812
|
n = int(input())
s = list(str(input()))
ans = s.count('ABC')
print(ans)
|
n = int(input())
s = input()
ans = s.count('ABC')
print(ans)
|
[
"call.remove",
"call.arguments.change"
] | 613,735
| 613,736
|
u569479281
|
python
|
p02812
|
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, acos, atan, asin
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from math import gcd
def input(): return sys.stdin.readline().strip()
def STR(): return input()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
sys.setrecursionlimit(10 ** 9)
inf = sys.maxsize
mod = 10 ** 9 + 7
n = INT()
s = STR()
i = 0
ans = 0
while i < n - 3:
if s[i:i + 3] == 'ABC':
ans += 1
i += 3
else:
i += 1
print(ans)
|
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, acos, atan, asin
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from math import gcd
def input(): return sys.stdin.readline().strip()
def STR(): return input()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
sys.setrecursionlimit(10 ** 9)
inf = sys.maxsize
mod = 10 ** 9 + 7
n = INT()
s = STR()
i = 0
ans = 0
while i < n - 2:
if s[i:i + 3] == 'ABC':
ans += 1
i += 3
else:
i += 1
print(ans)
|
[
"literal.number.integer.change",
"control_flow.loop.condition.change"
] | 613,741
| 613,742
|
u287500079
|
python
|
p02812
|
n = int(input())
s = input()
y = list(s)
ans = 0
for a in range(n):
a = int(a)
if y[a] == "A" and y[a+1] == "B" and y[a+2] == "C":
ans += 1
print(ans)
|
n = int(input())
s = input()
y = list(s+"JK")
ans = 0
for a in range(n):
a = int(a)
if y[a] == "A" and y[a+1] == "B" and y[a+2] == "C":
ans += 1
print(ans)
|
[
"assignment.change"
] | 613,743
| 613,744
|
u832459318
|
python
|
p02812
|
N = int(input())
S = input()
t = 0
for i in range(N-3):
if S[i:i+3] == "ABC":
t += 1
print(t)
|
N = int(input())
S = input()
t = 0
for i in range(N-2):
if S[i:i+3] == "ABC":
t += 1
print(t)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 613,748
| 613,749
|
u273496671
|
python
|
p02812
|
n = int(input())
s = input()
s_abc = "ABC"
count = 0
for i in range(n-3):
for j in range(3):
if s[i+j] != s_abc[j]:
break
else:
count += 1
print(count)
|
n = int(input())
s = input()
s_abc = "ABC"
count = 0
for i in range(n-2):
for j in range(3):
if s[i+j] != s_abc[j]:
break
else:
count += 1
print(count)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 613,756
| 613,757
|
u514390882
|
python
|
p02812
|
import sys
input = sys.stdin.readline
N = int(input())
S = input().rstrip('\r\n')
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)
|
import sys
input = sys.stdin.readline
N = int(input())
S = input().rstrip('\r\n')
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"
] | 613,779
| 613,780
|
u004423772
|
python
|
p02812
|
n = int(input)
s = input()
print(len(s.split('ABC')) - 1)
|
n = int(input())
s = input()
print(len(s.split('ABC')) - 1)
|
[
"call.add"
] | 613,787
| 613,788
|
u251075661
|
python
|
p02812
|
n = int(input())
S = input()
cnt = 0
for i in range(n-3):
if "ABC" == S[i:i+3]:
cnt += 1
print(cnt)
|
n = int(input())
S = input()
cnt = 0
for i in range(n-2):
if "ABC" == S[i:i+3]:
cnt += 1
print(cnt)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 613,789
| 613,790
|
u555688810
|
python
|
p02812
|
N = int(input())
S = input()
S = [i for i in S]
cnt = 0
for i in range(0, N-3):
if S[i]=='A' and S[i+1]=='B' and S[i+2]=='C':
cnt+=1
print(cnt)
|
N = int(input())
S = input()
S = [i for i in S]
cnt = 0
for i in range(0, N-2):
if S[i]=='A' and S[i+1]=='B' and S[i+2]=='C':
cnt+=1
print(cnt)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 613,798
| 613,799
|
u450147945
|
python
|
p02812
|
n = int(input())
s = input()
print(count("ABC"))
|
n = int(input())
s = input()
print(s.count("ABC"))
|
[] | 613,807
| 613,808
|
u923270446
|
python
|
p02812
|
n = int(input())
s = input()
count = 0
for i in range(0, n-3):
if s[i : i + 3] == 'ABC':
count += 1
print(count)
|
n = int(input())
s = input()
count = 0
for i in range(0, 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"
] | 613,809
| 613,810
|
u243740419
|
python
|
p02812
|
N = int(input())
S = input()
ct = 0
for i in range(N-3):
if S[i] == 'A' and S[i+1] == 'B' and S[i+2] == 'C':
ct += 1
print(ct)
|
N = int(input())
S = input()
ct = 0
for i in range(N-2):
if S[i] == 'A' and S[i+1] == 'B' and S[i+2] == 'C':
ct += 1
print(ct)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 613,817
| 613,818
|
u228214259
|
python
|
p02812
|
N = int(input())
S = input()
c = 0
for i in range(N-2):
S[i] + S[i+1] + S[i+2] == 'ABC'
c += 1
print(c)
|
N = int(input())
S = input()
c = 0
for i in range(N-2):
if (S[i] + S[i+1] + S[i+2]) == 'ABC':
c += 1
print(c)
|
[
"control_flow.branch.if.add",
"control_flow.branch.if.condition.change"
] | 613,824
| 613,825
|
u841599623
|
python
|
p02812
|
import sys
input = sys.stdin.readline
def main():
N = int(input())
s = input().strip()
ans = 0
for i in range(N-3):
if s[i:i+3] == "ABC":
ans += 1
print(ans)
if __name__ == "__main__":
main()
|
import sys
input = sys.stdin.readline
def main():
N = int(input())
s = input().strip()
ans = 0
for i in range(N-2):
if s[i:i+3] == "ABC":
ans += 1
print(ans)
if __name__ == "__main__":
main()
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 613,836
| 613,837
|
u480138356
|
python
|
p02812
|
S = input()
res = 0
for i in range(len(S)-2):
if S[i] == 'A' and S[i+1] == 'B' and S[i+2] == 'C':
res += 1
print(res)
|
N = input()
S = input()
res = 0
for i in range(len(S)-2):
if S[i] == 'A' and S[i+1] == 'B' and S[i+2] == 'C':
res += 1
print(res)
|
[
"assignment.add"
] | 613,842
| 613,843
|
u411858517
|
python
|
p02812
|
S = intput()
res = 0
for i in range(len(S)-2):
if S[i] == 'A' and S[i+1] == 'B' and S[i+2] == 'C':
res += 1
print(res)
|
N = input()
S = input()
res = 0
for i in range(len(S)-2):
if S[i] == 'A' and S[i+1] == 'B' and S[i+2] == 'C':
res += 1
print(res)
|
[
"assignment.variable.change",
"identifier.change",
"assignment.value.change",
"call.function.change"
] | 613,844
| 613,843
|
u411858517
|
python
|
p02812
|
N = int(input())
S = input()
ans = 0
str_list = list(S)
for i in range (len(str_list)-2):
if(str_list[i] == "A"):
pass
if(str_list[i+1] == "B"):
pass
if(str[i+2] == "C"):
ans += 1
print(ans)
|
N = int(input())
S = input()
ans = 0
str_list = list(S)
for i in range (len(str_list)-2):
if(str_list[i] == "A"):
if(str_list[i+1] == "B"):
if(str_list[i+2] == "C"):
ans += 1
print(ans)
|
[
"identifier.change",
"control_flow.branch.if.condition.change"
] | 613,847
| 613,848
|
u964521959
|
python
|
p02812
|
N = int(input())
S = input()
ans = 0
str_list = list(S)
for i in range (len(str_list)-2):
if(str_list[i] == "A"):
if(str_list[i+1] == "B"):
if(str[i+2] == "C"):
ans += 1
print(ans)
|
N = int(input())
S = input()
ans = 0
str_list = list(S)
for i in range (len(str_list)-2):
if(str_list[i] == "A"):
if(str_list[i+1] == "B"):
if(str_list[i+2] == "C"):
ans += 1
print(ans)
|
[
"identifier.change",
"control_flow.branch.if.condition.change"
] | 613,849
| 613,848
|
u964521959
|
python
|
p02812
|
N = int(input())
S = input()
c = 0
for i in range(N-2):
if S[i:i+3]=="ABC":
c += 0
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"
] | 613,858
| 613,859
|
u703890795
|
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"
] | 613,860
| 613,861
|
u366959492
|
python
|
p02812
|
N = int(input())
S = lst(input())
cnt = 0
for i in range(0,4):
if S[i] == "A" and S[i+1] == "C" and S[i+2] == "C":
cnt += 1
print(cnt)
|
N = int(input())
S = list(input())
cnt = 0
for i in range(0,N-2):
if S[i] == "A" and S[i+1] == "B" and S[i+2] == "C":
cnt += 1
print(cnt)
|
[
"assignment.value.change",
"identifier.change",
"call.function.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 613,870
| 613,871
|
u796708718
|
python
|
p02812
|
N = int(input())
S = input()
cnt = 0
for i in range(N-3):
if S[i:i + 3] == 'ABC':
cnt += 1
print(cnt)
|
N = int(input())
S = input()
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"
] | 613,872
| 613,873
|
u813102292
|
python
|
p02812
|
N = int(input())
words = input()
ans = 0
for i in range(N-4):
if words[i] == "A":
if words[i+1] == "B":
if words[i+2] == "C":
ans += 1
print(ans)
|
N = int(input())
words = input()
ans = 0
for i in range(N-2):
if words[i] == "A":
if words[i+1] == "B":
if words[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"
] | 613,885
| 613,886
|
u558129042
|
python
|
p02812
|
N = int(input())
S = list(input())
count=0
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 = list(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)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 613,897
| 613,898
|
u017603316
|
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"
] | 613,919
| 613,920
|
u697559326
|
python
|
p02812
|
n = int(input())
*s, = input()
ans = 0
for i in range(n-3):
if "".join(s[i:i+3]) == "ABC":
ans += 1
print(ans)
|
n = int(input())
*s, = input()
ans = 0
for i in range(n-2):
if "".join(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"
] | 613,925
| 613,926
|
u746419473
|
python
|
p02812
|
N = int(input())
S = input()
ans = 0
for i in range(N):
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)
|
[
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 613,933
| 613,934
|
u824756230
|
python
|
p02812
|
def main():
n = int(input())
s = input()
abc = "ABC"
ans = 0
for i in range(n-3):
if s[i:i+3] == abc:
ans += 1
print(ans)
if __name__ == "__main__":
main()
|
def main():
n = int(input())
s = input()
abc = "ABC"
ans = 0
for i in range(n-2):
if s[i:i+3] == abc:
ans += 1
print(ans)
if __name__ == "__main__":
main()
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 613,939
| 613,940
|
u585070471
|
python
|
p02812
|
#from math import sqrt
#from heapq import heappush, heappop
#from collections import deque
#a, b = [int(v) for v in input().split()]
def main():
N = int(input())
S = input()
count = 0
state = 0
for c in S:
if c == 'A':
state = 1
elif state == 1:
if c == 'B':
state = 2
else:
state = 0
elif state == 2:
if c == 'C':
count = 2
state = 0
else:
state = 0
print(count)
main()
|
#from math import sqrt
#from heapq import heappush, heappop
#from collections import deque
#a, b = [int(v) for v in input().split()]
def main():
N = int(input())
S = input()
count = 0
state = 0
for c in S:
if c == 'A':
state = 1
elif state == 1:
if c == 'B':
state = 2
else:
state = 0
elif state == 2:
if c == 'C':
count += 1
state = 0
print(count)
main()
|
[
"assignment.remove"
] | 613,941
| 613,942
|
u006883624
|
python
|
p02812
|
N = input()
S = input()
# N = 10
# S = 'ZABCDBABCQ'
ans = 0
for i in range(N - 2):
if S[i:i+3] == 'ABC':
ans += 1
print(ans)
|
N = int(input())
S = input()
# N = 10
# S = 'ZABCDBABCQ'
ans = 0
for i in range(N - 2):
if S[i:i+3] == 'ABC':
ans += 1
print(ans)
|
[
"call.add",
"call.arguments.change"
] | 613,973
| 613,974
|
u362771726
|
python
|
p02812
|
import sys
input = sys.stdin.readline
N = int(input())
S = input()
count = 0
for i in range(N - 3):
if S[i:i+3] == 'ABC':
count += 1
print(count)
|
import sys
input = sys.stdin.readline
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"
] | 613,977
| 613,978
|
u371385198
|
python
|
p02812
|
n = int(input())
s = input()
ls = s.replace("ABC","")
print(ls)
print((n-len(ls))//3)
|
n = int(input())
s = input()
ls = s.replace("ABC","")
print((n-len(ls))//3)
|
[
"call.remove"
] | 613,979
| 613,980
|
u969211566
|
python
|
p02812
|
N = int(input())
S = input()
i = 0
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()
i = 0
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,010
| 614,011
|
u294376483
|
python
|
p02812
|
n = int(input())
s = input()
ans = 0
for i in range(n):
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)
|
[
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 614,038
| 614,039
|
u317779196
|
python
|
p02812
|
N=int(input())
S = input()
s = 0
for i in range(0,N-3):
if S[i:i+3] == "ABC":
s += 1
print(s)
|
N=int(input())
S = input()
s = 0
for i in range(0,N-2):
if S[i:i+3] == "ABC":
s += 1
print(s)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 614,040
| 614,041
|
u355262618
|
python
|
p02812
|
N = int(input())
S = str(input())
s = 0
for i in range(N-3):
if S[i:i+3] == 'ABC':
s = s + 1
else:
s = s
print(s)
|
N = int(input())
S = str(input())
s = 0
for i in range(N-2):
if S[i:i+3] == 'ABC':
s = s + 1
else:
s = s
print(s)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 614,048
| 614,049
|
u053909865
|
python
|
p02812
|
n = int(input())
s = input()
ans = 0
for i in range(n-2):
if s[i:i+2] == '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",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 614,054
| 614,055
|
u131666536
|
python
|
p02812
|
n = int(input())
s = input()
ans = 0
for i in range(n):
if s[i:i+2] == '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",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 614,056
| 614,055
|
u131666536
|
python
|
p02812
|
M = int(input())
S = input()
count=0
for i in range(M-3):
if S[i:i+3]=="ABC":
count+=1
print(count)
|
M = int(input())
S = input()
count=0
for i in range(M-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,059
| 614,060
|
u098982053
|
python
|
p02812
|
N = int(input())
S = str(input())
ans = 0
for i in range(N-3):
if S[i]+S[i+1]+S[i+2] == 'ABC':
ans += 1
print(ans)
|
N = int(input())
S = str(input())
ans = 0
for i in range(N-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"
] | 614,061
| 614,062
|
u948779457
|
python
|
p02812
|
input()
S = input()
print(S.count("abc"))
|
input()
S = input()
print(S.count("ABC"))
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 614,063
| 614,064
|
u164029270
|
python
|
p02812
|
print(input().count('ABC'))
|
n=input()
print(input().count('ABC'))
|
[
"assignment.add"
] | 614,065
| 614,066
|
u835924161
|
python
|
p02812
|
n = int(input())
s = input()
ans = 0
for i in range(n - 2):
if s[i:i + 3] == "ABC":
++ans
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)
|
[] | 614,067
| 614,068
|
u098510720
|
python
|
p02812
|
N = int(input())
L = input()
K = 0
for i in range(N-3):
if L[i] == "A" and L[i+1] =="B" and L[i+2] == "C":
K = K+1
print(K)
|
N = int(input())
L = input()
K = 0
for i in range(N-2):
if L[i] == "A" and L[i+1] =="B" and L[i+2] == "C":
K = K+1
print(K)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 614,072
| 614,073
|
u318740143
|
python
|
p02812
|
N=input()
S=input()
cnt=0
y=S.find("ABC")
if y==-1:
print(0)
else:
while y!=-1:
S=S.replace(S[:y],"")
S=S.replace("ABC","",1)
y=S.find("ABC")
cnt+=1
print(cnt)
|
N=input()
S=input()
cnt=0
y=S.find("ABC")
if y==-1:
print(0)
else:
while y!=-1:
S=S.replace(S[:y],"",1)
S=S.replace("ABC","",1)
y=S.find("ABC")
cnt+=1
print(cnt)
|
[
"call.arguments.add"
] | 614,074
| 614,075
|
u409403493
|
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,080
| 614,081
|
u589432040
|
python
|
p02812
|
# ABC150B - Count ABC
def main():
N = int(input())
S = input().rstrip()
ans = sum(S[i:i + 3] == "ABC" for i in range(N - 3))
print(ans)
if __name__ == "__main__":
main()
|
# ABC150B - Count ABC
def main():
N = int(input())
S = input().rstrip()
ans = sum(S[i:i + 3] == "ABC" for i in range(N - 2))
print(ans)
if __name__ == "__main__":
main()
|
[
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 614,084
| 614,085
|
u077291787
|
python
|
p02812
|
# ABC150B - Count ABC
def main():
N = int(input())
S = input().rstrip()
ans = sum(S[i + 3] == "ABC" for i in range(N - 3))
print(ans)
if __name__ == "__main__":
main()
|
# ABC150B - Count ABC
def main():
N = int(input())
S = input().rstrip()
ans = sum(S[i:i + 3] == "ABC" for i in range(N - 2))
print(ans)
if __name__ == "__main__":
main()
|
[
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 614,086
| 614,085
|
u077291787
|
python
|
p02812
|
inputA= int(input())
inputB =map(str,input())
print(inputB.count('ABC'))
|
inputA= int(input())
inputB =input()
print(inputB.count('ABC'))
|
[
"call.remove",
"call.arguments.change"
] | 614,089
| 614,090
|
u034777138
|
python
|
p02812
|
inputA= int(input())
inputB =map(input())
print(inputB.count('ABC'))
|
inputA= int(input())
inputB =input()
print(inputB.count('ABC'))
|
[
"call.remove",
"call.arguments.change"
] | 614,091
| 614,090
|
u034777138
|
python
|
p02812
|
n=int(input())
a=input()
k=0
for i in range(len(a)-3):
if a[i]=='A':
if a[i+1]=='B':
if a[i+2]=='C':
k+=1
print(k)
|
n=int(input())
a=input()
k=0
for i in range(len(a)-2):
if a[i]=='A':
if a[i+1]=='B':
if a[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,094
| 614,095
|
u606784601
|
python
|
p02812
|
N = int(input())
S = input()
S = list(S)
count = 0
for i in range(N):
if S[i] == "A":
if S[i+1] == "B":
if S[i+2] == "C":
count = count+1
print(count)
|
N = int(input())
S = input()
S = list(S)
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)
|
[
"assignment.value.change",
"expression.operation.binary.remove"
] | 614,109
| 614,108
|
u310035060
|
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,112
| 614,113
|
u905974390
|
python
|
p02812
|
n,s=input().split()
print(s.count('ABC'))
|
n=input()
s=input()
print(s.count('ABC'))
|
[
"call.add",
"call.remove"
] | 614,114
| 614,115
|
u561570330
|
python
|
p02812
|
N = int(input())
S = list(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)
|
N = int(input())
S = list(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)
|
[
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 614,126
| 614,127
|
u020962106
|
python
|
p02812
|
n = input()
s = input()
s.count('ABC')
|
n = input()
s = input()
print(s.count('ABC'))
|
[
"call.add",
"call.arguments.change"
] | 614,130
| 614,131
|
u547748135
|
python
|
p02812
|
_ = input()
S = input()
print(len(S.split("ABC") - 1))
|
_ = input()
S = input()
print(len(S.split("ABC")) - 1)
|
[
"call.arguments.change"
] | 614,136
| 614,137
|
u665224938
|
python
|
p02812
|
N = input()
S = input()
n = str.count('ABC')
print(n)
|
N = input()
S = input()
n = S.count('ABC')
print(n)
|
[
"assignment.value.change",
"identifier.change"
] | 614,141
| 614,142
|
u181195295
|
python
|
p02812
|
n=int(input())
s=list(input())
ans=0
for i in range(n):
if s[i]=="A":
if s[i+1]=="B":
if s[i+2]=="C":
ans+=1
print(ans)
|
n=int(input())
s=list(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)
|
[
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 614,145
| 614,146
|
u672542358
|
python
|
p02812
|
a = int(input())
b = input()
print(a.count('ABC'))
|
a = int(input())
b = input()
print(b.count('ABC'))
|
[
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 614,147
| 614,148
|
u577914737
|
python
|
p02812
|
X=input()
c=list(input())
result=0
i=0
while i<len(c):
if c[i]=='A':
if c[i+1]=='B' and c[i+2]=='C':
result+=1
i+=1
else:
i+=1
else:
i+=1
print(result)
|
X=input()
c=list(input())
result=0
i=0
while i<len(c)-2:
if c[i]=='A':
if c[i+1]=='B' and c[i+2]=='C':
result+=1
i+=3
else:
i+=1
else:
i+=1
print(result)
|
[
"control_flow.loop.condition.change",
"literal.number.integer.change"
] | 614,149
| 614,150
|
u056061577
|
python
|
p02812
|
X=input()
c=list(input())
result=0
i=0
while i<len(c):
if c[i]=='A':
if c[i+1]=='B' and c[i+2]=='C':
result+=1
i+=3
else:
i+=1
else:
i+=1
print(result)
|
X=input()
c=list(input())
result=0
i=0
while i<len(c)-2:
if c[i]=='A':
if c[i+1]=='B' and c[i+2]=='C':
result+=1
i+=3
else:
i+=1
else:
i+=1
print(result)
|
[
"control_flow.loop.condition.change"
] | 614,151
| 614,150
|
u056061577
|
python
|
p02812
|
x = input()
print(x.count("ABC"))
|
x = input()
x = input()
print(x.count("ABC"))
|
[
"assignment.add"
] | 614,154
| 614,155
|
u412760429
|
python
|
p02812
|
N = int(input())
s = input()
print(s.count("abc"))
|
N = int(input())
s = input()
print(s.count("ABC"))
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 614,163
| 614,164
|
u592035627
|
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,174
| 614,176
|
u777283665
|
python
|
p02812
|
n = int(input())
s = str(input())
i = 0
cnt = 0
for i in range(0,n-3):
if s[i] == "A" and s[i+1] == "B" and s[i+2] == "C":
cnt += 1
print(cnt)
|
n = int(input())
s = str(input())
i = 0
cnt = 0
for i in range(0,n-2):
if s[i] == "A" and s[i+1] == "B" and s[i+2] == "C":
cnt += 1
print(cnt)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 614,192
| 614,193
|
u330314953
|
python
|
p02812
|
N= int(input())
M= input()
print(M.find("ABC"))
|
N= int(input())
M= input()
print(M.count("ABC"))
|
[
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 614,197
| 614,198
|
u295294832
|
python
|
p02812
|
n = int(input())
s = str(input())
cnt = 0
for i in range(n-3):
if s[i] == "A":
if s[i+1] == "B":
if s[i+2] == "C":
cnt += 1
print(cnt)
|
n = int(input())
s = str(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)
|
[
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 614,226
| 614,227
|
u715005228
|
python
|
p02812
|
N = int(input())
S = input()
length = len(S)
num = 0
print(length)
for i in range(length-2) :
if S[i:i+3] == "ABC" :
num += 1
print(num)
|
N = int(input())
S = input()
length = len(S)
num = 0
for i in range(length-2) :
if S[i:i+3] == "ABC" :
num += 1
print(num)
|
[
"call.remove"
] | 614,228
| 614,229
|
u932864155
|
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,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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.