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 |
|---|---|---|---|---|---|---|---|
p02772 | N=int(input())
A=list(map(int, input().split()))
denied=0
for a in A:
if a%2==0:
if a%3!=0 and a%5!=0:
print("DENIED")
denied=1
if denied==0:
print('APPROVED') | N=int(input())
A=list(map(int, input().split()))
denied=0
for a in A:
if a%2==0:
if a%3!=0 and a%5!=0:
denied=1
print("DENIED")
break
if denied==0:
print('APPROVED') | [
"assignment.add",
"assignment.remove"
] | 570,072 | 570,073 | u616169109 | python |
p02772 | import sys
n = int(input())
a = list(map(int,input().split()))
flag = 0
for i in range(n):
if(a[i]%2 == 0):
if(a[i]%3 == 0 or a[i]%5 == 0):
print(end="")
else:
print("DENITED")
sys.exit()
print("APPROVED") | import sys
n = int(input())
a = list(map(int,input().split()))
flag = 0
for i in range(n):
if(a[i]%2 == 0):
if(a[i]%3 == 0 or a[i]%5 == 0):
print(end="")
else:
print("DENIED")
sys.exit()
print("APPROVED") | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,085 | 570,086 | u244416763 | python |
p02772 | n=int(input())
a=list(map(int,input().split()))
g=[]
count=0
for i in range(n):
if(a[i]%2==0):
g.append(a[i])
else:
continue
for j in range(len(g)):
if(g[j]%5 == 0 or a[j]%3==0):
count+=1
else:
print("DENIED")
exit()
if(count == len(g)):
print("APPROVED")
else... | n=int(input())
a=list(map(int,input().split()))
g=[]
count=0
for i in range(n):
if(a[i]%2==0):
g.append(a[i])
else:
continue
for j in range(len(g)):
if(g[j]%5 == 0 or g[j]%3==0): count+=1
else:
print("DEN... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 570,089 | 570,090 | u129978636 | python |
p02772 | N = int(input())
A = [int(s) for s in input().rstrip().split(' ')]
k = 1
for i in range(N):
if A[i] % 2 == 0:
if A[i] % 3 != 0 or A[i] % 5 != 0:
k = 0
if k == 1:
print("APPROVED")
elif k == 0:
print("DENIED") | N = int(input())
A = [int(s) for s in input().rstrip().split(' ')]
k = 1
for i in range(N):
if A[i] % 2 == 0:
if A[i] % 3 != 0 and A[i] % 5 != 0:
k = 0
if k == 1:
print("APPROVED")
elif k == 0:
print("DENIED") | [
"control_flow.branch.if.condition.change"
] | 570,093 | 570,094 | u267035391 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
test = True
for i in a:
if i % 2 == 0:
if i % 3 == 0 or i % 5 == 0:
continue
else:
test = False
break
if test:
print('APPROVAL')
else:
print('DENIED')
| n = int(input())
a = list(map(int, input().split()))
test = True
for i in a:
if i % 2 == 0:
if i % 3 == 0 or i % 5 == 0:
continue
else:
test = False
break
if test:
print('APPROVED')
else:
print('DENIED')
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,101 | 570,102 | u572373398 | python |
p02772 | n = int(input())
A = list(map(int, input().split()))
ans = 'APPROVED'
for a in A:
if a%1 == 0:
continue
else:
if a%3 == 0:
continue
elif a%5 == 0:
continue
else:
ans = 'DENIED'
print(ans) | n = int(input())
A = list(map(int, input().split()))
ans = 'APPROVED'
for a in A:
if a%2 == 1:
continue
else:
if a%3 == 0:
continue
elif a%5 == 0:
continue
else:
ans = 'DENIED'
break
print(ans) | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change",
"control_flow.break.add"
] | 570,105 | 570,106 | u470560351 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
for i in range(n):
if a[i]%2 == 0:
if a[i]%5 != 0 or a[i]%3 != 0:
print("DENIED")
exit()
print("APPROVED") | n = int(input())
a = list(map(int, input().split()))
for i in range(n):
if a[i]%2 == 0:
if a[i]%5 == 0 or a[i]%3 == 0:
pass
else:
print("DENIED")
exit()
print("APPROVED") | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.pass.add"
] | 570,115 | 570,116 | u597455618 | python |
p02772 | N = int(input())
A = list(map(int, input().split()))
flag = 1
for i in range(N):
if(A[i] % 2 == 0):
print(flag)
if(A[i] % 3 != 0 and A[i] % 5 != 0):
flag = 0
if(flag == 0):
print("DENIED")
else:
print("APPROVED") | N = int(input())
A = list(map(int, input().split()))
flag = 1
for i in range(N):
if(A[i] % 2 == 0):
if(A[i] % 3 != 0 and A[i] % 5 != 0):
flag = 0
if(flag == 0):
print("DENIED")
else:
print("APPROVED") | [
"call.remove"
] | 570,125 | 570,126 | u697559326 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
for i in a:
if i % 2 == 0 and i % 3 != 0 and i % 5 != 0:
print('DENIED')
else: print('APPROVED') | n = int(input())
a = list(map(int, input().split()))
for i in a:
if i % 2 == 0 and i % 3 != 0 and i % 5 != 0:
print('DENIED')
break
else: print('APPROVED')
| [
"control_flow.break.add"
] | 570,131 | 570,132 | u660245210 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
ans = 'APPROVED'
aa = filter(lambda num: True if num % 2 == 0 else False, a)
for num in aa:
if (num // 3 != 0) and (num // 5 != 0):
ans = 'DENIED'
print(ans)
| n = int(input())
a = list(map(int, input().split()))
ans = 'APPROVED'
aa = filter(lambda num: True if num % 2 == 0 else False, a)
for num in aa:
if (num % 3 != 0) and (num % 5 != 0):
ans = 'DENIED'
print(ans)
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 570,137 | 570,138 | u701199820 | python |
p02772 | N = int(input())
A = list(map(int, input().split()))
s = "APPRPVED"
for i in A:
if i % 2 == 0:
if i % 3 != 0 and i % 5 != 0:
s = "DENIED"
print(s)
| N = int(input())
A = list(map(int, input().split()))
s = "APPROVED"
for i in A:
if i % 2 == 0:
if i % 3 != 0 and i % 5 != 0:
s = "DENIED"
print(s)
| [
"literal.string.change",
"assignment.value.change"
] | 570,145 | 570,146 | u278057806 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
for i in a:
if i%2 == 0:
if i%3 and i%5:
print("DENID")
exit()
print("APPRIVED") | n = int(input())
a = list(map(int, input().split()))
for i in a:
if i%2 == 0:
if i%3 and i%5:
print("DENIED")
exit()
print("APPROVED") | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,147 | 570,148 | u925712873 | python |
p02772 | N=int(input())
A=list(map(int,input().split()))
flag=0
for i in range(N):
if A[i]%2 ==0:
if A[i]%3==0 or A[i]%5==0:
flag=0
else:
flag=1
print(['APPROVED','DENIED'][flag])
| N=int(input())
A=list(map(int,input().split()))
flag=0
for i in range(N):
if A[i]%2 ==0:
if A[i]%3==0 or A[i]%5==0:
pass
else:
flag=1
print(['APPROVED','DENIED'][flag])
| [
"assignment.remove"
] | 570,159 | 570,160 | u086503932 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
for i in a:
if i % 2 == 0:
if i % 3 == 0 or i % 5 == 0:
ans = "APPROVED"
else:
ans = "DENIED"
break
print(ans) | n = int(input())
a = list(map(int, input().split()))
ans = "APPROVED"
for i in a:
if i % 2 == 0:
if i % 3 == 0 or i % 5 == 0:
ans = "APPROVED"
else:
ans = "DENIED"
break
print(ans) | [
"assignment.add"
] | 570,188 | 570,189 | u489959379 | python |
p02772 | n, *a = map(int, open(0).read().split())
flag = False
for i in range(n):
if a[i]%2==0:
if i%3 and i%5: flag = True
if flag==False: print("APPROVED")
else: print("DENIED") | n, *a = map(int, open(0).read().split())
flag = False
for i in range(n):
if a[i]%2==0:
if a[i]%3 and a[i]%5: flag = True
if flag==False: print("APPROVED")
else: print("DENIED") | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 570,200 | 570,201 | u242031676 | python |
p02772 | def main():
N = int(input())
A = list(map(int,input().split()))
ans = "APPROVED"
for i in range(N):
if A[i]%2 == 0:
if i%3 != 0 and i%5 != 0:
ans ="DENIED"
print(ans)
if __name__ == '__main__':
main() | def main():
N = int(input())
A = list(map(int,input().split()))
ans = "APPROVED"
for i in range(N):
if A[i]%2 == 0:
if A[i]%3 != 0 and A[i]%5 != 0:
ans ="DENIED"
print(ans)
if __name__ == '__main__':
main() | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 570,236 | 570,237 | u348868667 | python |
p02773 | n = int(input())
s = list(input() for _ in range(n))
d = {}
for i in range(n):
if s[i] in d:
d[s[i]] += 1
else:
d[s[i]] = 1
m = d[max(d)]
l=[]
for i in d:
if d[i] == m:
l.append(i)
for i in sorted(l):
print(i) | n = int(input())
s = list(input() for _ in range(n))
d = {}
for i in range(n):
if s[i] in d:
d[s[i]] += 1
else:
d[s[i]] = 1
m = max(d.values())
l=[]
for i in d:
if d[i] == m:
l.append(i)
for i in sorted(l):
print(i) | [
"call.add"
] | 570,246 | 570,247 | u107915058 | python |
p02773 | n = int(input())
s = list(input() for _ in range(n))
d = {}
for i in range(n):
if s[i] in d:
d[s[i]] += 1
else:
d[s[i]] = 1
m = d[max(d)]
for s in sorted(k for k in d if d[k] == m):
print(s) | n = int(input())
s = list(input() for _ in range(n))
d = {}
for i in range(n):
if s[i] in d:
d[s[i]] += 1
else:
d[s[i]] = 1
m = max(d.values())
for s in sorted(k for k in d if d[k] == m):
print(s) | [
"call.add"
] | 570,248 | 570,249 | u107915058 | python |
p02773 | from collections import Counter
n=int(input())
s=Counter([input()for _ in[0]*n])
m=s.most_common(1)[0][1]
r=(k for k,v in s.items() if v==m)
for a in r:print(a) | from collections import Counter
n=int(input())
s=Counter([input()for _ in[0]*n])
m=s.most_common(1)[0][1]
r=sorted((k for k,v in s.items() if v==m))
for a in r:print(a) | [
"call.add",
"call.arguments.change"
] | 570,252 | 570,253 | u695644361 | python |
p02773 | import collections
N=int(input())
s=[str(input()) for i in range(N)]
c=collections.Counter(s)
maximum =max(c.values())
max_c_list = soreted(key for key,value in c.items() if value == maximum)
for s in max_c_list:
print(s) | import collections
N=int(input())
s=[str(input()) for i in range(N)]
c=collections.Counter(s)
maximum =max(c.values())
max_c_list = sorted(key for key,value in c.items() if value == maximum)
for s in max_c_list:
print(s) | [
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 570,256 | 570,257 | u620846115 | python |
p02773 | n=int(input())
s=[]
for i in range(n):
s.append(input())
s.sort()
t=1
m=0
a=s[0]
for i in range(n-1):
if s[i+1]==a:
t+=1
else:
a=s[i+1]
m=max(t,m)
t=1
m=max(t,m)
t=1
x=[]
for i in range(n-1):
if s[i+1]==a:
t+=1
else:
a=s[i+1]
if t==m:
... | n=int(input())
s=[]
for i in range(n):
s.append(input())
s.sort()
t=1
m=0
a=s[0]
for i in range(n-1):
if s[i+1]==a:
t+=1
else:
a=s[i+1]
m=max(t,m)
t=1
m=max(t,m)
t=1
x=[]
a=s[0]
for i in range(n-1):
if s[i+1]==a:
t+=1
else:
a=s[i+1]
if t==m:
... | [
"assignment.add"
] | 570,260 | 570,261 | u271210469 | python |
p02773 | N = int(input())
S = [input() for _ in range(N)]
dic = {}
for i in range(N):
if S[i] not in dic.keys():
dic[S[i]] = 1
else:
dic[S[i]] += 1
maxim = max(dic.values())
ans = []
for keys in dic.keys():
if dic[keys] == maxim:
ans.append(keys)
ans.sort()
for i in len(ans):
print(ans[i])... | N = int(input())
S = [input() for _ in range(N)]
dic = {}
for i in range(N):
if S[i] not in dic.keys():
dic[S[i]] = 1
else:
dic[S[i]] += 1
maxim = max(dic.values())
ans = []
for keys in dic.keys():
if dic[keys] == maxim:
ans.append(keys)
ans.sort()
for i in range(len(ans)):
print(... | [
"call.add",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 570,264 | 570,265 | u244466744 | python |
p02773 | N = int(input())
S = [input() for _ in range(N)]
dic = {}
for i in range(N):
if S[i] not in dic.keys():
dic[S[i]] = 1
else:
dic[S[i]] += 1
maxim = max(dic.values())
ans = []
for keys in dic.keys():
if dic[keys] == maxim:
ans.append(keys)
ans.sort()
for i in ans:
print(ans[i])
| N = int(input())
S = [input() for _ in range(N)]
dic = {}
for i in range(N):
if S[i] not in dic.keys():
dic[S[i]] = 1
else:
dic[S[i]] += 1
maxim = max(dic.values())
ans = []
for keys in dic.keys():
if dic[keys] == maxim:
ans.append(keys)
ans.sort()
for i in range(len(ans)):
print(... | [
"call.add",
"call.arguments.add"
] | 570,266 | 570,265 | u244466744 | python |
p02773 | import math
import statistics
import collections
a=int(input())
#b,c=int(input()),int(input())
# c=[]
# for i in b:
# c.append(i)
#e1,e2 = map(int,input().split())
# f = list(map(int,input().split()))
g = [input() for _ in range(a)]
# h = []
# for i in range(e1):
# h.append(list(map(int,input().split())))
g.s... | import math
import statistics
import collections
a=int(input())
#b,c=int(input()),int(input())
# c=[]
# for i in b:
# c.append(i)
#e1,e2 = map(int,input().split())
# f = list(map(int,input().split()))
g = [input() for _ in range(a)]
# h = []
# for i in range(e1):
# h.append(list(map(int,input().split())))
g.s... | [
"call.remove"
] | 570,267 | 570,268 | u135265051 | python |
p02773 | import collections
n = int(input())
s = list(input() for i in range(n))
s = sorted(s)
c = collections.Counter(s)
p = max(c.values())
s = list(set(s))
for i in range(len(s)):
if c[s[i]] == p:
print(s[i]) | import collections
n = int(input())
s = list(input() for i in range(n))
s = sorted(s)
c = collections.Counter(s)
p = max(c.values())
s = sorted(list(set(s)))
for i in range(len(s)):
if c[s[i]] == p:
print(s[i]) | [
"call.add",
"call.arguments.change"
] | 570,269 | 570,270 | u357751375 | python |
p02773 | import collections
n = int(input())
s = list(input() for i in range(n))
sorted(s)
c = collections.Counter(s)
p = max(c.values())
s = list(set(s))
for i in range(len(s)):
if c[s[i]] == p:
print(s[i]) | import collections
n = int(input())
s = list(input() for i in range(n))
s = sorted(s)
c = collections.Counter(s)
p = max(c.values())
s = sorted(list(set(s)))
for i in range(len(s)):
if c[s[i]] == p:
print(s[i]) | [
"call.add",
"call.arguments.change"
] | 570,271 | 570,270 | u357751375 | python |
p02773 | n = int(input())
arr = {input() for _ in range(n)}
dic={}
#各単語の出現回数を数える
for i in range(n):
if arr[i] not in dic:
dic[arr[i]] = 1
else:
dic[arr[i]] += 1
#最大の出現回数を求める
largest = max(dic.values())
ans = []
for keys in dic.keys():
if dic[keys] == largest:
ans.append(keys)
#単語を辞書順に並べ替えて出... | n=int(input())
arr=[input() for _ in range(n)]
dic={}
for i in range(n): #各単語の出現回数を数える
if arr[i] not in dic:
dic[arr[i]]=1
else:
dic[arr[i]]+=1
largest=max(dic.values()) #最大の出現回数を求める
ans=[]
for keys in dic.keys():
if dic[keys]==largest: #出現回数が最も多い単語を集計する
ans.append(keys)
ans=sorted(ans) #単語を辞書順に並べ替えて出力する
fo... | [
"assignment.value.change"
] | 570,279 | 570,280 | u861886710 | python |
p02773 | n = int(input())
d = {}
for _ in range(n) :
s = input()
if s in d :
d[s] += 1
else :
d[s] = 1
mx = max(d.values())
for s in sorted(k for k in d if d[k] == m) :
print(s)
| n = int(input())
d = {}
for _ in range(n) :
s = input()
if s in d :
d[s] += 1
else :
d[s] = 1
mx = max(d.values())
for s in sorted(k for k in d if d[k] == mx) :
print(s)
| [
"identifier.change"
] | 570,288 | 570,289 | u430928274 | python |
p02773 | box={}
n=int(input())
for i in range(n):
v=input()
if v in box:
box[v]+=1
else:
box[v]=1
m=max(box.values())
f=[k for k,v in box.items() if v==m]
print('\n'.join(f)) | box={}
n=int(input())
for i in range(n):
v=input()
if v in box:
box[v]+=1
else:
box[v]=1
m=max(box.values())
f=[k for k,v in box.items() if v==m]
f.sort()
print('\n'.join(f)) | [
"call.add"
] | 570,290 | 570,291 | u694665829 | python |
p02773 | n=int(input())
dict={}
cnt=0
for i in range(n):
s=input()
if s in dict:
dict[s]+=1
cnt=max(cnt,dict[s])
else:
dict[s]=1
dict_sorted=sorted(dict.items())
for j in range(len(dict_sorted)):
if dict_sorted[j][1]==cnt:
print(dict_sorted[j][0]) | n=int(input())
dict={}
cnt=1
for i in range(n):
s=input()
if s in dict:
dict[s]+=1
cnt=max(cnt,dict[s])
else:
dict[s]=1
dict_sorted=sorted(dict.items())
for j in range(len(dict_sorted)):
if dict_sorted[j][1]==cnt:
print(dict_sorted[j][0]) | [
"literal.number.integer.change",
"assignment.value.change"
] | 570,300 | 570,301 | u492910842 | python |
p02773 | from sys import stdin
def read():
return stdin.readline().strip()
dict={}
output=[]
iteration=int(read())
max_val=-1
for _ in range(iteration):
item=read()
if dict.get(item) is None:
dict[item]=0
dict[item]+=1
max_val = max(dict[item],max_val)
#max_val=max(dict.values())
for k,v i... |
from sys import stdin
def read():
return stdin.readline().strip()
dict={}
output=[]
iteration=int(read())
max_val=-1
for _ in range(iteration):
item=read()
if dict.get(item) is None:
dict[item]=0
dict[item]+=1
max_val = max(dict[item],max_val)
#max_val=max(dict.values())
for k,v ... | [
"identifier.change",
"call.arguments.change"
] | 570,314 | 570,315 | u384198197 | python |
p02773 | from sys import stdin
def read():
return stdin.readline().strip()
dict={}
output=[]
iteration=int(read())
max_val=-1
for _ in range(iteration):
item=read()
if dict.get(item) is None:
dict[item]=0
dict[item]+=1
max_val = max(dict[item],max_val)
#max_val=max(dict.values())
for k,v i... |
from sys import stdin
def read():
return stdin.readline().strip()
dict={}
output=[]
iteration=int(read())
max_val=-1
for _ in range(iteration):
item=read()
if dict.get(item) is None:
dict[item]=0
dict[item]+=1
max_val = max(dict[item],max_val)
#max_val=max(dict.values())
for k,v ... | [
"call.add"
] | 570,316 | 570,315 | u384198197 | python |
p02773 | # https://atcoder.jp/contests/abc155/tasks/abc155_c
def main():
N = int(input())
S_list = []
for _ in range(N):
S_list.append(input())
S_dict = {}
for s in S_list:
S_dict[s]=0
for s in S_list:
S_dict[s]+=1
max_kv = max(S_dict.values())
max_k_list = [kv[0] for ... | def main():
N = int(input())
S_list = []
for _ in range(N):
S_list.append(input())
S_dict = {}
for s in S_list:
S_dict[s]=0
for s in S_list:
S_dict[s]+=1
max_v = max(S_dict.values())
max_k_list = [kv[0] for kv in S_dict.items() if kv[1] == max_v]
max_k_list... | [
"assignment.variable.change",
"identifier.change",
"assignment.value.change",
"control_flow.branch.if.condition.change"
] | 570,319 | 570,318 | u635621124 | python |
p02773 | import math
import collections
def main():
N = int(input())
S = list()
S = [input() for _ in range(N)]
s = collections.counter(S)
MaxCount = max(s.values())
ans = []
for key, value in s.items():
if value == MaxCount:
ans.append(key)
ans.sort()
for i in ans:
... |
import math
import collections
def main():
N = int(input())
S = list()
S = [input() for _ in range(N)]
s = collections.Counter(S)
MaxCount = max(s.values())
ans = []
for key, value in s.items():
if value == MaxCount:
ans.append(key)
ans.sort()
for i in ans:... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 570,320 | 570,321 | u690833702 | python |
p02773 | n = int(input())
s = [input() for i in range(n)]
s.sort()
count = 1
ma = 0
for i in range(1,n):
if s[i] == s[i-1]:
count+=1
else:
ma = max(ma,count)
count=1
ma = max(ma,count)
count=1
ans = []
for i in range(1,n):
if s[i] == s[i-1]:
count+=1
else:
if count == ma:
... | n = int(input())
s = [input() for i in range(n)]
s.sort()
count = 1
ma = 0
for i in range(1,n):
if s[i] == s[i-1]:
count+=1
else:
ma = max(ma,count)
count=1
ma = max(ma,count)
count=1
ans = []
for i in range(1,n):
if s[i] == s[i-1]:
count+=1
else:
if count == ma:
... | [
"call.arguments.change"
] | 570,322 | 570,323 | u953110527 | python |
p02773 | n=int(input())
l=[]
import collections
for _ in range(n):
l.append(str(input()))
c = collections.Counter(l)
m=max(c.items())[1]
for i in sorted(c):
if c[i]==m:
print(i) | n=int(input())
l=[]
import collections
for _ in range(n):
l.append(str(input()))
c = collections.Counter(l)
m=max(c.values())
x=[]
for i in sorted(c):
if c[i]==m:
print(i) | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 570,326 | 570,327 | u105290050 | python |
p02773 | N = int(input())
A = {}
MAX = 0
for i in range(N):
s = input()
A[s] = A.get(s,0) + 1
MAX = max(MAX, A[s])
B = sorted(A.items())
print(B)
for k, v in B:
if v == MAX:
print(k) | N = int(input())
A = {}
MAX = 0
for i in range(N):
s = input()
A[s] = A.get(s,0) + 1
MAX = max(MAX, A[s])
B = sorted(A.items())
for k, v in B:
if v == MAX:
print(k) | [
"call.remove"
] | 570,328 | 570,329 | u967822229 | python |
p02773 | from collections import Counter
n = int(input())
s = [input() for _ in range(n)]
d = Counter(s)
a = 0
for v in d.values():
if v>a:
a = v
for k in d.keys():
if d[k]==a:
print(k) | from collections import Counter
n = int(input())
s = [input() for _ in range(n)]
s.sort()
d = Counter(s)
a = 0
for v in d.values():
if v>a:
a = v
for k in d.keys():
if d[k]==a:
print(k) | [
"call.add"
] | 570,330 | 570,331 | u531599639 | python |
p02773 | n = int(input())
l = [input() for _ in range(n)]
d = {}
for w in l:
d[w] = d.get(w,0)+1
m = max(d.values())
lt = sorted(d.items(),key=lambda k:-k[1])
ans = sorted([k for k,v in lt if v==m])
print(ans,sep='\n') | n = int(input())
l = [input() for _ in range(n)]
d = {}
for w in l:
d[w] = d.get(w,0)+1
m = max(d.values())
lt = sorted(d.items(),key=lambda k:-k[1])
ans = sorted([k for k,v in lt if v==m])
print(*ans,sep='\n') | [
"call.arguments.change"
] | 570,341 | 570,342 | u133936772 | python |
p02773 | #!/usr/bin/env python
# coding: utf-8
# In[12]:
import collections
# In[13]:
N = int(input())
S = []
for _ in range(N):
S.append(input())
# In[14]:
mylist = collections.Counter(S).most_common()
cnt_tmp = mylist[0][1]
for word, cnt in mylist:
if cnt != cnt_tmp:
break
print(word)
cnt_tm... | #!/usr/bin/env python
# coding: utf-8
# In[12]:
import collections
# In[22]:
N = int(input())
S = []
for _ in range(N):
S.append(input())
# In[26]:
mylist = collections.Counter(sorted(S)).most_common()
cnt_tmp = mylist[0][1]
for word, cnt in mylist:
if cnt != cnt_tmp:
break
print(word)
... | [
"call.add",
"call.arguments.change"
] | 570,343 | 570,344 | u085717502 | python |
p02773 | n=int(input())
s=dict()
for i in range(n):
si=input()
if si in s:
s[si]+=1
else:
s[si]=0
l=max(s.values())
ans=[]
for i in s:
if s[i]==l:
ans.append(i)
ans.sort()
print(ans) | n=int(input())
s=dict()
for i in range(n):
si=input()
if si in s:
s[si]+=1
else:
s[si]=0
l=max(s.values())
ans=[]
for i in s:
if s[i]==l:
ans.append(i)
ans.sort()
for i in ans:
print(i) | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 570,345 | 570,346 | u919235786 | python |
p02773 | n=int(input())
S=[]
for i in range(n):
S.append(input())
from collections import defaultdict
d = defaultdict(lambda:0)
for k in S:
d[str(k)]+=1
dmax=max(d.value())
ansn=dmax
ans=[]
for i in set(S):
if d[i]==ansn:
ans.append(i)
ans=sorted(ans)
for i in range(len(ans)):
print(ans[i])
| n=int(input())
S=[]
for i in range(n):
S.append(input())
from collections import defaultdict
d = defaultdict(lambda:0)
for k in S:
d[str(k)]+=1
ansn=max(d.values())
ans=[]
for i in set(S):
if d[i]==ansn:
ans.append(i)
ans=sorted(ans)
for i in range(len(ans)):
print(ans[i])
| [
"assignment.variable.change",
"identifier.change",
"assignment.value.change",
"call.arguments.change"
] | 570,352 | 570,353 | u260216890 | python |
p02772 | j = int(input())
i = list(map(int, input().split()))
l=0
for k in range(j):
if i[k]%2==0:
if i[k]%3!=0 and i[k]%5!=0:
print('DENIED')
l=1
if l == 0:
print('APPROVED') | j = int(input())
i = list(map(int, input().split()))
l=0
for k in range(j):
if i[k]%2==0:
if i[k]%3!=0 and i[k]%5!=0:
print('DENIED')
l=1
break
if l == 0:
print('APPROVED') | [
"control_flow.break.add"
] | 570,364 | 570,365 | u386944085 | python |
p02772 | import numpy as np
import sys
n = int(input())
aList = input().split(" ")
aList = np.array(aList, dtype=np.int)
aList = aList[aList % 2 == 0]
a = list(aList[aList % 5 == 0])
b = list(aList[aList % 3 == 0])
aList = list(aList)
if len(aList) == len(set(a + b)):
print("APPROVED")
else:
print("DENIED") | import numpy as np
import sys
n = int(input())
aList = input().split(" ")
aList = np.array(aList, dtype=np.int)
aList = aList[aList % 2 == 0]
a = list(aList[aList % 5 == 0])
b = list(aList[aList % 3 == 0])
aList = set(list(aList))
if len(aList) == len(set(a + b)):
print("APPROVED")
else:
print("DENIED") | [
"call.add",
"call.arguments.change"
] | 570,369 | 570,370 | u817411959 | python |
p02772 | import sys
n = int(input())
li = list(map(int, input().split()))
for i in range(n):
a = li[i]
if a%2 ==0:
if (a % 3 == 0 or a % 5 == 0)==False:
print("DENIED")
sys.exit()
print("PASS")
| import sys
n = int(input())
li = list(map(int, input().split()))
for i in range(n):
a = li[i]
if a%2 ==0:
if (a % 3 == 0 or a % 5 == 0)==False:
print("DENIED")
sys.exit()
print("APPROVED")
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,371 | 570,372 | u902080722 | python |
p02772 | number = int(input())
list_number = input().split()
ok = 0
for i in list_number:
if int(i) % 2 == 0:
if int(i) % 3 == 0 or int(i) % 5 == 0:
pass
else:
ok = 1
print("DENIED")
if ok == 0:
print("APPROVED") | number = int(input())
list_number = input().split()
ok = 0
for i in list_number:
if int(i) % 2 == 0:
if int(i) % 3 == 0 or int(i) % 5 == 0:
pass
else:
ok = 1
print("DENIED")
break
if ok == 0:
print("APPROVED")
| [
"control_flow.break.add"
] | 570,385 | 570,386 | u631525844 | python |
p02772 | N = int(input())
A = [int(x) for x in input().split()]
x=0
for i in A:
print(i)
if i%2==0:
if not i%3==0 and not i%5==0:
print("DENIED")
x=1
break
else:
continue
else:
continue
break
if x ==0:
print("APPROVED") | N = int(input())
A = [int(x) for x in input().split()]
x=0
for i in A:
if i%2==0:
if not i%3==0 and not i%5==0:
print("DENIED")
x=1
break
else:
continue
else:
continue
break
if x ==0:
print("APPROVED") | [
"call.remove"
] | 570,387 | 570,388 | u241544828 | python |
p02772 | N = int(input())
A = [int(x) for x in input().split()]
x=0
for i in A:
if i%2==0:
if not i%3==0 and not i%5==0:
print("DENIED")
x=1
break
else:
continue
break
if x ==0:
print("APPROVED") | N = int(input())
A = [int(x) for x in input().split()]
x=0
for i in A:
if i%2==0:
if not i%3==0 and not i%5==0:
print("DENIED")
x=1
break
else:
continue
else:
continue
break
if x ==0:
print("APPROVED") | [
"control_flow.continue.add"
] | 570,389 | 570,388 | u241544828 | python |
p02772 | N = int(input())
A = [int(x) for x in input().split()]
x=0
for i in A:
if i%2==0:
if not i%3==0 or i%5==0:
print("DENIED")
x=1
break
else:
continue
break
if x ==0:
print("APPROVED") | N = int(input())
A = [int(x) for x in input().split()]
x=0
for i in A:
if i%2==0:
if not i%3==0 and not i%5==0:
print("DENIED")
x=1
break
else:
continue
else:
continue
break
if x ==0:
print("APPROVED") | [
"control_flow.branch.if.condition.change",
"control_flow.continue.add"
] | 570,390 | 570,388 | u241544828 | python |
p02772 | length = int(input())
li = list(map(int,input().split()))
judge = True
for i in range(length):
a = li[i]
if a % 2 == 0:
if a % 3 != 0 or a % 5 != 0:
judge = False
break;
if judge:
print("APPROVED")
else:
print("DENIED") | length = int(input())
li = list(map(int,input().split()))
judge = True
for i in range(length):
a = li[i]
if a % 2 == 0:
if not (a % 3 == 0 or a % 5 == 0):
judge = False
break;
if judge:
print("APPROVED")
else:
print("DENIED") | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 570,391 | 570,392 | u325183470 | python |
p02772 | length = int(input())
li = list(map(int,input().split()))
judge = True
for i in range(length):
a = li[i]
if a % 2 == 0:
if not a % 3 == 0 or a % 5 == 0:
judge = False
break;
if judge:
print("APPROVED")
else:
print("DENIED") | length = int(input())
li = list(map(int,input().split()))
judge = True
for i in range(length):
a = li[i]
if a % 2 == 0:
if not (a % 3 == 0 or a % 5 == 0):
judge = False
break;
if judge:
print("APPROVED")
else:
print("DENIED") | [
"control_flow.branch.if.condition.change"
] | 570,393 | 570,392 | u325183470 | python |
p02772 | N = int(input())
people = [int(i) for i in input().split()]
is_True = True
for p in people:
if p % 2 == 0:
if p % 3 != 0 or p % 5 != 0:
is_True = False
break
if is_True:
print("APPROVED")
else:
print("DENIED")
| N = int(input())
people = [int(i) for i in input().split()]
is_True = True
for p in people:
if p % 2 == 0:
if p % 3 != 0 and p % 5 != 0:
is_True = False
break
if is_True:
print("APPROVED")
else:
print("DENIED") | [
"control_flow.branch.if.condition.change"
] | 570,394 | 570,395 | u162893962 | python |
p02772 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
N=int(input())
i = list(map(int, input().split()))
c=0
for k in range(0,N):
if i[k]%2==0:
if (i[k]%3!=0) or (i[k]%5!=0):
c=c+1
if c==0:
print('APPROVED')
else:
print('DENIED') | #!/usr/bin/env python
# -*- coding: utf-8 -*-
N=int(input())
i = list(map(int, input().split()))
c=0
for k in range(0,N):
if i[k]%2==0:
if (i[k]%3!=0) and (i[k]%5!=0):
c=c+1
if c==0:
print('APPROVED')
else:
print('DENIED') | [
"control_flow.branch.if.condition.change"
] | 570,396 | 570,397 | u235274878 | python |
p02772 | n=int(input())
a=list(map(int,input().split()))
ans="DENIED"
for i in a:
if i%2==0:
if i%3==0 or i%5==0:
ans="APPROVED"
else:
ans="DENIED"
break
else:
continue
print(ans) | n=int(input())
a=list(map(int,input().split()))
ans="APPROVED"
for i in a:
if i%2==0:
if i%3==0 or i%5==0:
ans="APPROVED"
else:
ans="DENIED"
break
else:
continue
print(ans)
| [
"literal.string.change",
"assignment.value.change"
] | 570,398 | 570,399 | u768559443 | python |
p02772 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 入力
n = int(input())
An_list = list(map(int, input().split()))
# 拒否フラグ
deny_flag = False
# 入国条件処理
for Ai in An_list:
if Ai % 2 == 0:
if (Ai%3 == 0) or (Ai%5 == 0):
# 入国条件に合うので継続
pass
else:
# 入国条件に合わないので拒否して終了
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 入力
n = int(input())
An_list = list(map(int, input().split()))
# 拒否フラグ
deny_flag = False
# 入国条件処理
for Ai in An_list:
if Ai % 2 == 0:
if (Ai % 3 == 0) or (Ai % 5 == 0):
# 入国条件に合うので継続
pass
else:
# 入国条件に合わないので拒否して終了
... | [
"control_flow.break.add"
] | 570,400 | 570,401 | u458388104 | python |
p02772 | n=int(input())
a=[int(s) for s in input().split()]
b=0
for i in range(n):
if a[i]%2==0:
if a[i]%3!=0 or a[i]%5!=0:
b+=1
if b==0:
print("APPROVED")
else:
print("DENIED") | n=int(input())
a=[int(s) for s in input().split()]
b=0
for i in range(n):
if a[i]%2==0:
if a[i]%3!=0 and a[i]%5!=0:
b+=1
if b==0:
print("APPROVED")
else:
print("DENIED")
| [
"control_flow.branch.if.condition.change"
] | 570,404 | 570,405 | u595542086 | python |
p02772 | a = int(input())
b = input().split()
b = list(map(int, b))
c = 0
for i in b:
if i%2 == 0:
if i%3 != 0:
if i%5 != 0:
print("DENIED")
break
c +=1
if c == a:
print("APPROVE") | a = int(input())
b = input().split()
b = list(map(int, b))
c = 0
for i in b:
if i%2 == 0:
if i%3 != 0:
if i%5 != 0:
print("DENIED")
break
c +=1
if c == a:
print("APPROVED") | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,422 | 570,423 | u156778434 | python |
p02772 | n = int(input())
ais = list(map(int, input().split()))
evens = []
for a in ais:
if a % 2 == 0:
evens.append(a)
if len(evens) == 0:
print("DENIED")
quit()
m = 0
for e in evens:
if e % 3 == 0 or e % 5 == 0:
pass
else:
m += 1
if m == 0:
print("APPROVED")
else:
print("DENIED")
| n = int(input())
ais = list(map(int, input().split()))
evens = []
for a in ais:
if a % 2 == 0:
evens.append(a)
if len(evens) == 0:
print("APPROVED")
quit()
m = 0
for e in evens:
if e % 3 == 0 or e % 5 == 0:
pass
else:
m += 1
if m == 0:
print("APPROVED")
else:
print("DENIED")
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,424 | 570,425 | u409757418 | python |
p02772 | n = int(input())
ais = list(map(int, input().split()))
evens = []
for a in ais:
if a % 2 == 0:
evens.append(a)
if len(evens) == 0:
print("DENIED")
puit()
m = 0
for e in evens:
if e % 3 == 0 or e % 5 == 0:
pass
else:
m += 1
if m == 0:
print("APPROVED")
else:
print("DENIED")
| n = int(input())
ais = list(map(int, input().split()))
evens = []
for a in ais:
if a % 2 == 0:
evens.append(a)
if len(evens) == 0:
print("APPROVED")
quit()
m = 0
for e in evens:
if e % 3 == 0 or e % 5 == 0:
pass
else:
m += 1
if m == 0:
print("APPROVED")
else:
print("DENIED")
| [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"identifier.change",
"call.function.change"
] | 570,426 | 570,425 | u409757418 | python |
p02772 | N=int(input())
A=list(map(int,input().split()))
B=[]
for i in range (N):
if A[i]%2==0:
B.append(A[i])
x=len(B)
hantei=0
for i in range(x):
if B[i]%3==0:
hantei=hantei+1
elif B[i]%5==0:
hantei=hantei+1
else:
pass
if hantei>=2:
print('APPROVED')
else:
print('DENIE... | N=int(input())
A=list(map(int,input().split()))
B=[]
for i in range (N):
if A[i]%2==0:
B.append(A[i])
x=len(B)
hantei=0
for i in range(x):
if B[i]%3==0:
hantei=hantei+1
elif B[i]%5==0:
hantei=hantei+1
else:
pass
if hantei>=x:
print('APPROVED')
else:
print('DENIE... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 570,429 | 570,430 | u302084097 | python |
p02772 | N=int(input())
A=list(map(int,input().split()))
B=[]
for i in range (N):
if A[i]%2==0:
B.append(A[i])
x=len(B)
hantei=0
for i in range(x):
if B[i]%3==0:
hantei=hantei+1
elif B[i]%5==0:
hantei=hantei+1
else:
pass
if hantei>=2:
print('APPROVED')
else:
print('DENIE... | N=int(input())
A=list(map(int,input().split()))
B=[]
for i in range (N):
if A[i]%2==0:
B.append(A[i])
x=len(B)
hantei=0
for i in range(x):
if B[i]%3==0:
hantei=hantei+1
elif B[i]%5==0:
hantei=hantei+1
else:
pass
if hantei>=x:
print('APPROVED')
else:
print('DENIE... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"call.remove"
] | 570,431 | 570,430 | u302084097 | python |
p02772 | import sys
n = int(input())
a = list(map(int, input().split()))
for i in range(n):
if a[i] % 2 == 0:
if a[i] % 3 or a[i] % 5 != 0:
print("DENIED")
sys.exit()
print("APPROVED")
| import sys
n = int(input())
a = list(map(int, input().split()))
for i in range(n):
if a[i] % 2 == 0:
if a[i] % 3 and a[i] % 5 != 0:
print("DENIED")
sys.exit()
print("APPROVED")
| [
"control_flow.branch.if.condition.change"
] | 570,441 | 570,442 | u928480992 | python |
p02772 | N = int(input())
A_N = list(map(int, input().split()))
A_N_even = []
for i in A_N:
if i % 2 == 0:
A_N_even.append(i)
ans = "DENIED"
for i in A_N_even:
if i % 3 == 0 or i % 5 == 0:
ans = "APPROVED"
else:
ans = "DENIED"
break
print(ans)
| N = int(input())
A_N = list(map(int, input().split()))
A_N_even = []
for i in A_N:
if i % 2 == 0:
A_N_even.append(i)
ans = "APPROVED"
for i in A_N_even:
if i % 3 == 0 or i % 5 == 0:
ans = "APPROVED"
else:
ans = "DENIED"
break
print(ans)
| [
"literal.string.change",
"assignment.value.change"
] | 570,443 | 570,444 | u866187137 | python |
p02772 | N = int(input())
c = list(map(int, input().split()))
a = list()
for i in range(N):
if (c[i] % 2 == 0):
if(c[i] % 3 == 0 or c[i] % 5 == 0):
a.append(1)
else:
a.append(0)
b = 0
for i in range(len(a)):
b = b + int(a[0])
if(b == len(a)):
print("APPROVED")
else:
p... | N = int(input())
c = list(map(int, input().split()))
a = list()
for i in range(N):
if (c[i] % 2 == 0):
if(c[i] % 3 == 0 or c[i] % 5 == 0):
a.append(1)
else:
a.append(0)
b = 0
for i in range(len(a)):
b = b + int(a[i])
if(b == len(a)):
print("APPROVED")
else:
... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 570,447 | 570,448 | u328067859 | python |
p02772 | n = int(input())
l = list(map(int,input().split()))
flag = True
for i in l:
if (i%3 != 0 and i%2 == 0) or (i%5 != 0 and i%2 == 0):
flag = False
break
if flag:
print("APPROVED")
else:
print("DENIED") | n = int(input())
l = list(map(int,input().split()))
flag = True
for i in l:
if (i%3 != 0 and i%2 == 0) and (i%5 != 0 and i%2 == 0):
flag = False
break
if flag:
print("APPROVED")
else:
print("DENIED")
| [
"control_flow.branch.if.condition.change"
] | 570,451 | 570,452 | u812867074 | python |
p02772 | N = int(input())
a_list = list(map(int, input().split()))
c = 0
for i in range(N):
if a_list[i] % 2 != 0:
a = 1
else:
if (a_list[i] % 3 != 0) and (a_list[i] % 5 != 0):
c = 1
else:
a = 1
if c == 1:
print("DENID")
else:
print("APPROVED") | N = int(input())
a_list = list(map(int, input().split()))
c = 0
for i in range(N):
if a_list[i] % 2 != 0:
a = 1
else:
if (a_list[i] % 3 != 0) and (a_list[i] % 5 != 0):
c = 1
else:
a = 1
if c == 1:
print("DENIED")
else:
print("APPROVED") | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,453 | 570,454 | u429319815 | python |
p02772 | N=int(input())
a = list(map(int,input().split()))
c=0
i=0
while(c==0 and i<N):
if(a[i]%2==0):
if(a[i]%3==0 or a[i]%5==0):
i+=1
else:
c+=1
else:
i+=1
if(c==0):
print("APPROVED")
else:
print("DENINED")
| N=int(input())
a = list(map(int,input().split()))
c=0
i=0
while(c==0 and i<N):
if(a[i]%2==0):
if(a[i]%3==0 or a[i]%5==0):
i+=1
else:
c+=1
else:
i+=1
if(c==0):
print("APPROVED")
else:
print("DENIED")
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,457 | 570,458 | u851125702 | python |
p02772 | N=int(input())
a = list(map(int,input().split()))
c=0
i=0
print(a)
while(c==0 and i<N):
if(a[i]%2==0):
if(a[i]%3==0 or a[i]%5==0):
i+=1
else:
c+=1
else:
i+=1
if(c==0):
print("APPROVED")
else:
print("DENINED")
| N=int(input())
a = list(map(int,input().split()))
c=0
i=0
while(c==0 and i<N):
if(a[i]%2==0):
if(a[i]%3==0 or a[i]%5==0):
i+=1
else:
c+=1
else:
i+=1
if(c==0):
print("APPROVED")
else:
print("DENIED")
| [
"call.remove",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,459 | 570,458 | u851125702 | python |
p02772 | n = int(input())
A = [int(x) for x in input().split()
if int(x) % 2 == 1 or int(x) % 6 == 0 or int(x) % 10 == 0 ]
if len(A) == N:
print("APPROVED")
else:
print("DENIED") | N = int(input())
A = [int(x) for x in input().split()
if int(x) % 2 == 1 or int(x) % 6 == 0 or int(x) % 10 == 0 ]
if len(A) == N:
print("APPROVED")
else:
print("DENIED") | [
"assignment.variable.change",
"identifier.change"
] | 570,462 | 570,463 | u163529815 | python |
p02772 | N = input()
raw_input1 = input()
l = raw_input1.split()
l_num = [int(x) for x in l]
flag = 0
flag1 = 0
for a in l_num:
if a % 2 ==0:
print(a)
if a % 3 == 0 or a % 5 == 0:
flag = 0
else:
flag = 1
if flag != 0:
break
if flag == 0:
print('APPROVED')
e... | N = input()
raw_input1 = input()
l = raw_input1.split()
l_num = [int(x) for x in l]
flag = 0
flag1 = 0
for a in l_num:
if a % 2 ==0:
if a % 3 == 0 or a % 5 == 0:
flag = 0
else:
flag = 1
if flag != 0:
break
if flag == 0:
print('APPROVED')
else:
print('D... | [
"call.remove"
] | 570,468 | 570,469 | u565292900 | python |
p02772 | N = input()
raw_input1 = input()
l = raw_input1.split()
l_num = [int(x) for x in l]
flag = 0
flag1 = 0
for a in l_num:
if a % 2 ==0:
if a % 3 == 0 or a % 5 == 0:
flag = 0
else:
flag = 1
if flag != 0:
break
if flag == 0:
print('APPROVAL')
else:
print('D... | N = input()
raw_input1 = input()
l = raw_input1.split()
l_num = [int(x) for x in l]
flag = 0
flag1 = 0
for a in l_num:
if a % 2 ==0:
if a % 3 == 0 or a % 5 == 0:
flag = 0
else:
flag = 1
if flag != 0:
break
if flag == 0:
print('APPROVED')
else:
print('D... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,470 | 570,469 | u565292900 | python |
p02772 | n = int(input())
numberlist = list(map(int, input().split()))
ans = 'DENIED'
for i in range(n):
if numberlist[i] % 2 == 0:
if numberlist[i] % 3 == 0 or numberlist[i] % 5 == 0:
ans = 'APPROVED'
else:
ans = 'DENIED'
break
print(ans) | n = int(input())
numberlist = list(map(int, input().split()))
ans = 'APPROVED'
for i in range(n):
if numberlist[i] % 2 == 0:
if numberlist[i] % 3 == 0 or numberlist[i] % 5 == 0:
ans = 'APPROVED'
else:
ans = 'DENIED'
break
print(ans) | [
"literal.string.change",
"assignment.value.change"
] | 570,480 | 570,481 | u104005543 | python |
p02772 | input1 = list(map(int, (input().split())))
input2 = list(map(int, (input().split())))
n = input1[0]
for a in input2:
if(a & 1 == 1):
continue
if(a % 3 == 0 or a % 5 == 0):
print("APPROVED")
exit(0)
print("DENIED")
| input1 = list(map(int, (input().split())))
input2 = list(map(int, (input().split())))
n = input1[0]
for a in input2:
if(a & 1 == 1):
continue
if(a % 3 != 0 and a % 5 != 0):
print("DENIED")
exit(0)
print("APPROVED")
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,487 | 570,488 | u154473588 | python |
p02772 | def judge(N, A):
cnt = 0
odd = 0
for i in range(N):
if A[i] % 2 != 0:
odd += 1
continue
else:
if (A[i] % 3 == 0) or (A[i] % 5 == 0):
cnt += 1
even = N - odd
if cnt == even:
print('APROVED')
else:
print('DENIED')
N = int(input())
A = list(map(int, input().split(... | def judge(N, A):
cnt = 0
odd = 0
for i in range(N):
if A[i] % 2 != 0:
odd += 1
else:
if (A[i] % 3 == 0) or (A[i] % 5 == 0):
cnt += 1
even = N - odd
if cnt == even:
print('APPROVED')
else:
print('DENIED')
N = int(input())
A = list(map(int, input().split()))
judge(N, A... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,489 | 570,490 | u318150500 | python |
p02772 | n = int(input())
a = list(map(int,(input().split())))
ans = 'DENIED'
for i in a:
if i%2==0:
if i%3==0 or i%5==0:
ans = 'APPROVED'
else:
ans = 'DENIED'
break
print(ans) | n = int(input())
a = list(map(int,(input().split())))
ans = 'APPROVED'
for i in a:
if i%2==0:
if i%3==0 or i%5==0:
ans = 'APPROVED'
else:
ans = 'DENIED'
break
print(ans) | [
"literal.string.change",
"assignment.value.change"
] | 570,499 | 570,500 | u619785253 | python |
p02772 | n = int(input())
a = list(map(int,(input().split())))
ans = ''
for i in a:
if i%2==0:
if i%3==0 or i%5==0:
ans = 'APPROVED'
else:
ans = 'DENIED'
break
print(ans) | n = int(input())
a = list(map(int,(input().split())))
ans = 'APPROVED'
for i in a:
if i%2==0:
if i%3==0 or i%5==0:
ans = 'APPROVED'
else:
ans = 'DENIED'
break
print(ans) | [
"literal.string.change",
"assignment.value.change"
] | 570,501 | 570,500 | u619785253 | python |
p02772 | n=int(input())
l=list(map(int, input().split()))
br=0
p=0
for i in range (n):
if l[i]%2==0:
p+=1
if l[i]%5==0 or l[i]%3==0:
br+=1
if br==p:
print("APPROVED")
else:
print("DENITED")
| n=int(input())
l=list(map(int, input().split()))
br=0
p=0
for i in range (n):
if l[i]%2==0:
p+=1
if l[i]%5==0 or l[i]%3==0:
br+=1
if br==p:
print("APPROVED")
else:
print("DENIED") | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,502 | 570,503 | u706811704 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
c = [0] * n
for i in range(n):
if (a[i] % 2 == 0):
if (a[i] % 3 != 0) and (a[i] % 5 != 0):
c[i] = 1
if (len(set(c)) == 1):
print('APPROVED')
else:
print('DENIED') | n = int(input())
a = list(map(int, input().split()))
c = [0] * n
for i in range(n):
if (a[i] % 2 == 0):
if (a[i] % 3 != 0) and (a[i] % 5 != 0):
c[i] = 1
if (list(set(c)) == [0]):
print('APPROVED')
else:
print('DENIED') | [
"identifier.change",
"call.function.change",
"control_flow.branch.if.condition.change"
] | 570,504 | 570,505 | u478132434 | python |
p02772 | n=int(input())
a=list(map(int,input().split()))
ans="APPROVED"
for i in range (n):
if a[i]%2==0:
if a[i]%3!=0 or a[i]%5!=0:
ans="DENIED"
print(ans) | n=int(input())
a=list(map(int,input().split()))
ans="APPROVED"
for i in range (n):
if a[i]%2==0:
if a[i]%3!=0 and a[i]%5!=0:
ans="DENIED"
print(ans) | [
"control_flow.branch.if.condition.change"
] | 570,512 | 570,513 | u507113442 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
for i in range(n):
if a[i]%2 == 0:
if a[i]%3 != 0 and a[i]%5 != 0:
print("DENIED")
break
elif i == n-1:
print("APPROVED")
break | n = int(input())
a = list(map(int, input().split()))
for i in range(n):
if a[i]%2 == 0:
if a[i]%3 != 0 and a[i]%5 != 0:
print("DENIED")
break
if i == n-1:
print("APPROVED")
break | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 570,517 | 570,518 | u518386853 | python |
p02772 | def main():
# n,m = map(int,input().split())
n = int(input())
a = list(map(int,input().split()))
ans = 0
den = 0
for i in range(len(a)):
if a[i] % 2 == 0:
if a[i] % 3 == 0 or a[i] % 5 == 0:
ans = 1
else:
den = 1
if ans == 1 and den == 0:
print("APPROVED")
else:
print("DENIED")
if __name_... | def main():
# n,m = map(int,input().split())
n = int(input())
a = list(map(int,input().split()))
ans = 0
den = 0
for i in range(len(a)):
if a[i] % 2 == 0:
if a[i] % 3 == 0 or a[i] % 5 == 0:
ans = 1
else:
den = 1
if den == 0:
print("APPROVED")
else:
print("DENIED")
if __name__ == '__main_... | [] | 570,527 | 570,528 | u879584308 | python |
p02772 | amount = int(input())
inputl = input().split()
flag = True
for i in range(0, amount-1):
a = int(inputl[i])
if a % 2 == 0:
if a % 3 != 0 and a % 5 != 0:
flag = False
if flag:
print("APPROVED")
else:
print("DENIED")
| amount = int(input())
inputl = input().split()
flag = True
for i in range(amount):
a = int(inputl[i])
if a % 2 == 0:
if a % 3 != 0 and a % 5 != 0:
flag = False
if flag:
print("APPROVED")
else:
print("DENIED")
| [
"call.arguments.change",
"expression.operation.binary.remove"
] | 570,531 | 570,532 | u220231854 | python |
p02772 | import numpy as np
N = input()
list = list(map(int,input().split(' ')))
list = np.array(list)
A = list[list%2 == 0]
B = np.unique(np.append(list[list%6 == 0],(list[list%10 == 0])))
if len(A) ==0:
print('APPROVED')
elif len(B) ==0:
print('DENIED')
else:
if len(A) == len(B) :
print('APPROVED')
... | import numpy as np
N = input()
list = list(map(int,input().split(' ')))
list = np.array(list)
A = np.unique(list[list%2 == 0])
B = np.unique(np.append(list[list%6 == 0],(list[list%10 == 0])))
if len(A) ==0:
print('APPROVED')
elif len(B) ==0:
print('DENIED')
else:
if len(A) == len(B) :
print('A... | [
"call.add",
"call.arguments.change"
] | 570,537 | 570,538 | u232873434 | python |
p02772 | #coding utf-8
def main():
question_b()
def question_b():
n = int(input())
syorui = list(map(int,input().split()))
flg = False
oddflg = False
box = []
for i in range(n):
if syorui[i]%2 == 0:
oddflg = True
if syorui[i]%3 == 0 or syorui[i]%5 == 0:
... | #coding utf-8
def main():
question_b()
def question_b():
n = int(input())
syorui = list(map(int,input().split()))
flg = False
oddflg = False
box = []
for i in range(n):
if syorui[i]%2 == 0:
oddflg = True
if syorui[i]%3 == 0 or syorui[i]%5 == 0:
... | [
"assignment.add"
] | 570,542 | 570,543 | u966977124 | python |
p02772 | n=int(input())
a=list(map(int,input().split()))
cnt=0
while True:
if cnt>=n:
print('DENIED')
break
elif a[cnt]%2==0:
if a[cnt]%3==0 or a[cnt]%5==0:
cnt+=1
continue
else:
print('DENIED')
break
elif cnt==n:
print(... | n=int(input())
a=list(map(int,input().split()))
cnt=0
while True:
if cnt>=n:
print('APPROVED')
break
elif a[cnt]%2==0:
if a[cnt]%3==0 or a[cnt]%5==0:
cnt+=1
continue
else:
print('DENIED')
break
elif cnt==n:
prin... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,551 | 570,552 | u992910889 | python |
p02772 | n = int(input())
s = list(map(int,input().split(" ")))
count = 0
for x in range(n):
if s[x]%2 == 0 and (s[x]%5 != 0 or s[x]%3 != 0):
count += 1
if count == 0:
print("APPROVED")
else:
print("DENIED") | n = int(input())
s = list(map(int,input().split(" ")))
count = 0
for x in range(n):
if s[x]%2 == 0 and (s[x]%5 != 0 and s[x]%3 != 0):
count += 1
if count == 0:
print("APPROVED")
else:
print("DENIED") | [
"control_flow.branch.if.condition.change"
] | 570,553 | 570,554 | u492999896 | python |
p02773 | from collections import Counter
n=int(input())
a=[]
for i in range(n):
a.append(input())
ac=Counter(a)
acs=sorted(ac.items(),key=lambda x:x[1])
z=len(acs)
i=0
temp=[]
while i<=z-1 and acs[i][1]==acs[0][1] :
temp.append(acs[i][0])
i+=1
temp.sort()
for i in temp:
print(i) | from collections import Counter
n=int(input())
a=[]
for i in range(n):
a.append(input())
ac=Counter(a)
acs=sorted(ac.items(),key=lambda x:x[1],reverse=1)
z=len(acs)
i=0
temp=[]
while i<=z-1 and acs[i][1]==acs[0][1] :
temp.append(acs[i][0])
i+=1
temp.sort()
for i in temp:
print(i) | [
"call.arguments.add"
] | 570,570 | 570,571 | u944325914 | python |
p02773 | from collections import Counter
N = int(input())
S = [input() for i in range(N)]
SC = Counter(S)
maxval = max(SC.values())
listmaxval = [key for key in SC if SC[key] == maxval]
ans = "\r\n".join(listmaxval)
print(ans)
| from collections import Counter
N = int(input())
S = [input() for i in range(N)]
SC = Counter(S)
maxval = max(SC.values())
listmaxval = [key for key in SC if SC[key] == maxval]
listmaxval.sort()
ans = "\r\n".join(listmaxval)
print(ans) | [
"call.add"
] | 570,578 | 570,579 | u847727454 | python |
p02773 | #listの要素をキー、その出現数を値として持つディクショナリを返す
def count(list):
dict = {}
for i in range(len(list)):
dict[list[i]] = dict.get(list[i], 0) + 1
return dict
n = int(input())
s = []
for _ in range(n):
s.append(input())
dic = count(s)
lst = sorted(dic.items(), key=lambda x: x[1], reverse=True)
value_max = lst[... | #listの要素をキー、その出現数を値として持つディクショナリを返す
def count(list):
dict = {}
for i in range(len(list)):
dict[list[i]] = dict.get(list[i], 0) + 1
return dict
n = int(input())
s = []
for _ in range(n):
s.append(input())
dic = count(s)
lst = sorted(dic.items(), key=lambda x: x[1], reverse=True)
value_max = lst[... | [
"call.add"
] | 570,582 | 570,583 | u896588506 | python |
p02773 | import collections
n = int(input())
s = [''] * n
for i in range(n):
print(i)
s[i] = input()
cs = collections.Counter(s)
mcs = cs.most_common()
cnt = mcs[0][1]
fcs = [i[0] for i in cs.items() if i[1] == cnt]
ans = sorted(fcs)
for s in ans:
print(s)
| import collections
n = int(input())
s = [''] * n
for i in range(n):
s[i] = input()
cs = collections.Counter(s)
mcs = cs.most_common()
cnt = mcs[0][1]
fcs = [i[0] for i in cs.items() if i[1] == cnt]
ans = sorted(fcs)
for s in ans:
print(s)
| [
"call.remove"
] | 570,585 | 570,586 | u323859575 | python |
p02773 | import collections
N = int(input())
S = [input() for _ in range(N)]
cnt = collections.Counter(S)
max_cnt = max(cnt.values())
ans_list = []
for key, value in cnt.items():
print(key, value)
if value == max_cnt:
ans_list.append(key)
print(*sorted(ans_list), sep='\n')
| import collections
N = int(input())
S = [input() for _ in range(N)]
cnt = collections.Counter(S)
max_cnt = max(cnt.values())
ans_list = []
for key, value in cnt.items():
if value == max_cnt:
ans_list.append(key)
print(*sorted(ans_list), sep='\n')
| [
"call.remove"
] | 570,587 | 570,588 | u616382321 | python |
p02773 | import sys
input = sys.stdin.readline
d = {}
for _ in range(int(input())):
s = input().replace("\n", "")
if s in d:
d[s] += 1
else:
d[s] = 1
x = d[max(d)]
l = sorted(s for (s, i) in d.items() if i == x)
print(*l, sep="\n") | import sys
input = sys.stdin.readline
d = {}
for _ in range(int(input())):
s = input().replace("\n", "")
if s in d:
d[s] += 1
else:
d[s] = 1
x = max(d.values())
l = sorted(s for (s, i) in d.items() if i == x)
print(*l, sep="\n") | [
"call.add"
] | 570,609 | 570,610 | u040298438 | python |
p02773 | Row = int(input())
dictA= {}
a = ""
mid = 0
for i in range (Row):
a = input()
dictA.setdefault(a,0)
dictA[a] += 1
mid = max(mid, dictA[a])
sDict = sorted(dictA.items())
print(sDict)
for i in range(len(dictA)):
if sDict[i][1]== mid:
print(sDict[i][0]) | Row = int(input())
dictA= {}
a = ""
mid = 0
for i in range (Row):
a = input()
dictA.setdefault(a,0)
dictA[a] += 1
mid = max(mid, dictA[a])
sDict = sorted(dictA.items())
for i in range(len(dictA)):
if sDict[i][1]== mid:
print(sDict[i][0]) | [
"call.remove"
] | 570,611 | 570,612 | u113255362 | python |
p02773 | n=int(input())
dict={}
xs=[]
for i in range(n):
s=input()
xs+=[s]
if s not in dict:
dict[s]=1
else:
dict[s]+=1
pin=0
xs=list(set(xs))
for i in xs:
pin=max(pin,dict[i])
ans=[]
for i in xs:
if dict[i]==pin:
ans*=[i]
ans.sort()
for i in ans:
print(i) | n=int(input())
dict={}
xs=[]
for i in range(n):
s=input()
xs+=[s]
if s not in dict:
dict[s]=1
else:
dict[s]+=1
pin=0
xs=list(set(xs))
for i in xs:
pin=max(pin,dict[i])
ans=[]
for i in xs:
if dict[i]==pin:
ans+=[i]
ans.sort()
for i in ans:
print(i) | [
"expression.operator.change"
] | 570,615 | 570,616 | u350093546 | python |
p02773 | n=int(input())
dict={}
xs=[]
for i in range(n):
s=input()
xs+=[s]
if s not in dict:
dict[s]=1
else:
dict[s]+=1
pin=0
xs=list(set(xs))
for i in xs:
pin=max(pin,dict[xs])
ans=[]
for i in xs:
if dict[i]==pin:
ans*=[i]
ans.sort()
for i in ans:
print(i)
| n=int(input())
dict={}
xs=[]
for i in range(n):
s=input()
xs+=[s]
if s not in dict:
dict[s]=1
else:
dict[s]+=1
pin=0
xs=list(set(xs))
for i in xs:
pin=max(pin,dict[i])
ans=[]
for i in xs:
if dict[i]==pin:
ans+=[i]
ans.sort()
for i in ans:
print(i) | [
"assignment.value.change",
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operator.change"
] | 570,617 | 570,616 | u350093546 | python |
p02773 | import collections
n=int(input())
data=[""]*n
for i in range(n):
data[i]=input()
count=collections.Counter(data)
num=max(count.values())
for v,k in count.items():
if k==num:
print(v) | import collections
n=int(input())
data=[""]*n
for i in range(n):
data[i]=input()
data=sorted(data)
count=collections.Counter(data)
num=max(count.values())
for v,k in count.items():
if k==num:
print(v) | [
"assignment.add"
] | 570,620 | 570,621 | u954153335 | python |
p02773 | N = int(input())
d = {}
for i in range(N):
s = input()
if s in d:
d[s] = d[s] + 1
else:
d[s] = 1
hoge = max(d.values)
max_kv_list = [kv[0] for kv in d.items() if kv[1] == hoge]
max_kv_list = sorted(max_kv_list)
for ans in max_kv_list:
print(ans) | N = int(input())
d = {}
for i in range(N):
s = input()
if s in d:
d[s] = d[s] + 1
else:
d[s] = 1
hoge = max(d.values())
max_kv_list = [kv[0] for kv in d.items() if kv[1] == hoge]
max_kv_list = sorted(max_kv_list)
for ans in max_kv_list:
print(ans) | [
"call.add"
] | 570,628 | 570,629 | u655663334 | python |
p02773 | import collections
n=int(input())
ans=[]
s=["".join(sorted(input())) for _ in range(n)]
c=collections.Counter(s)
m=max(c.values())
for k,v in c.items():
if v==m:
ans.append(k)
for i in sorted(ans):
print(i)
| import collections
n=int(input())
ans=[]
s=["".join(input()) for _ in range(n)]
c=collections.Counter(s)
m=max(c.values())
for k,v in c.items():
if v==m:
ans.append(k)
for i in sorted(ans):
print(i) | [
"call.remove",
"call.arguments.change"
] | 570,630 | 570,631 | u344065503 | python |
p02773 | import collections
n=int(input())
ans=[]
s=["".join(sorted(input())) for _ in range(n)]
c=collections.Counter(s)
m=max(c.values())
for k,v in c.items():
if v==m:
ans.append(k)
for i in sorted(k):
print(i)
| import collections
n=int(input())
ans=[]
s=["".join(input()) for _ in range(n)]
c=collections.Counter(s)
m=max(c.values())
for k,v in c.items():
if v==m:
ans.append(k)
for i in sorted(ans):
print(i) | [
"call.remove",
"call.arguments.change",
"identifier.change"
] | 570,632 | 570,631 | u344065503 | python |
p02773 | from collections import Counter
n = int(input())
s = list(input() for _ in range(n))
ls = Counter(s).most_common()
a = []
a.append(ls[0][0])
for i in range(1, len(ls)):
if ls[i][1] == ls[0][1]:
a.append(ls[i][0])
for i in a:
print(i) | from collections import Counter
n = int(input())
s = list(input() for _ in range(n))
ls = Counter(s).most_common()
a = []
a.append(ls[0][0])
for i in range(1, len(ls)):
if ls[i][1] == ls[0][1]:
a.append(ls[i][0])
for i in sorted(a):
print(i) | [
"call.add",
"call.arguments.change"
] | 570,635 | 570,636 | u277104886 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.