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 = (int(num) for num in input().split())
ans = "APPROVED"
for i in range(n):
if a[i] % 2 == 0 and a[i] % 3 != 0 and a[i] % 5 != 0:
ans = "DENIED"
print(ans)
|
n = int(input())
a = [int(num) for num in input().split()]
ans = "APPROVED"
for i in range(n):
if a[i] % 2 == 0 and a[i] % 3 != 0 and a[i] % 5 != 0:
ans = "DENIED"
print(ans)
|
[
"assignment.value.change"
] | 569,016
| 569,017
|
u023540496
|
python
|
p02772
|
n=int(input())
print('DENIED' if any([x%2==0 and (x%3 and x%5) for x in map(int,input().split())]) else 'APPLOVED')
|
N=int(input())
print('DENIED' if any([x%2==0 and (x%3 and x%5) for x in map(int,input().split())]) else 'APPROVED')
|
[
"assignment.variable.change",
"identifier.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,018
| 569,019
|
u204260373
|
python
|
p02772
|
N=int(input())
print('DENIED' if any([x%2==0 and (x%3 and x%5) for x in int(input().split())]) else 'APPROVED')
|
N=input();print('DENIED'if any([x%2==0 and(x%3 and x%5)for x in map(int,input().split())])else'APPROVED')
|
[
"call.remove",
"call.arguments.change",
"identifier.change",
"call.function.change",
"call.arguments.add"
] | 569,022
| 569,021
|
u774985302
|
python
|
p02772
|
N=int(input())
print('DENIED' if any([x%2==0 and (x%3 and x%5) for x in int(input().split())]) else 'APPROVED')
|
N=int(input())
print('DENIED' if any([x%2==0 and (x%3 and x%5) for x in map(int,input().split())]) else 'APPROVED')
|
[
"identifier.change",
"call.function.change",
"call.arguments.change",
"call.arguments.add"
] | 569,022
| 569,023
|
u774985302
|
python
|
p02772
|
import sys
N = int(input())
A = [int(i) for i in input().split()]
for i in A:
if i%2 == 0 and (not i%3 == 0 or not i % 5 == 0):
print("DENIED")
sys.exit()
else :
continue
print("APPROVED")
|
import sys
N = int(input())
A = [int(i) for i in input().split()]
for i in A:
if i%2 == 0 and (not i%3 == 0 and not i % 5 == 0):
print("DENIED")
sys.exit()
else :
continue
print("APPROVED")
|
[
"control_flow.branch.if.condition.change"
] | 569,024
| 569,025
|
u774985302
|
python
|
p02772
|
N = int(input())
A = list(map(int, input().split()))
flag = True
for i in range(N-1):
if A[i]%2==0 and A[i]%3!=0 and A[i]%5!=0:
flag = False
break
if flag==True:
print('APPROVED')
else:
print('DENIED')
|
N = int(input())
A = list(map(int, input().split()))
flag = True
for i in range(N):
if A[i]%2==0 and A[i]%3!=0 and A[i]%5!=0:
flag = False
break
if flag:
print('APPROVED')
else:
print('DENIED')
|
[
"expression.operation.binary.remove"
] | 569,026
| 569,027
|
u891518152
|
python
|
p02772
|
N = int(input())
A = list(map(int, input().split()))
flag = True
for i in range(N-1):
if A[i]%2==0 and A[i]%3!=0 and A[i]%5!=0:
flag = False
break
if flag:
print('APPROVED')
else:
print('DENIED')
|
N = int(input())
A = list(map(int, input().split()))
flag = True
for i in range(N):
if A[i]%2==0 and A[i]%3!=0 and A[i]%5!=0:
flag = False
break
if flag:
print('APPROVED')
else:
print('DENIED')
|
[
"expression.operation.binary.remove"
] | 569,028
| 569,027
|
u891518152
|
python
|
p02772
|
N = int(input())
A = list(map(int, input().split()))
flag = True
for i in range(N-1):
if A[i]%2==0 and A[i]%3!=0 and A[i]%5!=0:
flag = False
if flag:
print('APPROVED')
else:
print('DENIED')
|
N = int(input())
A = list(map(int, input().split()))
flag = True
for i in range(N):
if A[i]%2==0 and A[i]%3!=0 and A[i]%5!=0:
flag = False
break
if flag:
print('APPROVED')
else:
print('DENIED')
|
[
"expression.operation.binary.remove",
"control_flow.break.add"
] | 569,029
| 569,027
|
u891518152
|
python
|
p02772
|
N = int(input())
A = list(map(int, input().split()))
flag = True
for i in range(N-1):
if A[i]%2==0:
if A[i]%3!=0 and A[i]%5!=0:
flag = False
if flag:
print('APPROVED')
else:
print('DENIED')
|
N = int(input())
A = list(map(int, input().split()))
flag = True
for i in range(N):
if A[i]%2==0 and A[i]%3!=0 and A[i]%5!=0:
flag = False
break
if flag:
print('APPROVED')
else:
print('DENIED')
|
[
"expression.operation.binary.remove",
"control_flow.break.add"
] | 569,030
| 569,027
|
u891518152
|
python
|
p02772
|
n=int(input())
ans="APPROVED"
for i in list(map(int,input().split())):
if a%2==0:
if a%3!=0 and a%5!=0:ans="DENIED"
print(ans)
|
n=int(input())
ans="APPROVED"
for i in list(map(int,input().split())):
if i%2==0:
if i%3!=0 and i%5!=0:ans="DENIED"
print(ans)
|
[
"identifier.change",
"control_flow.branch.if.condition.change"
] | 569,041
| 569,042
|
u227082700
|
python
|
p02772
|
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="DENIED"
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 and i%5!=0:ans="DENIED"
print(ans)
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 569,043
| 569,044
|
u227082700
|
python
|
p02772
|
n = int(input())
a = [int(x) for x in input().split()]
a_even = []
for ai in a:
if ai%2 == 0:
a_even += [ai]
ans = "APPROVED"
for a_eveni in a_even:
if a_eveni%3 != 0 or a_eveni%5 != 0:
ans = "DENIED"
break
print(ans)
|
n = int(input())
a = [int(x) for x in input().split()]
a_even = []
for ai in a:
if ai%2 == 0:
a_even += [ai]
ans = "APPROVED"
for a_eveni in a_even:
if a_eveni%3 != 0 and a_eveni%5 != 0:
ans = "DENIED"
break
print(ans)
|
[
"control_flow.branch.if.condition.change"
] | 569,045
| 569,046
|
u374146618
|
python
|
p02772
|
ans = 'APROVED'
N = int(input())
A = input().split()
for i in range(N):
if (int(A[i])%2 == 0) and not((int(A[i])%3 != 0) and (int(A[i])%5 != 0)):
ans = 'DENIED'
break
print(ans)
|
ans = 'APPROVED'
N = int(input())
A = input().split()
for i in range(N):
if (int(A[i])%2 == 0) and (int(A[i])%3 != 0) and (int(A[i])%5 != 0):
ans = 'DENIED'
break
print(ans)
|
[
"literal.string.change",
"assignment.value.change",
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 569,049
| 569,048
|
u035420666
|
python
|
p02772
|
ans = 'APROVED'
N = int(input())
A = input().split()
for i in range(N):
if (int(A[i])%2 == 0) and (int(A[i])%3 != 0) and (int(A[i])%5 != 0):
ans = 'DENIED'
break
print(ans)
|
ans = 'APPROVED'
N = int(input())
A = input().split()
for i in range(N):
if (int(A[i])%2 == 0) and (int(A[i])%3 != 0) and (int(A[i])%5 != 0):
ans = 'DENIED'
break
print(ans)
|
[
"literal.string.change",
"assignment.value.change"
] | 569,050
| 569,048
|
u035420666
|
python
|
p02772
|
n=int(input())
seq=input().split()
check=0
for i in range(n):
if int(seq[i])%2==0:
if int(seq[i])%3!=0 or int(seq[i])%5!=0:
check+=1
if check==0:
print("APPROVED")
else:
print("DENIED")
|
n=int(input())
seq=input().split()
check=0
for i in range(n):
if int(seq[i])%2==0:
if int(seq[i])%3!=0 and int(seq[i])%5!=0:
check+=1
if check==0:
print("APPROVED")
else:
print("DENIED")
|
[
"control_flow.branch.if.condition.change"
] | 569,052
| 569,053
|
u354126779
|
python
|
p02772
|
N = int(input())
A = list(map(int,input().split()))
B = list((i for i in A if i % 2 == 0))
count = 0
for i in B:
if i%3 == 0 or i%5 == 0:
count += 1
if count == len(B):
print("APROVED")
else:
print("DENIED")
|
N = int(input())
A = list(map(int,input().split()))
B = list((i for i in A if i % 2 == 0))
count = 0
for i in B:
if i%3 == 0 or i%5 == 0:
count += 1
if count == len(B):
print("APPROVED")
else:
print("DENIED")
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,054
| 569,055
|
u562015767
|
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:
continue
else:
print("DENIED")
quit()
print("APROVED")
|
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:
continue
else:
print("DENIED")
quit()
print("APPROVED")
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,056
| 569,057
|
u562015767
|
python
|
p02772
|
def k(x):
x=int(x)
if x%2==0 and (x%3==0 or x%5==0):
return 1
return 1
n=int(input());l=list(map(k,input().split()))
if sum(l)==n:
print("APPROVED")
else:
print("DENIED")
|
def k(x):
x=int(x)
if x%2==0:
if (x%3==0 or x%5==0):
return 1
return 0
return 1
n=int(input());l=list(map(k,input().split()))
if sum(l)==n:
print("APPROVED")
else:
print("DENIED")
|
[
"control_flow.branch.if.condition.change",
"control_flow.return.add"
] | 569,067
| 569,068
|
u914802579
|
python
|
p02772
|
N = int(input())
A = list(map(int, input().split()))
f = True
for a in A:
if (a&1)==0 and ((a%3==0) or (a%5==0)):
pass
else:
f = False
if f:
print("APPROVED")
else:
print("DENIED")
|
N = int(input())
A = list(map(int, input().split()))
f = True
for a in A:
if (a&1)==0:
if ((a%3==0) or (a%5==0)):
pass
else:
f = False
if f:
print("APPROVED")
else:
print("DENIED")
|
[
"control_flow.branch.if.condition.change"
] | 569,070
| 569,071
|
u528720841
|
python
|
p02772
|
N = int(input())
X = map(int,input().split())
def check():
for i in range(N):
if(i%2 == 0):
if(i%3 == 0 & i%5 == 0):
continue
else:
print("DENIED")
return 0
else:
continue
print("APPROVED")
check()
|
N = int(input())
X = map(int,input().split())
def check():
for i in X:
if(i%2 == 0):
if(i%3 == 0 or i%5 == 0):
continue
else:
print("DENIED")
return 0
else:
continue
print("APPROVED")
check()
|
[
"control_flow.loop.range.bounds.upper.change",
"call.arguments.change",
"control_flow.branch.if.condition.change"
] | 569,072
| 569,073
|
u803865203
|
python
|
p02772
|
N = int(input())
a_list = [int(x) for x in input().split(' ')]
a_list = list(filter(lambda x:x%2 == 0 and (x%3 != 0 and x%5 != 0), a_list))
print(a_list)
if not a_list:
print('APPROVED')
else:
print('DENIED')
|
N = int(input())
a_list = [int(x) for x in input().split(' ')]
a_list = list(filter(lambda x:x%2 == 0 and (x%3 != 0 and x%5 != 0), a_list))
if not a_list:
print('APPROVED')
else:
print('DENIED')
|
[
"call.remove"
] | 569,074
| 569,075
|
u707659359
|
python
|
p02772
|
import sys
n = int(input())
a = list(map(int,input().split()))
a_even = [i for i in a if i%2==0]
# print(a_even)
for x in a_even:
if x%3==0 or x%5==0:
pass
else:
print('DENIED')
print(x)
sys.exit()
print('APPROVED')
|
import sys
n = int(input())
a = list(map(int,input().split()))
a_even = [i for i in a if i%2==0]
# print(a_even)
for x in a_even:
if x%3==0 or x%5==0:
pass
else:
print('DENIED')
# print(x)
sys.exit()
print('APPROVED')
|
[
"call.remove"
] | 569,082
| 569,083
|
u957180869
|
python
|
p02772
|
N = int(input())
A = list(map(int, input().split()))
ans = "APPROVED"
for a in A:
if (a % 2 == 0) and (a & 3 != 0) and (a % 5 != 0):
ans = "DENIED"
break
print(ans)
|
N = int(input())
A = list(map(int, input().split()))
ans = "APPROVED"
for a in A:
if (a % 2 == 0) and (a % 3 != 0) and (a % 5 != 0):
ans = "DENIED"
break
print(ans)
|
[
"control_flow.branch.if.condition.change"
] | 569,086
| 569,087
|
u732870425
|
python
|
p02772
|
import sys; sys.setrecursionlimit(2147483647); input = sys.stdin.readline
from math import floor, ceil, sqrt, factorial, log
from collections import Counter, defaultdict
from operator import itemgetter
INF = float('inf'); MOD = 10**9+7
def I(): return int(input())
def MI(): return map(int,input().split())
def LI(): return list(MI())
def LIR(n): return [LI() for i in range(n)]
def S(): return input().rstrip()
def main():
N = I(); A = LI(); judge=True
for i in A:
if A%2==0:
if A%3!=0 or A%5!=0:
judge=False
if judge:
print('APPROVED')
else:
print('DENIED')
if __name__ == '__main__':
main()
|
import sys; sys.setrecursionlimit(2147483647); input = sys.stdin.readline
from math import floor, ceil, sqrt, factorial, log
from collections import Counter, defaultdict
from operator import itemgetter
INF = float('inf'); MOD = 10**9+7
def I(): return int(input())
def MI(): return map(int,input().split())
def LI(): return list(MI())
def LIR(n): return [LI() for i in range(n)]
def S(): return input().rstrip()
def main():
N = I(); A = LI(); judge=True
for i in A:
if i%2==0:
if i%3!=0 and i%5!=0:
judge=False
if judge:
print('APPROVED')
else:
print('DENIED')
if __name__ == '__main__':
main()
|
[
"identifier.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 569,088
| 569,089
|
u669729085
|
python
|
p02772
|
N = int(input())
A = list(map(int, input().split()))
flag = True
for i in range(N):
if A[i]%2 == 0:
if A[i]%3 != 0 and A[i]%5 != 0:
frag = False
if flag:
print('APPROVED')
else:
print('DENIED')
|
N = int(input())
A = list(map(int, input().split()))
flag = True
for i in range(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')
|
[
"assignment.variable.change",
"identifier.change"
] | 569,092
| 569,093
|
u109396127
|
python
|
p02772
|
N = int(input())
nums = [int(x) for x in input().split()]
approved = True
for num in nums:
if (num%2==0):
if (num%3!=0 and num%5!=0):
approved = False
print(num)
break
if(approved):
print("APPROVED")
else:
print("DENIED")
|
N = int(input())
nums = [int(x) for x in input().split()]
approved = True
for num in nums:
if (num%2==0):
if (num%3!=0 and num%5!=0):
approved = False
break
if(approved):
print("APPROVED")
else:
print("DENIED")
|
[
"call.remove"
] | 569,094
| 569,095
|
u725235898
|
python
|
p02772
|
a=int(input())
b=list(map(int,input().split()))
count=0
for i in range (a):
if b[i]%2==0 and b[i]%3!=0 and b[i]%5!=0:
count=0
else:count=1
if count==1:print("APPROVED")
else: print("DENIED")
|
a=int(input())
b=list(map(int,input().split()))
count=0
for i in range (a):
if b[i]%2==0 and b[i]%3!=0 and b[i]%5!=0:
count=0
break
else:count=1
if count==1:
print("APPROVED")
else: print("DENIED")
|
[
"control_flow.break.add"
] | 569,096
| 569,097
|
u244786566
|
python
|
p02772
|
def f(n: int) -> bool:
if n % 2 == 0:
if n % 3 == 0 or n % 5 == 0:
return True
else:
return False
else:
return True
N = int(input())
A = list(map(int, input().split()))
if all(map(f, A)):
print("APPROVED")
else:
print("DINED")
|
def f(n: int) -> bool:
if n % 2 == 0:
if n % 3 == 0 or n % 5 == 0:
return True
else:
return False
else:
return True
N = int(input())
A = list(map(int, input().split()))
if all(map(f, A)):
print("APPROVED")
else:
print("DENIED")
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,098
| 569,099
|
u663767599
|
python
|
p02772
|
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 3 23:44:02 2020
@author: Kanaru Sato
"""
N=int(input())
A = list(map(int, input().split()))
deny = 0
for i in range(0,N):
if A[i]%2 == 0 and (A[i]%3 != 0 and A[i]%5 != 0):
deny = 1
if deny == 1:
print("DENIED")
else:
print("APRROVED")
|
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 3 23:44:02 2020
@author: Kanaru Sato
"""
N=int(input())
A = list(map(int, input().split()))
deny = 0
for i in range(0,N):
if A[i]%2 == 0 and (A[i]%3 != 0 and A[i]%5 != 0):
deny = 1
if deny == 1:
print("DENIED")
else:
print("APPROVED")
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,102
| 569,103
|
u674052742
|
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:
continue
else:
print("DENIED")
break
else:
continue
print("APPROVED")
|
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:
continue
else:
print("DENIED")
exit()
else:
continue
print("APPROVED")
|
[
"control_flow.break.remove",
"control_flow.exit.add",
"call.add"
] | 569,110
| 569,111
|
u923270446
|
python
|
p02772
|
N = int(input())
A = list (map(int, input().split()))
m = len(A)
X = "APPROVED"
for i in range(0, m-1):
if (A[i] % 2) == 0:
if (A[i] % 3) != 0:
if (A[i] % 5) != 0:
X = "DENIED"
print(X)
|
N = int(input())
A = list (map(int, input().split()))
m = len(A)
X = "APPROVED"
for i in range(0, m):
if (A[i] % 2) == 0:
if (A[i] % 3) != 0:
if (A[i] % 5) != 0:
X = "DENIED"
print(X)
|
[
"expression.operation.binary.remove"
] | 569,126
| 569,127
|
u042497514
|
python
|
p02772
|
N = int(input())
A = list(map(int,input().split()))
A_even =list()
for i in range(len(A)):
if A[i] % 2 == 0:
A_even.append(A[i])
miss = True
for i in range(len(A_even)):
if A_even[i]%3 == 0 or A_even[i]%5 == 0:
pass
else:
miss = False
break
if miss:
print("DENIED")
else:
print("APPROVED")
|
N = int(input())
A = list(map(int,input().split()))
A_even =list()
for i in range(len(A)):
if A[i] % 2 == 0:
A_even.append(A[i])
miss = True
for i in range(len(A_even)):
if A_even[i]%3 == 0 or A_even[i]%5 == 0:
pass
else:
miss = False
break
if miss:
print("APPROVED")
else:
print("DENIED")
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,136
| 569,137
|
u297103202
|
python
|
p02772
|
n=int(input())
l=list(map(int,input().split()))
for i in l:
if i%2==0 and i%3!=0 and i%5==0:
print("DENIED")
exit()
print("APPROVED")
|
n=int(input())
l=list(map(int,input().split()))
for i in l:
if i%2==0 and i%3!=0 and i%5!=0:
print("DENIED")
exit()
print("APPROVED")
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 569,146
| 569,147
|
u927534107
|
python
|
p02772
|
n=int(input())
l=list(map(int,input().split()))
for i in l:
if i%2==0 and i%3!=0 or i%5==0:
print("DENIED")
exit()
print("APPROVED")
|
n=int(input())
l=list(map(int,input().split()))
for i in l:
if i%2==0 and i%3!=0 and i%5!=0:
print("DENIED")
exit()
print("APPROVED")
|
[
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 569,148
| 569,147
|
u927534107
|
python
|
p02772
|
import numpy as np
N = int(input())
l = list(map(int,input().split()))
a = np.array(l)
count = 0
for i in range(len(a)):
if a[i]%2 == 0:
if a[i]%3 == 0 or a[i]%5== 0:
count += 1
if count:
print("DENIED")
else:
print("APPROVED")
|
import numpy as np
N = int(input())
l = list(map(int,input().split()))
a = np.array(l)
count = 0
for i in range(len(a)):
if a[i]%2 == 0:
if a[i]%3 != 0 and a[i]%5 != 0:
count += 1
if count:
print("DENIED")
else:
print("APPROVED")
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 569,156
| 569,155
|
u825587043
|
python
|
p02772
|
N = int(input())
A = input().split()
A = [int(i) for i in A]
t = 0
for i in range(N-1):
if A[i] % 2 == 0:
if A[i]%3 != 0 and A[i]%5 != 0:
t += 1
else:continue
else:continue
if t == 0:
print("APPROVED")
else:
print("DENIED")
|
N = int(input())
A = input().split()
A = [int(i) for i in A]
t = 0
for i in range(N):
if A[i] % 2 == 0:
if A[i]%3 != 0 and A[i]%5 != 0:
t += 1
else:continue
else:continue
if t == 0:
print("APPROVED")
else:
print("DENIED")
|
[
"expression.operation.binary.remove"
] | 569,157
| 569,158
|
u657329920
|
python
|
p02772
|
# -*- coding: utf-8 -*-
n = input() # 2 ~ 99
an = [int(x.strip()) for x in input().split(' ')]
count = 0
check = 0
for i in an:
if i % 2 == 0:
check += 1
if i % 3 == 0 or i % 5 == 0:
count += 1
if count >= 1 or check == 0:
print('APPROVED')
else:
print('DENIED')
|
# -*- coding: utf-8 -*-
n = input() # 2 ~ 99
an = [int(x.strip()) for x in input().split(' ')]
count = 0
check = 0
for i in an:
if i % 2 == 0:
check += 1
if i % 3 == 0 or i % 5 == 0:
count += 1
if count == check or check == 0:
print('APPROVED')
else:
print('DENIED')
|
[] | 569,168
| 569,169
|
u321096814
|
python
|
p02772
|
# -*- coding: utf-8 -*-
n = input() # 2 ~ 99
an = [int(x.strip()) for x in input().split(' ')]
count = 0
check = 0
for i in an:
if i % 2 == 0:
check += 1
if i % 3 == 0 or i % 5 == 0:
count += 1
break
if count >= 1 or check == 0:
print('APPROVED')
else:
print('DENIED')
|
# -*- coding: utf-8 -*-
n = input() # 2 ~ 99
an = [int(x.strip()) for x in input().split(' ')]
count = 0
check = 0
for i in an:
if i % 2 == 0:
check += 1
if i % 3 == 0 or i % 5 == 0:
count += 1
if count == check or check == 0:
print('APPROVED')
else:
print('DENIED')
|
[
"control_flow.break.remove"
] | 569,170
| 569,169
|
u321096814
|
python
|
p02772
|
a = input()
b = list(map(int,input().split()))
listdir = []
for i in b:
if i % 2 == 0:
if i % 3 == 0 or i % 5 == 0:
listdir.append(i)
if len(listdir) >= 1:
print("APPROVED")
else:
print("DENIED")
|
a = input()
b = list(map(int,input().split()))
listdir = []
for i in b:
if i % 2 == 0:
if i % 3 != 0 and i % 5 != 0:
listdir.append(i)
if len(listdir) >= 1:
print("DENIED")
else:
print("APPROVED")
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,175
| 569,176
|
u981864683
|
python
|
p02772
|
N = int(input())
A = list(map(int,input().split()))
B=[]
for i in range(N):
if A[i]%2==1:
B.append(0)
elif A[i]%3==0:
B.append(0)
elif A[i]%5==0:
B.append(0)
else:
B.append(1)
T = sum(B)
print(T)
if T==0:
print("APPROVED")
else:
print("DENIED")
|
N = int(input())
A = list(map(int,input().split()))
B=[]
for i in range(N):
if A[i]%2==1:
B.append(0)
elif A[i]%3==0:
B.append(0)
elif A[i]%5==0:
B.append(0)
else:
B.append(1)
T = sum(B)
if T==0:
print("APPROVED")
else:
print("DENIED")
|
[
"call.remove"
] | 569,181
| 569,182
|
u111652094
|
python
|
p02772
|
n=int(input())
flag=0
a=list(map(int,input().split()))
for i in range(n):
if(a[i]%2==0):
if(a[i]%3!=0 & a[i]%5!=0):
flag=1
if(flag==0):
print("APPROVED")
else:
print("DENIED")
|
n=int(input())
flag=0
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):
flag=1
if(flag==1):
print("DENIED")
else:
print("APPROVED")
|
[
"control_flow.branch.if.condition.change",
"literal.number.integer.change",
"call.remove",
"call.add"
] | 569,189
| 569,190
|
u456823367
|
python
|
p02772
|
n = int(input())
list = input().split()
flg=True
for i in list :
i = int(i)
if i%2==0 and (i%3!=0 or i%5!=0):
flg=False
if flg:
print("APPROVED")
else:
print("DENIED")
|
n = int(input())
list = input().split()
flg=True
for i in list :
i = int(i)
if i%2==0 and not(i%3==0 or i%5==0):
flg=False
if flg:
print("APPROVED")
else:
print("DENIED")
|
[
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 569,191
| 569,192
|
u025331334
|
python
|
p02772
|
n = int(input())
list = input().split()
flg=True
for i in list :
i = int(i)
if i%2!=0 and (i%3!=0 or i%5!=0):
flg=False
if flg:
print("APPROVED")
else:
print("DENIED")
|
n = int(input())
list = input().split()
flg=True
for i in list :
i = int(i)
if i%2==0 and not(i%3==0 or i%5==0):
flg=False
if flg:
print("APPROVED")
else:
print("DENIED")
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 569,193
| 569,192
|
u025331334
|
python
|
p02772
|
n = int(input())
lst = list(map(int,input().split()))
flg = True
for i in range(n):
if lst[i]%2!=0:
continue
if lst[i]%3!=0 or lst[i]%5!=0:
flg = False
break
print('APPROVED' if flg else 'DENIED')
|
n = int(input())
lst = list(map(int,input().split()))
flg = True
for i in range(n):
if lst[i]%2!=0:
continue
if lst[i]%3==0 or lst[i]%5==0:
continue
else:
flg=False
break
print('APPROVED' if flg else 'DENIED')
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.continue.add"
] | 569,196
| 569,197
|
u672475305
|
python
|
p02772
|
n = int(input())
inp = input().split()
def check(n, inp):
for i in range(n):
num = int(inp[i])
if ((num%2) == 0):
if ((num%3) == 0):
break
if ((num%5) == 0):
break
return 1
return 0
judge = check(n, inp)
if judge ==1:
print("DENIED")
else:
print("APPROVED")
|
n = int(input())
inp = input().split()
def check(n, inp):
for i in range(n):
num = int(inp[i])
if ((num%2) == 0):
if ((num%3) != 0) and ((num%5) != 0):
return 1
return 0
judge = check(n, inp)
if judge ==1:
print("DENIED")
else:
print("APPROVED")
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.break.remove"
] | 569,198
| 569,199
|
u726444300
|
python
|
p02772
|
n=int(input())
check=list(map(int,input().split()))
f=0
for i in range(n):
if check[i]%2==0:
if check[i]%3!=0 or check[i]%5!=0:
f=1
if f==1:
print("DENIED")
else:
print("APPROVED")
|
n=int(input())
check=list(map(int,input().split()))
f=0
for i in range(n):
if check[i]%2==0:
if check[i]%3!=0 and check[i]%5!=0:
f=1
if f==1:
print("DENIED")
else:
print("APPROVED")
|
[
"control_flow.branch.if.condition.change"
] | 569,215
| 569,216
|
u071361440
|
python
|
p02772
|
n=int(input())
check=list(map(int,input().split()))
f=0
for i in range(n):
if check[i]%2==0:
if check[i]%3==0 or check[i]%5==0:
f=1
if f==1:
print("APPROVED")
else:
print("DENIED")
|
n=int(input())
check=list(map(int,input().split()))
f=0
for i in range(n):
if check[i]%2==0:
if check[i]%3!=0 and check[i]%5!=0:
f=1
if f==1:
print("DENIED")
else:
print("APPROVED")
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,217
| 569,216
|
u071361440
|
python
|
p02772
|
N = int(input().split())
A = list(map(int, input(),split()))
for a in A:
if a % 2 == 0:
if a % 3 != 0 and a % 5 != 0:
print('DENIED')
exit()
print('APPROVED')
|
N = int(input())
A = list(map(int, input().split()))
for a in A:
if a % 2 == 0:
if a % 3 != 0 and a % 5 != 0:
print('DENIED')
exit()
print('APPROVED')
|
[
"assignment.value.change",
"call.arguments.change"
] | 569,234
| 569,235
|
u500297289
|
python
|
p02772
|
n=int(input())
l=list(map(int,input().split()))
f=1
for i in range(n):
if not l[i]%2:
if l[i]%3 or l[i]%5 :
f=0
break
if f:
print("APPROVED")
else:
print("DENIED")
|
n=int(input())
l=list(map(int,input().split()))
f=1
for i in range(n):
if l[i]%2==0:
if l[i]%3 and l[i]%5 :
f=0
break
if f:
print("APPROVED")
else:
print("DENIED")
|
[
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 569,240
| 569,241
|
u995109095
|
python
|
p02772
|
N = int(input())
A = list(map(int, input().split()))
n=0
for i in range(N):
a=A[i]
if a%2==0 and (a%3!=0 or a%5!=0):
n+=1
if n==0:
print("APPROVED")
else:
print("DENIED")
|
N = int(input())
A = list(map(int, input().split()))
n=0
for i in range(N):
a=A[i]
if a%2==0 and a%3!=0:
if a%5!=0:
n+=1
if n==0:
print("APPROVED")
else:
print("DENIED")
|
[
"control_flow.branch.if.condition.change"
] | 569,252
| 569,253
|
u938892722
|
python
|
p02772
|
n = int(input())
a = list(map(int, input().split()))
for x in a:
if x % 2 == 0:
if x % 3 == 0 and x % 5 == 0:
print('APPROVED')
exit()
print('DENIED')
|
n = int(input())
a = list(map(int, input().split()))
for x in a:
if x % 2 == 0:
if x % 3 != 0 and x % 5 != 0:
print('DENIED')
exit()
print('APPROVED')
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,254
| 569,255
|
u718706790
|
python
|
p02772
|
def solve(n, a):
for i in range(n):
if a[i] % 2 == 0:
if not 0 in [a[i] % 3, a[i] % 5]:
return "DEFINED"
return "APPROVED"
n = int(input())
a = list(map(int, input().split()))
print(solve(n, a))
|
def solve(n, a):
for i in range(n):
if a[i] % 2 == 0:
if not 0 in [a[i] % 3, a[i] % 5]:
return "DENIED"
return "APPROVED"
n = int(input())
a = list(map(int, input().split()))
print(solve(n, a))
|
[
"literal.string.change",
"function.return_value.change"
] | 569,260
| 569,261
|
u879309973
|
python
|
p02772
|
n = int(input())
l = list(map(int, input().split()))
cnt = 0
for i in range(n):
if l[i] % 2 == 0:
if l[i] % 3 == 0:
cnt += 1
elif l[i] % 5 == 0:
cnt += 1
else:
print("DENIED")
print("APPROVED")
|
n = int(input())
l = list(map(int, input().split()))
cnt = 0
for i in range(n):
if l[i] % 2 == 0:
if l[i] % 3 == 0:
cnt += 1
elif l[i] % 5 == 0:
cnt += 1
else:
print("DENIED")
quit()
print("APPROVED")
|
[
"call.add"
] | 569,262
| 569,263
|
u495440415
|
python
|
p02772
|
def solve():
N = int(input())
A = list(map(int,input().split()))
for i in range(N):
if A[i] % 2 == 0:
if A[i] % 3 == 0 or A[i] % 5 == 0:
print('APPROVED')
exit()
print('DENIED')
if __name__ == '__main__':
solve()
|
def solve():
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')
exit()
print('APPROVED')
if __name__ == '__main__':
solve()
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,273
| 569,274
|
u741004615
|
python
|
p02772
|
n = int(input())
a = list(map(int, input().split()))
for x in a:
if x % 2 == 0 and x % 3 != 0 and x % 5 != 0:
print('DENIED')
print('APPROVED')
|
n = int(input())
a = list(map(int, input().split()))
for x in a:
if x % 2 == 0 and x % 3 != 0 and x % 5 != 0:
print('DENIED')
exit()
print('APPROVED')
|
[
"call.add"
] | 569,279
| 569,280
|
u934868410
|
python
|
p02772
|
N = input()
a = list(map(int,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
break
if b == 0:
print("APPROVED")
else:
print("DENIED")
|
N = int(input())
a = list(map(int,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
break
if b == 0:
print("APPROVED")
else:
print("DENIED")
|
[
"call.add",
"call.arguments.change"
] | 569,288
| 569,286
|
u566297428
|
python
|
p02772
|
n = int(input())
A = list(int(x) for x in input().split())
text = 'APPROVED'
for count in A:
if(count % 2 == 0):
if(not(count % 3 == 0 or count % 5 == 0)):
text = 'DENYED'
break
print(text)
|
n = int(input())
A = list(int(x) for x in input().split())
text = 'APPROVED'
for count in A:
if(count % 2 == 0):
if(not(count % 3 == 0 or count % 5 == 0)):
text = 'DENIED'
break
print(text)
|
[
"literal.string.change",
"assignment.value.change"
] | 569,298
| 569,299
|
u307622233
|
python
|
p02772
|
N = input()
numList = input().split(' ')
print(numList)
for num in numList:
num = int(num)
if num % 2 == 0:
judge1 = num % 3 == 0
judge2 = num % 5 == 0
approve = judge1 or judge2
if not approve:
print('DENIED')
exit()
print('APPROVED')
|
N = input()
numList = input().split(' ')
for num in numList:
num = int(num)
if num % 2 == 0:
judge1 = num % 3 == 0
judge2 = num % 5 == 0
approve = judge1 or judge2
if not approve:
print('DENIED')
exit()
print('APPROVED')
|
[
"call.remove"
] | 569,300
| 569,301
|
u437723389
|
python
|
p02772
|
n = input()
list = [int(i) for i in input().split()]
for i in range(n):
if list[i] %2 == 0:
if list[i]%3 == 0 or list[i] %5 == 0:
continue
else:
print("DENIED")
break
else:
print("APPROVED")
|
n = int(input())
list = [int(i) for i in input().split()]
for i in range(n):
if list[i] %2 == 0:
if list[i]%3 == 0 or list[i] %5 == 0:
continue
else:
print("DENIED")
break
else:
print("APPROVED")
|
[
"call.add",
"call.arguments.change"
] | 569,302
| 569,303
|
u521266908
|
python
|
p02772
|
N = int(input())
A = list(map(int,input().split()))
c = 0
for i in range(N):
if A[i] % 2 == 0:
if A[i] %3 != 0 :
if A[i] %5 != 0:
c = 1
break
if c == 0:
print(APPROVED)
else:
print(DENIED)
|
N = int(input())
A = list(map(int,input().split()))
c = 0
for i in range(N):
if A[i] % 2 == 0:
if A[i] %3 != 0 :
if A[i] %5 != 0:
c = 1
break
if c == 0:
print("APPROVED")
else:
print("DENIED")
|
[
"call.arguments.change"
] | 569,304
| 569,305
|
u201387466
|
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
else:
flag = 0
break
if flag == 1:
print('APPROVED')
else:
print('DENIED')
|
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
break
if flag == 0:
print('APPROVED')
else:
print('DENIED')
|
[
"literal.number.integer.change",
"assignment.value.change",
"control_flow.branch.if.condition.change"
] | 569,312
| 569,313
|
u843612833
|
python
|
p02772
|
n=int(input())
a=list(map(int,input().split()))
s=0
for i in range(n):
if a[i]%2==0 and a[i]%3!=0 and a[i]%5!=0:
s=s+1
if s==0:
print('APPROVED')
else:
print('DENID')
|
n=int(input())
a=list(map(int,input().split()))
s=0
for i in range(n):
if a[i]%2==0 and a[i]%3!=0 and a[i]%5!=0:
s=s+1
if s==0:
print('APPROVED')
else:
print('DENIED')
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,314
| 569,315
|
u588558668
|
python
|
p02772
|
N = int(input())
A = list(map(int,input().split()))
ans = 'APPROVED'
for a in A:
if a % 2 == 0:
if a % 3 != 0 or a % 5 != 0:
ans = 'DENIED'
exit()
print(ans)
|
N = int(input())
A = list(map(int,input().split()))
ans = 'APPROVED'
for a in A:
if a % 2 == 0:
if a % 3 != 0 and a % 5 != 0:
ans = 'DENIED'
break
print(ans)
|
[
"control_flow.branch.if.condition.change",
"control_flow.exit.remove",
"control_flow.break.add",
"call.arguments.change"
] | 569,319
| 569,320
|
u059684599
|
python
|
p02772
|
N = int(input())
A = list(map(int,input().split()))
ans = 'APPROVED'
for a in A:
if a % 2 == 0:
if a % 3 != 0 and a % 5 != 0:
ans = 'DENIED'
exit()
print(ans)
|
N = int(input())
A = list(map(int,input().split()))
ans = 'APPROVED'
for a in A:
if a % 2 == 0:
if a % 3 != 0 and a % 5 != 0:
ans = 'DENIED'
break
print(ans)
|
[
"control_flow.exit.remove",
"control_flow.break.add",
"call.arguments.change"
] | 569,321
| 569,320
|
u059684599
|
python
|
p02772
|
n = int(input())
a = list(map(int, input().split()))
for x in a:
if x%2 == 0:
if x%3 == 0 and x%5 == 0:
print("DENIED")
break
else:
print("APPROVED")
|
n = int(input())
a = list(map(int, input().split()))
for x in a:
if x%2 == 0:
if x%3 and x%5 :
print("DENIED")
break
else:
print("APPROVED")
|
[
"control_flow.loop.for.condition.change"
] | 569,322
| 569,323
|
u467307100
|
python
|
p02772
|
import numpy as np
n = int(input())
arrA = np.array(input().split(),dtype=np.int64)
filter = (arrA % 2 == 0)
if len(arrA[filter])==0:
ans == "APPROVED"
else:
for i in arrA[filter]:
if i%3==0 or i%5==0:
ans = "APPROVED"
else:
ans = "DENIED"
break
# APPROVED or DENIED
print(ans)
|
import numpy as np
n = int(input())
arrA = np.array(input().split(),dtype=np.int64)
filter = (arrA % 2 == 0)
if len(arrA[filter])==0:
ans = "APPROVED"
else:
for i in arrA[filter]:
if i%3==0 or i%5==0:
ans = "APPROVED"
else:
ans = "DENIED"
break
# APPROVED or DENIED
print(ans)
|
[
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 569,326
| 569,327
|
u114641312
|
python
|
p02772
|
N = int(input())
A = list(map(int, input().split()))
fl = True
for i in A:
if i&1:
continue
else:
if i%3!=0 or i%5!=0:
fl = False
break
print('APPROVED') if fl else print('DENIED')
|
N = int(input())
A = list(map(int, input().split()))
fl = True
for i in A:
if i&1:
continue
else:
if i%3!=0 and i%5!=0:
fl = False
break
print('APPROVED') if fl else print('DENIED')
|
[
"control_flow.branch.if.condition.change"
] | 569,328
| 569,329
|
u273010357
|
python
|
p02772
|
N=int(input())
A=input().split()
for i in range(N):
if int(A[i])%2==0:
if int(A[i])%5==0 or int(A[i])%3==0:
x+=1
else:
x+=1
if x==N:
print('APPROVED')
else:
print('DENIED')
|
N=int(input())
A=input().split()
x=0
for i in range(N):
if int(A[i])%2==0:
if int(A[i])%5==0 or int(A[i])%3==0:
x+=1
else:
x+=1
if x==N:
print('APPROVED')
else:
print('DENIED')
|
[
"assignment.add"
] | 569,337
| 569,338
|
u089504174
|
python
|
p02772
|
N=int(input())
A=input().split
for i in range(N):
if int(A[i])%2==0:
if int(A[i])%5==0 or int(A[i])%3==0:
x+=1
else:
x+=1
if x==N:
print('APPROVED')
else:
print('DENIED')
|
N=int(input())
A=input().split()
x=0
for i in range(N):
if int(A[i])%2==0:
if int(A[i])%5==0 or int(A[i])%3==0:
x+=1
else:
x+=1
if x==N:
print('APPROVED')
else:
print('DENIED')
|
[
"call.add"
] | 569,339
| 569,338
|
u089504174
|
python
|
p02772
|
N = int(input())#.split()
A = input().split()
den = False
for i in range(N):
if int(A[i]) % 2 == 0:
if int(A[i]) % 3 != 0 and int(A[i]) % 5 != 0:
print("DENIED")
den = True
if not den:
print("APPROVED")
|
N = int(input())#.split()
A = input().split()
den = False
for i in range(N):
if int(A[i]) % 2 == 0:
if int(A[i]) % 3 != 0 and int(A[i]) % 5 != 0:
print("DENIED")
exit(0)
den = True
if not den:
print("APPROVED")
|
[
"call.add"
] | 569,340
| 569,341
|
u813125722
|
python
|
p02772
|
n=int(input())
a=[int(x) for x in input().input()]
flg=0
for x in a:
if x%2==0 and x%3 and x%5:
flg=1
if flg:
print("DENIED")
else:
print("APPROVED")
|
n=int(input())
a=[int(x) for x in input().split()]
flg=0
for x in a:
if x%2==0 and x%3 and x%5:
flg=1
if flg:
print("DENIED")
else:
print("APPROVED")
|
[
"assignment.value.change",
"identifier.change"
] | 569,342
| 569,343
|
u393512980
|
python
|
p02772
|
import sys
n = int(input())
a = list(map(int,input().split()))
for i in range(0,n-1):
if a[i]%2 == 0:
if a[i]%3 != 0 and 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 != 0 and a[i]%5 != 0:
print("DENIED")
sys.exit()
print("APPROVED")
|
[
"call.arguments.change",
"expression.operation.binary.remove"
] | 569,344
| 569,345
|
u448720391
|
python
|
p02772
|
n = int(input())
a = list(map(int, input().split()))
app = True
for i in a:
if i % 2 == 0:
if i % 3 == 0 or i % 5 == 0:
continue
else:
print('DENIED')
app = False
if app == True:
print('APPROVED')
|
n = int(input())
a = list(map(int, input().split()))
app = True
for i in a:
if i % 2 == 0:
if i % 3 == 0 or i % 5 == 0:
continue
else:
print('DENIED')
app = False
break
if app == True:
print('APPROVED')
|
[
"control_flow.break.add"
] | 569,350
| 569,351
|
u639340617
|
python
|
p02772
|
_=int(input())
a=list(map(int,input().split()))
bool=True
for i in a:
if i%2==0:
if i%3==0 or i%5==0:
bool=False
if bool:
print("APPROVED")
else:
print("DENIED")
|
_=int(input())
a=list(map(int,input().split()))
bool=True
for i in a:
if i%2==0:
if i%3==0 or i%5==0:
pass
else:
bool=False
if bool:
print("APPROVED")
else:
print("DENIED")
|
[
"control_flow.pass.add"
] | 569,352
| 569,353
|
u639343026
|
python
|
p02772
|
n = int(input())
a = list(map(int,input().split()))
#6,10の倍数になれば良い
count = 0
ok_count = 0
for i in range(len(a)):
if a[i]%2 == 0:
count += 1
if a[i]%3 == 0 or a[i]%5 == 0 or a[i]%3 == 0 and a[i]%5 == 0:
ok_count += 1
if count == ok_count:
print('APPROVED')
else:
print('DENIED5')
|
n = int(input())
a = list(map(int,input().split()))
#6,10の倍数になれば良い
count = 0
ok_count = 0
for i in range(len(a)):
if a[i]%2 == 0:
count += 1
if a[i]%3 == 0 or a[i]%5 == 0 or a[i]%3 == 0 and a[i]%5 == 0:
ok_count += 1
if count == ok_count:
print('APPROVED')
else:
print('DENIED')
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,358
| 569,359
|
u991269553
|
python
|
p02772
|
n = int(input())
L = list(map(int,input().split()))
for i in range(n):
if L[i]%2 == 0:
if L[i]%3 == 0 or L[i]%5== 0:
continue
else:
print("DENIED")
exit()
print("APPROVRD")
|
n = int(input())
L = list(map(int,input().split()))
for i in range(n):
if L[i]%2 == 0:
if L[i]%3 == 0 or L[i]%5== 0:
continue
else:
print("DENIED")
exit()
print("APPROVED")
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,360
| 569,361
|
u252828980
|
python
|
p02772
|
N = int(input())
A = [int(i) for i in input().split()]
Frag = True
for i in range(N):
if A[i] % 2 == 1 or A[i] % 6 == 0 or A[i] % 10 == 0:
continue
else:
Frag == False
if Frag == True:
print("APPROVED")
else:
print("DENIED")
|
N = int(input())
A = [int(i) for i in input().split()]
Frag = True
for i in range(N):
if A[i] % 2 == 1 or A[i] % 6 == 0 or A[i] % 10 == 0:
pass
else:
Frag = False
if Frag == True:
print("APPROVED")
else:
print("DENIED")
|
[
"control_flow.continue.remove",
"control_flow.pass.add",
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 569,372
| 569,373
|
u281745878
|
python
|
p02772
|
n = int(input())
numbers = list(map(int, input().split(' ')))
approved = False
for num in numbers:
if (num % 2 == 0):
if (num % 3 == 0) or (num % 5 == 0):
approved = True
continue
else:
approved = False
print('DENIED')
break
if approved:
print('APPROVED')
|
n = int(input())
numbers = list(map(int, input().split(' ')))
approved = True
for num in numbers:
if (num % 2 == 0):
if (num % 3 == 0) or (num % 5 == 0):
approved = True
continue
else:
approved = False
print('DENIED')
break
if approved:
print('APPROVED')
|
[
"misc.opposites",
"assignment.value.change"
] | 569,384
| 569,385
|
u561935133
|
python
|
p02772
|
n = int(input())
numbers = list(map(int, input().split(' ')))
approved = False
for num in numbers:
if (num % 2 == 0) and ((num % 3 == 0) or (num % 5 == 0)):
approved = True
continue
else:
approved = False
print('DENIED')
break
if approved:
print('APPROVED')
|
n = int(input())
numbers = list(map(int, input().split(' ')))
approved = True
for num in numbers:
if (num % 2 == 0):
if (num % 3 == 0) or (num % 5 == 0):
approved = True
continue
else:
approved = False
print('DENIED')
break
if approved:
print('APPROVED')
|
[
"misc.opposites",
"assignment.value.change",
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 569,388
| 569,385
|
u561935133
|
python
|
p02772
|
N = input()
A = map(int, input().split())
for x in A:
if x%2==0&(x%3!=0 and x%5!=0):
print('DENIED')
exit()
print('APPROVED')
|
N = input()
A = map(int, input().split())
for x in A:
if x%2==0:
if x%3!=0 and x%5!=0:
print('DENIED')
exit()
print('APPROVED')
|
[
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 569,389
| 569,390
|
u632757234
|
python
|
p02772
|
N = int(input())
A = list(map(int,input().split()))
A= [i for i in A if i%2==0]
print(A)
if len( [j for j in A if not ((j%3==0)or(j%5==0))]) == 0:
print("APPROVED")
else:
print("DENIED")
|
N = int(input())
A = list(map(int,input().split()))
A= [i for i in A if i%2==0]
if len( [j for j in A if not ((j%3==0)or(j%5==0))]) == 0:
print("APPROVED")
else:
print("DENIED")
|
[
"call.remove"
] | 569,393
| 569,394
|
u614215819
|
python
|
p02772
|
N = int(input())
A = list(map(int,input().split()))
A= [i for i in A if i%2==0]
if len( [j for j in A if not ((j%3!=0)or(j%5!=0))]) == 0:
print("APPROVED")
else:
print("DENIED")
|
N = int(input())
A = list(map(int,input().split()))
A= [i for i in A if i%2==0]
if len( [j for j in A if not ((j%3==0)or(j%5==0))]) == 0:
print("APPROVED")
else:
print("DENIED")
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 569,395
| 569,394
|
u614215819
|
python
|
p02772
|
n = int(input())
nums = [int(i) for i in input().split(" ")]
approved = True
for num in nums:
if num%2 == 0:
approved = (num%3 == 0) or (num%5 == 0)
if approved:
print('APPROVED')
else:
print('DENIED')
|
n = int(input())
nums = [int(i) for i in input().split(" ")]
approved = True
for num in nums:
if num%2 == 0:
approved = approved & ((num%3 == 0) or (num%5 == 0))
if approved:
print('APPROVED')
else:
print('DENIED')
|
[
"assignment.change"
] | 569,400
| 569,401
|
u303739137
|
python
|
p02772
|
n = int(input())
nums = [int(i) for i in input().split(" ")]
approved = True
for num in nums:
if num%2 == 0:
approved = (num%3 == 0) & (num%5 == 0)
if approved:
print('APPROVED')
else:
print('DENIED')
|
n = int(input())
nums = [int(i) for i in input().split(" ")]
approved = True
for num in nums:
if num%2 == 0:
approved = approved & ((num%3 == 0) or (num%5 == 0))
if approved:
print('APPROVED')
else:
print('DENIED')
|
[
"assignment.value.change",
"expression.operation.binary.change"
] | 569,402
| 569,401
|
u303739137
|
python
|
p02772
|
N=int(input())
A=list(map(int,input().split()))
lis=[]
flag=1
for i in A:
if i%2==0:
lis.append(i)
for j in lis:
if j%3!=0 and j%5!=0:
flag=0
print("DENIED"if flag==0 else "APPROVE")
|
N=int(input())
A=list(map(int,input().split()))
lis=[]
flag=1
for i in A:
if i%2==0:
lis.append(i)
for j in lis:
if j%3!=0 and j%5!=0:
flag=0
print("DENIED"if flag==0 else "APPROVED")
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,414
| 569,415
|
u441320782
|
python
|
p02772
|
N=int(input())
A=list(map(int,input().split()))
lst=0
for i in range(N):
if A[i]%2==0:
if A[i]%3!=0 or A[i]%5!=0:
lst+=1
break
if lst==0:
print('DENIED')
else:
print('APPROVED')
|
N=int(input())
A=list(map(int,input().split()))
lst=0
for i in range(N):
if A[i]%2==0:
if A[i]%3!=0 and A[i]%5!=0:
lst+=1
break
if lst==1:
print('DENIED')
else:
print('APPROVED')
|
[
"control_flow.branch.if.condition.change",
"literal.number.integer.change"
] | 569,416
| 569,417
|
u460386402
|
python
|
p02772
|
def main():
ls = list(map(int, input().split(' ')))
for item in ls:
if item % 2 == 0:
if (item % 3) * (item % 5) != 0:
print('DENIED')
break
else:
print('APPROVED')
if __name__ == '__main__':
main()
|
def main():
n = input()
ls = list(map(int, input().split(' ')))
for item in ls:
if item % 2 == 0:
if (item % 3) * (item % 5) != 0:
print('DENIED')
break
else:
print('APPROVED')
if __name__ == '__main__':
main()
|
[
"assignment.add"
] | 569,418
| 569,419
|
u209426189
|
python
|
p02772
|
def check(number):
if number % 2 == 1:
return True
if number % 3 == 0 or number % 5 == 0:
return True
return False
array = list(map(int, input().split()))
flag = True
for num in array:
if check(num) is False:
flag = False
break
if flag:
print("APPROVED")
else:
print("DENIED")
|
def check(number):
if number % 2 == 1:
return True
if number % 3 == 0 or number % 5 == 0:
return True
return False
input()
array = list(map(int, input().split()))
flag = True
for num in array:
if check(num) is False:
flag = False
break
if flag:
print("APPROVED")
else:
print("DENIED")
|
[
"call.add"
] | 569,420
| 569,421
|
u974792613
|
python
|
p02772
|
def check(number):
if number % 2 == 1:
return True
if number % 3 == 0 and number % 5 == 0:
return True
return False
array = list(map(int, input().split()))
flag = True
for num in array:
if check(num) is False:
flag = False
break
if flag:
print("APPROVED")
else:
print("DENIED")
|
def check(number):
if number % 2 == 1:
return True
if number % 3 == 0 or number % 5 == 0:
return True
return False
input()
array = list(map(int, input().split()))
flag = True
for num in array:
if check(num) is False:
flag = False
break
if flag:
print("APPROVED")
else:
print("DENIED")
|
[
"control_flow.branch.if.condition.change",
"call.add"
] | 569,422
| 569,421
|
u974792613
|
python
|
p02772
|
#!/usr/bin/env python3
import numpy as np
stdin = open(0)
A = np.fromstring(stdin.read(),np.int64,sep= ' ')[1:]
A=A[A%2 ==0]
if np.all((A % 3 == 0)|(A % 5 ==0)):
print('APPROVED')
else:
print('DENITED')
|
#!/usr/bin/env python3
import numpy as np
stdin = open(0)
A = np.fromstring(stdin.read(),np.int64,sep= ' ')[1:]
A=A[A%2 ==0]
if np.all((A % 3 == 0)|(A % 5 ==0)):
print('APPROVED')
else:
print('DENIED')
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,428
| 569,429
|
u885494445
|
python
|
p02772
|
N = int(input())
arr = list(map(int, input().split()))
for x in arr:
if ((x % 2) == 0) and not (x % 3 + x % 5):
print("DENIED")
break
else:
print("APPROVED")
|
N = int(input())
arr = list(map(int, input().split()))
for x in arr:
if ((x % 2) == 0) and (x % 3 * x % 5):
print("DENIED")
break
else:
print("APPROVED")
|
[
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 569,434
| 569,435
|
u411302151
|
python
|
p02772
|
N = int(input())
arr = list(map(int, input().split()))
for x in arr:
if ((x % 2) == 0) and (x % 3 or x % 5):
print("DENIED")
break
else:
print("APPROVED")
|
N = int(input())
arr = list(map(int, input().split()))
for x in arr:
if ((x % 2) == 0) and (x % 3 * x % 5):
print("DENIED")
break
else:
print("APPROVED")
|
[
"control_flow.branch.if.condition.change"
] | 569,436
| 569,435
|
u411302151
|
python
|
p02772
|
from sys import exit
N = int(input())
A = tuple(map(int, input().split()))
for a in A:
if not a % 2 and a % 3 and a % 5:
print('DENIED')
exit()
print('ACCEPTED')
|
from sys import exit
N = int(input())
A = tuple(map(int, input().split()))
for a in A:
if not a % 2 and a % 3 and a % 5:
print('DENIED')
exit()
print('APPROVED')
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,449
| 569,450
|
u550061714
|
python
|
p02772
|
from sys import exit
N = int(input())
A = tuple(map(int, input().split()))
for a in A:
if a % 2 == 0:
if not(a % 3 != 0 or a % 5 != 0):
print('DENIED')
exit()
print('APPROVED')
|
from sys import exit
N = int(input())
A = tuple(map(int, input().split()))
for a in A:
if a % 2 == 0:
if not(a % 3 == 0 or a % 5 == 0):
print('DENIED')
exit()
print('APPROVED')
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 569,451
| 569,452
|
u550061714
|
python
|
p02772
|
import sys
def result():
input_first = input().split()
input_second = input().split()
N= input_first
paper = [int(i) for i in input_second]
for num in paper:
if num%2 ==0 and num%3!=0 or num %5 != 0:
print('DENIED')
return
print('APPROVED')
result()
|
import sys
def result():
input_first = input().split()
input_second = input().split()
N= input_first
paper = [int(i) for i in input_second]
for num in paper:
if num%2 ==0 and num%3!=0 and num %5 != 0:
print('DENIED')
return
print('APPROVED')
return
result()
|
[
"control_flow.branch.if.condition.change",
"control_flow.return.add"
] | 569,465
| 569,466
|
u558717347
|
python
|
p02772
|
n=int(input())
# s=input()
# a,b,c=map(int,input().split())
a=list(map(int,input().split()))
flg=False
for i in a:
if i%2==0:
if not (i%3==0 or i%5==0):
flg=False;break
else:
flg=True
if flg:
print("APPROVED")
else:
print("DENIED")
|
n=int(input())
# a,b,c=map(int,input().split())
a=list(map(int,input().split()))
flg=True
for i in a:
if i%2==0:
if not (i%3==0 or i%5==0):
flg=False;break
else:
flg=True
if flg:
print("APPROVED")
else:
print("DENIED")
|
[
"misc.opposites",
"assignment.value.change"
] | 569,471
| 569,472
|
u130900604
|
python
|
p02772
|
_,a=open(0);print('ADPEPNRIOEVDE D'[any(~a&a%3*a%5for a in map(int,a.split()))::2])
|
_,a=open(0);print('ADPEPNRIOEVDE D'[any(~a%2*a%3*a%5for a in map(int,a.split()))::2])
|
[
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 569,473
| 569,474
|
u729133443
|
python
|
p02772
|
N = int(input())
Ai = input()
Ai = Ai.split(' ')
ans = 'APPROVED'
for moji in Ai:
if moji % 2 != 0:
pass
else:
if (moji % 3 == 0) or (moji % 5 == 0):
pass
else:
ans = 'DENIED'
break
print(ans)
|
N = int(input())
Ai = input()
Ai = Ai.split(' ')
ans = 'APPROVED'
for moji in Ai:
moji = int(moji)
if moji % 2 != 0:
pass
else:
if (moji % 3 == 0) or (moji % 5 == 0):
pass
else:
ans = 'DENIED'
break
print(ans)
|
[
"assignment.add"
] | 569,475
| 569,476
|
u795928154
|
python
|
p02772
|
n = int(input())
a = list(map(int,input().split()))
count = 0
for i in range(n):
if a[i]%2 == 0:
if a[i]%3 == 0 or a[i]%5 == 0:
count += 1
else:
count -=200
print("APPROVED" if count >=1 else "DENIED")
|
n = int(input())
a = list(map(int,input().split()))
count = 0
for i in range(n):
if a[i]%2 == 0:
if a[i]%3 == 0 or a[i]%5 == 0:
count += 1
else:
count -=200
print("APPROVED" if count >=0 else "DENIED")
|
[
"literal.number.integer.change",
"call.arguments.change",
"io.output.change"
] | 569,477
| 569,478
|
u218707541
|
python
|
p02772
|
n = int(input())
a = list(map(int,input().split()))
count = 0
for i in range(n):
if a[i]%2 == 0:
if a[i]%3 == 0 or a[i]%5 == 0:
count += 1
else:
count -=110
print("APPROVED" if count >=1 else "DENIED")
|
n = int(input())
a = list(map(int,input().split()))
count = 0
for i in range(n):
if a[i]%2 == 0:
if a[i]%3 == 0 or a[i]%5 == 0:
count += 1
else:
count -=200
print("APPROVED" if count >=0 else "DENIED")
|
[
"literal.number.integer.change",
"call.arguments.change",
"io.output.change"
] | 569,479
| 569,478
|
u218707541
|
python
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.