problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k ⌀ | fixed_code stringlengths 12 526k ⌀ | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M ⌀ | fixed_submission_id int64 2 1.54M ⌀ | user_id stringlengths 10 10 ⌀ | language stringclasses 9
values |
|---|---|---|---|---|---|---|---|
p02772 | N = int(input())
A = list(map(int, input().split()))
result = "APPROVED"
for i in range(N):
if (A[i] % 2 == 1) or ((A[i] % 2 == 0) and (A[i] % 3 == 0 or A[i] % 3 == 0)):
break
else:
result ="DENIED"
break
########### 出力
print(result) | N = int(input())
A = list(map(int, input().split()))
result = "APPROVED"
for i in range(N):
if not( (A[i] % 2 == 1) or ((A[i] % 2 == 0) and (A[i] % 3 == 0 or A[i] % 5 == 0)) ):
result ="DENIED"
break
########### 出力
print(result) | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"literal.number.integer.change",
"control_flow.break.remove"
] | 569,955 | 569,953 | u278761160 | python |
p02772 | N = int(input())
L = list(map(int, input().split()))
count = 0
count2 = 0
for i in range(0, N):
if L[i]%2==0:
count = count + 1
if L[i]%3==0 or L[i]%5==0:
count2 = count2 + 1
if count == count2:
prin("APPROVED")
else:
print("DENIED")
| N = int(input())
L = list(map(int, input().split()))
count = 0
count2 = 0
for i in range(0, N):
if L[i]%2==0:
count = count + 1
if L[i]%3==0 or L[i]%5==0:
count2 = count2 + 1
if count == count2:
print("APPROVED")
else:
print("DENIED")
| [
"identifier.change",
"call.function.change"
] | 569,958 | 569,959 | u654035739 | python |
p02772 | N = int(input())
a_list = list(map(int, input().split()))
even_list = []
for a in a_list:
if a%2==0:
even_list.append(a)
ans = False
for e in even_list:
if e%3==0 or e%5==0:
ans = True
else:
ans = False
break
if ans:
print("APPROVED")
else:
print("DENIED")
| N = int(input())
a_list = list(map(int, input().split()))
even_list = []
for a in a_list:
if a%2==0:
even_list.append(a)
ans = True
for e in even_list:
if e%3==0 or e%5==0:
ans = True
else:
ans = False
break
if ans:
print("APPROVED")
else:
print("DENIED")
| [
"misc.opposites",
"assignment.value.change"
] | 569,966 | 569,967 | u368249389 | python |
p02772 | N = int(input())
A = list(map(int, input().split()))
chk = 0
for i in range(0,N):
if A[i]%2 == 0:
if A[i]%3 == 0 or A[i]%5 == 0:
continue
else:
chk += 1
if chk == 0:
print("APROVED")
else:
print("DENIED") | N = int(input())
A = list(map(int, input().split()))
chk = 0
for i in range(0,N):
if A[i]%2 == 0:
if A[i]%3 == 0 or A[i]%5 == 0:
continue
else:
chk += 1
if chk == 0:
print("APPROVED")
else:
print("DENIED") | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,971 | 569,972 | u489124637 | python |
p02772 | N = int(input())
A = list(map(int, input().split()))
chk = 0
for i in range(0,N):
if A[i]%2 == 0:
if A[i]%3 == 0 or A[i]%5 == 0:
break
else:
chk += 1
if chk == 0:
print("APROVED")
else:
print("DENIED") | N = int(input())
A = list(map(int, input().split()))
chk = 0
for i in range(0,N):
if A[i]%2 == 0:
if A[i]%3 == 0 or A[i]%5 == 0:
continue
else:
chk += 1
if chk == 0:
print("APPROVED")
else:
print("DENIED") | [
"control_flow.break.remove",
"control_flow.continue.add",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,973 | 569,972 | u489124637 | python |
p02772 | n=int(input())
a=list(map(int,input().split()))
f=0
for i in range(n):
if(a[i]%2==0):
if(a[i]%3==0 or a[i]%5==0):
f=0
else:
f=1
break
if(f==0):
print("APROVED")
else:
print("DENIED") | n=int(input())
a=list(map(int,input().split()))
f=0
for i in range(n):
if(a[i]%2==0):
if(a[i]%3==0 or a[i]%5==0):
f=0
else:
f=1
break
if(f==0):
print("APPROVED")
else:
print("DENIED") | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,974 | 569,975 | u723612973 | python |
p02772 | n = int(input())
a = [int(e) for e in input().split()]
flag = True
for i in range(0,n):
if a[i] % 2 == 0 and (a[i] % 3 != 0 and a[i] % 5 != 0):
flag = False
if flag:
print("APPROVE")
else:
print("DENIED") | n = int(input())
a = [int(e) for e in input().split()]
flag = True
for i in range(0,n):
if a[i] % 2 == 0:
if a[i] % 3 != 0 and a[i] % 5 != 0:
flag = False
if flag:
print("APPROVED")
else:
print("DENIED") | [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,984 | 569,985 | u187995923 | 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=1
break
if flag==1:
print("DENIED")
else:
print("APPROVED") | 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 and A[i]%5>0:
flag=1
break
if flag==1:
print("DENIED")
else:
print("APPROVED") | [
"control_flow.branch.if.condition.change"
] | 569,988 | 569,989 | u594477812 | python |
p02772 | n = input()
X = set(map(int, input().split()))
E = [x for x in X if x % 2 == 0]
EE = [e for e in E if (e % 3 == 0 or e % 5 == 0)]
if len(E) == len(EE):
print("APPLOVED")
else:
print("DENIED")
| n = input()
X = set(map(int, input().split()))
E = [x for x in X if x % 2 == 0]
EE = [e for e in E if (e % 3 == 0 or e % 5 == 0)]
if len(E) == len(EE):
print("APPROVED")
else:
print("DENIED")
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,990 | 569,991 | u219180252 | python |
p02772 | def check(n, da):
for i in da:
if i%2 == 0:
if not(i%3 == 0 or n%5 == 0):
return False
return True
n = int(input())
#s = input()
#a, b, c = map(int,input().split())
da = list(map(int,input().split()))
if check(n, da):
print('APPROVED')
else:
print('DENIED') | def check(n, da):
for i in da:
if i%2 == 0:
if not(i%3 == 0 or i%5 == 0):
return False
return True
n = int(input())
#s = input()
#a, b, c = map(int,input().split())
da = list(map(int,input().split()))
if check(n, da):
print('APPROVED')
else:
print('DENIED')
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 569,996 | 569,997 | u057079894 | python |
p02772 | import math
import itertools
import fractions
import heapq
import collections
import bisect
import sys
import copy
sys.setrecursionlimit(10**9)
mod = 10**7+9
inf = 10**20
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines()]
def LI_(... | import math
import itertools
import fractions
import heapq
import collections
import bisect
import sys
import copy
sys.setrecursionlimit(10**9)
mod = 10**7+9
inf = 10**20
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines()]
def LI_(... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,004 | 570,005 | u896451538 | python |
p02772 | N = int(input())
aa = map(int, input().split())
f = False
for a in aa:
if a % 2 == 0:
if (a % 3 != 0) or (a % 5 != 0):
print('DENIED')
f = True
break
if not f:
print('APPROVED') | N = int(input())
aa = map(int, input().split())
f = False
for a in aa:
if a % 2 == 0:
if (a % 3 != 0) and (a % 5 != 0):
print('DENIED')
f = True
break
if not f:
print('APPROVED') | [
"control_flow.branch.if.condition.change"
] | 570,024 | 570,025 | u595952233 | python |
p02772 | N=int(input())
A=list(map(int,input().split()))
even=[]
for a in A:
if a%2==0:
even.append(a)
if len(even)==0:
print("APPROVED")
exit()
ans=False
for e in even:
if e%3==0 or e%5==0:
ans=True
else:
break
print("APPROVED" if ans else "DENIED") | N=int(input())
A=list(map(int,input().split()))
even=[]
for a in A:
if a%2==0:
even.append(a)
if len(even)==0:
print("APPROVED")
exit()
ans=False
for e in even:
if e%3==0 or e%5==0:
ans=True
else:
ans=False
break
print("APPROVED" if ans else "DENIED") | [
"assignment.add"
] | 570,028 | 570,029 | u580404776 | python |
p02772 | N = int(input())
A = [int(s) for s in input().split()]
evenA = [i for i in A if i%2 == 0]
flg = True
for i in evenA:
if i%3 != 0 and i%5 != 0:
flg == False
if flg:
print("APPROVED")
else:
print("DENIED") | N = int(input())
A = [int(s) for s in input().split()]
evenA = [i for i in A if i%2 == 0]
flg = True
for i in evenA:
if i%3 != 0 and i%5 != 0:
flg = False
if flg:
print("APPROVED")
else:
print("DENIED") | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 570,034 | 570,035 | u169866169 | python |
p02772 | import sys
input()
input_line = [int(i) for i in input().split(" ") if int(i) % 2 == 0]
if input_line == []:
print("DENIED")
sys.exit()
for i in input_line:
if i % 3 == 0:
continue
if i % 5 == 0:
continue
print("DENIED")
sys.exit()
print("APPROVED") | import sys
input()
input_line = [int(i) for i in input().split(" ") if int(i) % 2 == 0]
if input_line == []:
print("APPROVED")
sys.exit()
for i in input_line:
if i % 3 == 0:
continue
if i % 5 == 0:
continue
print("DENIED")
sys.exit()
print("APPROVED") | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,036 | 570,037 | u827646026 | python |
p02772 | N = int(input())
ALis = list(map(int,input().split()))
Flag = True
for i in range(N):
if ALis[i] % 2 == 0:
if ALis[i] % 3 != 0 and ALis[i] % 5 != 0:
Flag = False
if Flag:
print("APPROVE")
else:
print("DENIED")
| N = int(input())
ALis = list(map(int,input().split()))
Flag = True
for i in range(N):
if ALis[i] % 2 == 0:
if ALis[i] % 3 != 0 and ALis[i] % 5 != 0:
Flag = False
if Flag:
print("APPROVED")
else:
print("DENIED")
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 570,040 | 570,041 | u861071267 | python |
p02772 | n = int(input())
a = [int(i) for i in input().split()]
ok = True
for i in a :
if( (i%2 == 0) and (i%3 != 0) and (i%5 != 0)) :
ok = False
print(i)
if ok == True:
print("APPROVED")
else :
print("DENIED")
| n = int(input())
a = [int(i) for i in input().split()]
ok = True
for i in a :
if( (i%2 == 0) and (i%3 != 0) and (i%5 != 0)) :
ok = False
if ok == True:
print("APPROVED")
else :
print("DENIED")
| [
"call.remove"
] | 570,054 | 570,055 | u595786324 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
aa = [i for i in a if i%2 == 0]
flag = 0
for i in aa:
if i%3 != 0 and i%5 != 0:
print('DENIED')
flag = 1
if flag == 0:
print('APPROVED') | n = int(input())
a = list(map(int, input().split()))
aa = [i for i in a if i%2 == 0]
flag = 0
for i in aa:
if i%3 != 0 and i%5 != 0:
print('DENIED')
flag = 1
break
if flag == 0:
print('APPROVED') | [
"control_flow.break.add"
] | 570,062 | 570,063 | u464627439 | python |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.