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())
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:
... | 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")
... | [
"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:
... | 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")
... | [
"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
... | [
"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 |
p02772 | N=int(input())
A=list(map(int,input().split()))
l=[]
for i in range(N):
if A[i]%2==0:
l.append(A[i])
flag=True
for i in range(N):
if l[i]%3==0 or l[i]%5==0:
pass
else:
flag=False
if flag:
print("APPROVED")
else:
print("DENIED") | N=int(input())
A=list(map(int,input().split()))
l=[]
for i in range(N):
if A[i]%2==0:
l.append(A[i])
flag=True
for i in range(len(l)):
if l[i]%3==0 or l[i]%5==0:
pass
else:
flag=False
if flag:
print("APPROVED")
else:
print("DENIED") | [
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"call.arguments.add"
] | 569,488 | 569,489 | u434872492 | python |
p02772 | N = int(input())
A = [int(i) for i in input().split()]
ans = True
for a in A:
if a%2==0:
if a%3!=0 or a%5!=0:
ans = False
if ans:
print("APPROVED")
else:
print("DENIED")
| N = int(input())
A = [int(i) for i in input().split()]
ans = True
for a in A:
if a%2==0:
if a%3!=0 and a%5!=0:
ans = False
if ans:
print("APPROVED")
else:
print("DENIED") | [
"control_flow.branch.if.condition.change"
] | 569,490 | 569,491 | u957872856 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
ans = [True] * n
for i in range(n):
if a[i]%2==0:
a[i]%3!=0 and a[i]%5!=0
ans[i] = False
if all(ans):
print('APPROVED')
else:
print('DENIED')
| n = int(input())
a = list(map(int, input().split()))
ans = [True] * n
for i in range(n):
if a[i]%2==0:
if a[i]%3!=0 and a[i]%5!=0:
ans[i] = False
if all(ans):
print('APPROVED')
else:
print('DENIED') | [] | 569,501 | 569,502 | u469239325 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
ans = [True] * n
for i in range(n):
if a[i]%2==0:
a[i]%3!=0 and a[i]%5!=0
ans[i] = False
if ans:
print('APPROVED')
else:
print('DENIED') | n = int(input())
a = list(map(int, input().split()))
ans = [True] * n
for i in range(n):
if a[i]%2==0:
if a[i]%3!=0 and a[i]%5!=0:
ans[i] = False
if all(ans):
print('APPROVED')
else:
print('DENIED') | [
"control_flow.branch.if.condition.change",
"call.add"
] | 569,503 | 569,502 | u469239325 | python |
p02772 |
num = input()
a = input().split()
flag = 0
for item in a:
if item%2==0:
if item%3==0 or item%5==0:
pass
else:
flag=1
if flag==0:
print("APPROVED")
else:
print("DENIED") |
num = input()
a = input().split()
flag = 0
for item in a:
item=int(item)
if item%2==0:
if item%3==0 or item%5==0:
pass
else:
flag=1
if flag==0:
print("APPROVED")
else:
print("DENIED") | [
"assignment.add"
] | 569,504 | 569,505 | u957222656 | python |
p02772 | N = int(input())
AL = list(map(int, input().split()))
s = "APPROVED"
for i in AL:
if i%2 == 0 and i%3 != 0 and i%5 != 0:
s = DENIED
print(s) | N = int(input())
AL = list(map(int, input().split()))
s = "APPROVED"
for i in AL:
if i%2 == 0 and i%3 != 0 and i%5 != 0:
s = "DENIED"
print(s)
| [] | 569,508 | 569,509 | u779728630 | 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 or a[i]%5 != 0:
print('DENIED')
flag = False
break
if flag:
print('APPROVED') | 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:
print('DENIED')
flag = False
break
if flag:
print('APPROVED') | [
"control_flow.branch.if.condition.change"
] | 569,510 | 569,511 | u571444155 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
count = True
for i in range(n-1):
if a[i]%2 == 0:
if(a[i]%3 != 0 and a[i]%5 != 0):
count = False
break
if count:
print('APPROVED')
else:
print('DENIED') | n = int(input())
a = list(map(int, input().split()))
count = True
for i in range(n):
if a[i]%2 == 0:
if(a[i]%3 != 0 and a[i]%5 != 0):
count = False
break
if count:
print('APPROVED')
else:
print('DENIED') | [
"expression.operation.binary.remove"
] | 569,519 | 569,520 | u607074939 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
jud = True
for i in range(n-1):
if a[i]%2 == 0:
if(a[i]%3 != 0 and a[i]%5 != 0):
jud = False
break
if judge:
print('APPROVED')
else:
print('DENIED') | n = int(input())
a = list(map(int, input().split()))
count = True
for i in range(n):
if a[i]%2 == 0:
if(a[i]%3 != 0 and a[i]%5 != 0):
count = False
break
if count:
print('APPROVED')
else:
print('DENIED') | [
"assignment.variable.change",
"identifier.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 569,521 | 569,520 | u607074939 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
judge = True
for i in range(n-1):
if a[i]%2 == 0:
if(a[i]%3 != 0 and a[i]%5 != 0):
judge = False
break
if judge:
print('APPROVED')
else:
print('DENIED') | n = int(input())
a = list(map(int, input().split()))
count = True
for i in range(n):
if a[i]%2 == 0:
if(a[i]%3 != 0 and a[i]%5 != 0):
count = False
break
if count:
print('APPROVED')
else:
print('DENIED') | [
"assignment.variable.change",
"identifier.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 569,522 | 569,520 | u607074939 | python |
p02772 | input()
o = True
for i in map(int, input().split()):
if i % 2 == 0:
if i % 3 == 1 and i % 5 == 1:
o = False
if o is True:
print("APPROVED")
else:
print("DENIED") | input()
o = True
for i in map(int, input().split()):
if i % 2 == 0:
if not i % 3 == 0 and not i % 5 == 0:
o = False
if o is True:
print("APPROVED")
else:
print("DENIED") | [
"control_flow.branch.if.condition.change",
"literal.number.integer.change"
] | 569,527 | 569,528 | u559891647 | python |
p02772 | def main():
N=input()
A=list(map(int,input().split()))
for a in A:
if a%2==0 and (a%3!=0 or a%5!=0):
print("DENIED")
return
print("APPROVED")
main()
| def main():
N=input()
A=list(map(int,input().split()))
for a in A:
if a%2==0 and (a%3!=0 and a%5!=0):
print("DENIED")
return
print("APPROVED")
main()
| [
"control_flow.branch.if.condition.change"
] | 569,533 | 569,534 | u825378567 | python |
p02772 | n = int(input())
A = list(map(int,input().split()))
res = "APPROVED"
for a in A :
if a % 2 == 0 and (a % 3 == 0 or a % 5 == 0) :
res = "DENIED"
print(res)
| n = int(input())
A = list(map(int,input().split()))
res = "APPROVED"
for a in A :
if a % 2 == 0 :
if a % 3 == 0 or a % 5 == 0 :
continue
res = "DENIED"
break
print(res)
| [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change",
"control_flow.continue.add",
"control_flow.break.add"
] | 569,540 | 569,541 | u879870653 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
lst = []
flg = False
for i in range(len(a)):
if a[i] % 2 == 0:
lst.append(a[i])
for i in range(len(lst)):
if lst[i] % 2 == 0 and lst[i] % 3 == 0 or lst[i] % 5 == 0:
flg = True
else:
flg = False
break
if flg == True:
... | n = int(input())
a = list(map(int, input().split()))
lst = []
flg = True
for i in range(len(a)):
if a[i] % 2 == 0:
lst.append(a[i])
for i in range(len(lst)):
if lst[i] % 2 == 0 and lst[i] % 3 == 0 or lst[i] % 5 == 0:
flg = True
else:
flg = False
break
if flg == True:
... | [
"misc.opposites",
"assignment.value.change"
] | 569,554 | 569,555 | u755944418 | python |
p02772 | n = int(input())
a = list(map(int,input().split()))
flag = 0
for i in a:
if i % 2 == 0:
if i % 3 == 0 or 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 = 1
for i in a:
if i % 2 == 0:
if i % 3 == 0 or i % 5 == 0:
flag = 1
else:
flag = 0
break
if flag == 1:
print('APPROVED')
else:
print('DENIED')
| [
"literal.number.integer.change",
"assignment.value.change"
] | 569,558 | 569,559 | u045953894 | python |
p02772 | n = int(input())
a = list(map(int,input().split()))
flag = 0
for i in a:
if i % 2 == 0:
if i % 3 == 0 or 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 = 1
for i in a:
if i % 2 == 0:
if i % 3 == 0 or i % 5 == 0:
flag = 1
else:
flag = 0
break
if flag == 1:
print('APPROVED')
else:
print('DENIED')
| [
"literal.number.integer.change",
"assignment.value.change"
] | 569,560 | 569,559 | u045953894 | python |
p02772 | N = int(input())
li = list(map(int,input().split()))
even_li = [x for x in li if x%2 == 0]
ap = 0
for i in even_li:
if i % 3 == 0 or i % 5 == 0:
ap += 1
if even_li == []:
print("DENIED")
elif ap == len(even_li):
print("APPROVED")
else:
print("DENIED") | N = int(input())
li = list(map(int,input().split()))
even_li = [x for x in li if x%2 == 0]
ap = 0
for i in even_li:
if i % 3 == 0 or i % 5 == 0:
ap += 1
if even_li == []:
print("APPROVED")
elif ap == len(even_li):
print("APPROVED")
else:
print("DENIED") | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,571 | 569,572 | u734603233 | 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 and l[i]%5!=0:
print('DENIED')
break
elif i==n-1:
print('APPROVED') | n=int(input())
l=list(map(int,input().split()))
for i in range(n):
if l[i]%2==0:
if l[i]%3!=0 and l[i]%5!=0:
print('DENIED')
break
if i==n-1:
print('APPROVED') | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 569,582 | 569,583 | u857330600 | python |
p02772 | def main():
_ = int(input())
a = list(map(int, input().split()))
odds = []
for i in a:
if i % 2 == 0:
odds.append(i)
for i in odds:
if i % 3 != 0 and i % 5 != 0:
print("DENIED")
return
print("APPROVED")
def main1():
_ = int(input())
... | def main():
_ = int(input())
a = list(map(int, input().split()))
odds = []
for i in a:
if i % 2 == 0:
odds.append(i)
for i in odds:
if i % 3 != 0 and i % 5 != 0:
print("DENIED")
return
print("APPROVED")
def main1():
_ = int(input())
... | [
"call.add",
"call.arguments.change"
] | 569,593 | 569,594 | u585070471 | python |
p02772 | N=int(input())
A=list(map(int,input().split(' ')))
for i in A:
if i%2==0 and i%2!=0 and i%5==0:
print('DENIED')
exit()
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')
exit()
print('APPROVED') | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 569,602 | 569,603 | u474423089 | python |
p02772 | N=int(input())
A=list(map(int,input().split(' ')))
for i in A:
if i%2==0 and i%2!=0 and i%5==0:
print('DENIED')
exit()
print('APPROVE') | 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')
exit()
print('APPROVED') | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,604 | 569,603 | u474423089 | python |
p02772 | n = int(input())
li = list(map(int,input().split()))
flag = 0
for i in range(n):
if(li[i] % 2 == 0):
if((li[i] % 3 == 0) or(li[i] % 5 == 0)):
flag=1
else:
flag=0
break
if(flag == 1):
print('APPROVED')
else:
print('DENIED')
| n = int(input())
li = list(map(int,input().split()))
flag = 1
for i in range(n):
if(li[i] % 2 == 0):
if((li[i] % 3 == 0) or(li[i] % 5 == 0)):
#print(li[i])
#flag=1
continue
else:
#print(li[i])
flag=0
if(flag == 1):
print('APPROVE... | [
"literal.number.integer.change",
"assignment.value.change",
"control_flow.break.remove"
] | 569,613 | 569,614 | u598924163 | python |
p02772 | N = int(input())
A = map(int,input().split())
for a in A:
if a % 2 == 0 and A % 3 != 0 and A % 5 != 0:
print('DENIED')
exit()
print('APPROVED') | N = int(input())
A = map(int,input().split())
for a in A:
if a % 2 == 0 and a % 3 != 0 and a % 5 != 0:
print('DENIED')
exit()
print('APPROVED')
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 569,615 | 569,616 | u908763441 | python |
p02772 | 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') | 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') | [
"call.add"
] | 569,617 | 569,618 | u243699903 | python |
p02772 | i1 = int(input())
i2 = list(map(int, input().split()))
l = []
for i in range(i1):
if i2[i] % 2 == 0:
if i2[i] % 3 == 0 or i2[i] % 5 == 0:
l.append('APPROVED')
else:
l.append('DENEID')
break
if (all(str == 'APPROVED' for str in l)):
print('APPROVED')
else:
print('DENIED') | i1 = int(input())
i2 = list(map(int, input().split()))
l = []
for i in range(i1):
if i2[i] % 2 == 0:
if i2[i] % 3 == 0 or i2[i] % 5 == 0:
l.append('APPROVED')
else:
l.append('DENEID')
if (all(str == 'APPROVED' for str in l)):
print('APPROVED')
else:
print('DENIED') | [
"control_flow.break.remove"
] | 569,668 | 569,669 | u806084713 | 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 or a[i]%5==0:
ans = 'APPROVED'
else:
print('DENIED')
exit()
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 or a[i]%5==0:
ans = 'APPROVED'
else:
print('DENIED')
exit()
print(ans)
| [
"assignment.add"
] | 569,675 | 569,676 | u468206018 | python |
p02772 | n = int(input())
a = list(map(int, input().split()))
ans = 'DENIED'
for i in range(n):
if a[i]%2==0:
if a[i]%3==0 or a[i]%5==0:
ans = 'APPROVED'
else:
print('DENIED')
exit()
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 or a[i]%5==0:
ans = 'APPROVED'
else:
print('DENIED')
exit()
print(ans)
| [
"literal.string.change",
"assignment.value.change"
] | 569,677 | 569,676 | u468206018 | python |
p02772 | N=int(input())
A=list(map(int, input().split()))
ans = 'DENIED'
for i in A:
if i%2==0:
#print(i)
#print(i%3, i%5)
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:
#print(i)
#print(i%3, i%5)
if i%3==0 or i%5==0:
ans = 'APPROVED'
else:
ans = 'DENIED'
break
print(ans) | [
"literal.string.change",
"assignment.value.change"
] | 569,678 | 569,679 | u933717615 | python |
p02772 | N=int(input())
A=list(map(int, input().split()))
ans = ''
for i in A:
if i%2==0:
#print(i)
#print(i%3, i%5)
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:
#print(i)
#print(i%3, i%5)
if i%3==0 or i%5==0:
ans = 'APPROVED'
else:
ans = 'DENIED'
break
print(ans) | [
"literal.string.change",
"assignment.value.change"
] | 569,680 | 569,679 | u933717615 | python |
p02772 | n=int(input())
a=list(map(int,input().split()))
ans="DENIED"
for i in range(n):
if a[i] % 2 == 0:
if a[i] % 3 == 0 or a[i] % 5 == 0:
ans = "APROVED"
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 or a[i]%5 == 0:
continue
else:
ans = "DENIED"
print(ans) | [
"literal.string.change",
"assignment.value.change",
"control_flow.continue.add"
] | 569,685 | 569,686 | u954488273 | python |
p02772 | # -*- coding: utf-8 -*-
a = int(input())
lis = list(map(int, input().split()))
for i in range(a):
judge = True
if (lis[i] % 2 == 0):
if (lis[i] % 3 != 0) and (lis[i] % 5 != 0):
judge = False
# 出力
if judge:
print("APPROVED")
else:
print("DENIED") | # -*- coding: utf-8 -*-
a = int(input())
lis = list(map(int, input().split()))
for i in range(a):
judge = True
if (lis[i] % 2 == 0):
if (lis[i] % 3 != 0) and (lis[i] % 5 != 0):
judge = False
break
# 出力
if judge:
print("APPROVED")
else:
print("DENIED") | [
"control_flow.break.add"
] | 569,690 | 569,691 | u841599623 | python |
p02772 | def fun(li):
for i in li:
if i%2 == 0:
if i%3 == 0 or i%5 ==0:
continue;
else:
return "DENIED"
return "APPROVED"
n = int(input())
li = [int(num) for num in input.split(" ")]
print(fun(li))
| def fun(li):
for i in li:
if i%2 == 0:
if i%3 == 0 or i%5 ==0:
continue;
else:
return "DENIED"
return "APPROVED"
n = int(input())
li = [int(num) for num in input().split(" ")]
print(fun(li))
| [
"call.add"
] | 569,694 | 569,695 | u543643685 | python |
p02772 | n = int(input())
a = list(map(int,input().split()))
b = []
wk = wk1 = 0
for i in range(n):
if a[i]%2 == 0:
b.append(a[i])
for j in range(len(b)):
if b[j]%3 == 0 or b[j]%5 == 0:
wk1 = 1
else:
wk1 = 0
if wk1 == 0:
print('DENIED')
else:
print('APPROVED') | n = int(input())
a = list(map(int,input().split()))
b = []
wk = wk1 = 0
for i in range(n):
if a[i]%2 == 0:
b.append(a[i])
for j in range(len(b)):
if b[j]%3 == 0 or b[j]%5 == 0:
wk = 1
else:
wk1 = 1
if wk1 == 1:
print('DENIED')
else:
print('APPROVED') | [
"assignment.variable.change",
"identifier.change",
"literal.number.integer.change",
"assignment.value.change",
"control_flow.branch.if.condition.change"
] | 569,705 | 569,704 | u094425865 | python |
p02772 | n = int(input())
a_list = list(map(int, input().split()))
a_list_even = [i for i in a_list if i % 2 == 0]
for a in a_list_even:
if a % 3 == 0 or a % 5 == 0:
continue
else:
print("DENIDE")
exit()
print("APPROVED") | n = int(input())
a_list = list(map(int, input().split()))
a_list_even = [i for i in a_list if i % 2 == 0]
for a in a_list_even:
if a % 3 == 0 or a % 5 == 0:
continue
else:
print("DENIED")
exit()
print("APPROVED") | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,708 | 569,709 | u152554456 | python |
p02772 | n = int(input())
a_list = list(map(int, input().split()))
a_list_even = [i for i in a_list if i % 2 == 0]
for a in a_list_even:
if a % 3 == 0 or a % 5 == 0:
pass
else:
print("DENIDE")
exit()
print("APPROVED") | n = int(input())
a_list = list(map(int, input().split()))
a_list_even = [i for i in a_list if i % 2 == 0]
for a in a_list_even:
if a % 3 == 0 or a % 5 == 0:
continue
else:
print("DENIED")
exit()
print("APPROVED") | [
"control_flow.pass.remove",
"control_flow.continue.add",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,710 | 569,709 | u152554456 | python |
p02772 | n = input()
list = input().split(" ")
for number in list:
int_number = int(number)
if (int_number % 2) == 0:
if int_number %3 != 0:
if int_number %5 != 0:
print("DENIED")
exit()
print("ACCEPTED")
| n = input()
list = input().split(" ")
for number in list:
int_number = int(number)
if (int_number % 2) == 0:
if int_number %3 != 0:
if int_number %5 != 0:
print("DENIED")
exit()
print("APPROVED")
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,711 | 569,712 | u244656600 | python |
p02772 | N = int(input())
A = [int(i) for i in input().split()]
count = 0
for i in A:
if i % 2 == 0:
if i % 3 != 0 and i % 5 != 0:
count += 1
else:
break
if count == 0:
print('APPROVED')
else:
print('DENIED') | N = int(input())
A = [int(i) for i in input().split()]
count = 0
for i in A:
if i % 2 == 0:
if i % 3 != 0 and i % 5 != 0:
count += 1
if count == 0:
print('APPROVED')
else:
print('DENIED') | [
"control_flow.break.remove"
] | 569,719 | 569,720 | u161432819 | python |
p02772 | n_num = int(input())
nums = map(int, input().split())
for num in nums:
if num % 2 == 0:
if num % 3 != 0 and num % 5 != 0:
print('DINIED')
break
else:
print('APPROVED')
| n_num = int(input())
nums = map(int, input().split())
for num in nums:
if num % 2 == 0:
if num % 3 != 0 and num % 5 != 0:
print('DENIED')
break
else:
print('APPROVED')
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,721 | 569,722 | u511824539 | python |
p02772 | N=int(input())
A=list(map(int,input().split()))
answer=""
for a in A:
if a%2==0:
if a%3==0 or a%5==0:
answer="APPROVED"
else:
answer="DENIED"
break
print(answer) | N=int(input())
A=list(map(int,input().split()))
answer="APPROVED"
for a in A:
if a%2==0:
if a%3==0 or a%5==0:
answer="APPROVED"
else:
answer="DENIED"
break
print(answer) | [
"literal.string.change",
"assignment.value.change"
] | 569,737 | 569,738 | u547608423 | python |
p02772 | N = int(input())
nums = list(map(int, input().split(' ')))
flag = False
for i in range(N):
if nums[i]%2 == 0 :
if (nums[i]%3 != 0) | (nums[i]%5 != 0):
flag = True
print('DENIED')
break
else:
continue
else:
continue
if flag == False:
print('APPROVED') | N = int(input())
nums = list(map(int, input().split(' ')))
flag = False
for i in range(N):
if nums[i]%2 == 0 :
if (nums[i]%3 != 0) & (nums[i]%5 != 0):
flag = True
print('DENIED')
break
else:
continue
else:
continue
if flag == False:
print('APPROVED') | [
"control_flow.branch.if.condition.change"
] | 569,745 | 569,746 | u652522621 | python |
p02772 | # import itertools
# import math
def resolve():
N = int(input())
A = list(map(int, input().split()))
even = list(filter(lambda x: x % 2 == 0, A))
for ee in even:
if (ee % 3) != 0 and (ee % 5) != 0:
print('DENYIED')
return
print('APPROVED')
resolve()
| # import itertools
# import math
def resolve():
N = int(input())
A = list(map(int, input().split()))
even = list(filter(lambda x: x % 2 == 0, A))
for ee in even:
if (ee % 3) != 0 and (ee % 5) != 0:
print('DENIED')
return
print('APPROVED')
resolve()
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,749 | 569,750 | u586662847 | python |
p02772 | N = int(input())
nums = [int(e) for e in input().split()]
for i in range(N):
if nums[i]%2 == 1:
pass
else:
if nums[i]%3 == 0 or nums[i]%3 == 0:
pass
else:
print("DENIED")
break
if i == N-1:
print("APPROVED")
else:
pass
| N = int(input())
nums = [int(e) for e in input().split()]
for i in range(N):
if nums[i]%2 == 1:
pass
else:
if nums[i]%3 == 0 or nums[i]%5 == 0:
pass
else:
print("DENIED")
break
if i == N-1:
print("APPROVED")
else:
pass
| [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 569,751 | 569,752 | u921927295 | python |
p02772 | def main():
N = int(input())
A = list(map(int, input().split()))
ans = "APROVED"
for ai in A:
if ai%2 == 0:
if ai%3 > 0 and ai%5 > 0:
ans = "DENIED"
break
print(ans)
return
if __name__ == "__main__":
main() | def main():
N = int(input())
A = list(map(int, input().split()))
ans = "APPROVED"
for ai in A:
if ai%2 == 0:
if ai%3 > 0 and ai%5 > 0:
ans = "DENIED"
break
print(ans)
return
if __name__ == "__main__":
main() | [
"literal.string.change",
"assignment.value.change"
] | 569,757 | 569,758 | u021022333 | python |
p02772 | N=int(input())
data=list(map(int,input().split()))
ans="APPROVE"
for i in range(N):
mo2=data[i]%2
mo6=data[i]%6
mo10=data[i]%10
if mo2==0:
if mo6==0 or mo10==0:
ans="APPROVED"
else:
ans="DENIED"
break
else:
continue
print(ans) | N=int(input())
data=list(map(int,input().split()))
ans="APPROVED"
for i in range(N):
mo2=data[i]%2
mo6=data[i]%6
mo10=data[i]%10
if mo2==0:
if mo6==0 or mo10==0:
ans="APPROVED"
else:
ans="DENIED"
break
else:
continue
print(ans) | [
"literal.string.change",
"assignment.value.change"
] | 569,763 | 569,764 | u872184182 | python |
p02772 | N=int(input())
data=list(map(int,input().split()))
for i in range(N):
mo2=data[i]%2
mo6=data[i]%6
mo10=data[i]%10
if mo2==0:
if mo6==0 or mo10==0:
ans="APPROVED"
continue
else:
ans="DENIED"
break
else:
continue
print(ans) | N=int(input())
data=list(map(int,input().split()))
ans="APPROVED"
for i in range(N):
mo2=data[i]%2
mo6=data[i]%6
mo10=data[i]%10
if mo2==0:
if mo6==0 or mo10==0:
ans="APPROVED"
else:
ans="DENIED"
break
else:
continue
print(ans) | [
"assignment.add"
] | 569,765 | 569,764 | u872184182 | python |
p02772 | N = int(input())
OK = 0
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:
OK = 1
else:
OK = 0
break
if OK == 1:
print("APPROVED")
else:
print("DENIED") | N = int(input())
OK = 1
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:
OK = 1
else:
OK = 0
break
if OK == 1:
print("APPROVED")
else:
print("DENIED")
| [
"literal.number.integer.change",
"assignment.value.change"
] | 569,766 | 569,767 | u810348111 | python |
p02772 | n = input()
l = list(map(int, input().split()))
result = 'APPROVED'
for i in l:
if i % 2 == 0:
if i % 3 != 0 or i % 5 != 0:
result = 'DENIED'
break
print(result)
| n = input()
l = list(map(int, input().split()))
result = 'APPROVED'
for i in l:
if i % 2 == 0:
if i % 3 != 0 and i % 5 != 0:
result = 'DENIED'
break
print(result) | [
"control_flow.branch.if.condition.change"
] | 569,774 | 569,775 | u406405116 | python |
p02772 | a = input()
a = int(a)
line = [int(k) for k in input().split()]
b = 0
for k in range(len(line)):
if line[k] % 2 == 0:
if not line[k] % 5 == 0 and not line[k] % 3 == 0:
print("DENIED")
break
elif k == a-1:
print("APPROVED") | a = input()
a = int(a)
line = [int(k) for k in input().split()]
for k in range(len(line)):
if line[k] % 2 == 0:
if not line[k] % 5 == 0 and not line[k] % 3 == 0:
print("DENIED")
break
if k == a-1:
print("APPROVED") | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 569,776 | 569,777 | u614628638 | python |
p02772 | a = input()
num = [int(x) for x in input().split()]
print(num)
flag = True
for x in num:
if x % 2 == 0:
if x % 3 != 0 and x % 5 != 0:
flag = False
if flag:
print('APPROVED')
else:
print('DENIED') | a = input()
num = [int(x) for x in input().split()]
flag = True
for x in num:
if x % 2 == 0:
if x % 3 != 0 and x % 5 != 0:
flag = False
if flag:
print('APPROVED')
else:
print('DENIED') | [
"call.remove"
] | 569,778 | 569,779 | u579508806 | python |
p02772 | a = input()
num = [int(x) for x in input().split()]
flag = True
for x in num:
if x % 2 == 0:
if x % 3 != 0 and x % 5 != 0:
flag = False
if flag:
print('APPROVE')
else:
print('DENIED') | a = input()
num = [int(x) for x in input().split()]
flag = True
for x in num:
if x % 2 == 0:
if x % 3 != 0 and x % 5 != 0:
flag = False
if flag:
print('APPROVED')
else:
print('DENIED') | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,780 | 569,779 | u579508806 | python |
p02772 | n=int(input())
a=list(map(int, input().split()))
tmp = 0
for i in range(n):
if a[i] % 2 == 0 and (a[i] % 3 != 0 and a[i] % 5 != 0):
print('DENIED')
tmp = 1
break
if tmp == 0:
rint('APPROVED') | n=int(input())
a=list(map(int, input().split()))
tmp = 0
for i in range(n):
if a[i] % 2 == 0 and (a[i] % 3 != 0 and a[i] % 5 != 0):
print('DENIED')
tmp = 1
break
if tmp == 0:
print('APPROVED') | [
"identifier.change",
"call.function.change"
] | 569,781 | 569,782 | u630554891 | python |
p02772 | import sys
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:
flag=False
elif A[i]%5!=0:
flag=False
if flag==True:
print('APPROVED')
else:
print('DENIED') | import sys
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==True:
print('APPROVED')
else:
print('DENIED') | [
"assignment.remove"
] | 569,787 | 569,788 | u766393261 | python |
p02772 | import sys
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 or A[i]%5!=0:
flag=False
if flag==True:
print('APPROVED')
else:
print('DENIED') | import sys
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==True:
print('APPROVED')
else:
print('DENIED') | [
"control_flow.branch.if.condition.change"
] | 569,789 | 569,788 | u766393261 | python |
p02772 | import sys
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 or A[i]%5!=0:
flag==False
if flag==True:
print('APPROVED')
else:
print('DENIED') | import sys
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==True:
print('APPROVED')
else:
print('DENIED') | [
"control_flow.branch.if.condition.change",
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 569,791 | 569,788 | u766393261 | python |
p02772 | N = int(input())
l = list(map(int, input().split()))
check_list = []
for num in l:
if num % 2 == 0:
check_list.append(num)
n = len(check_list)
i = 0
while i < n:
if (check_list[i] % 2 == 0) or (check_list[i] % 3 == 0):
i += 1
else: break
if i == n:
print('APPROVED')
else: print('DENIED... | N = int(input())
l = list(map(int, input().split()))
check_list = []
for num in l:
if num % 2 == 0:
check_list.append(num)
n = len(check_list)
i = 0
while i < n:
if (check_list[i] % 3 == 0) or (check_list[i] % 5 == 0):
i += 1
else: break
if i == n:
print('APPROVED')
else: print('DENI... | [
"control_flow.branch.if.condition.change"
] | 569,798 | 569,799 | u529722835 | python |
p02772 | #coding:utf-8
n = int(input())
a = list(map(int, input().split()))
num = []
for i in range(0, n):
if a[i] % 2 == 0:
num.append(a[i])
#print(num)
if len(num) == 0:
print('DENIED')
exit()
else:
for j in range(0, len(num)):
if num[j] % 3 != 0 and num[j] % 5 != 0:
print('DENIED... | #coding:utf-8
n = int(input())
a = list(map(int, input().split()))
num = []
for i in range(0, n):
if a[i] % 2 == 0:
num.append(a[i])
#print(num)
if len(num) == 0:
print('APPROVED')
exit()
else:
for j in range(0, len(num)):
if num[j] % 3 != 0 and num[j] % 5 != 0:
print('DENI... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,806 | 569,807 | u167908302 | python |
p02772 | #coding:utf-8
n = int(input())
a = list(map(int, input().split()))
num = []
for i in range(0, n):
if a[i] % 2 == 0:
num.append(a[i])
if len(num) == 0:
print('DENIED')
exit()
else:
for j in range(0, len(num)):
if num[j] % 3 != 0 and num[j] % 5 != 0:
print('DENIED')
... | #coding:utf-8
n = int(input())
a = list(map(int, input().split()))
num = []
for i in range(0, n):
if a[i] % 2 == 0:
num.append(a[i])
#print(num)
if len(num) == 0:
print('APPROVED')
exit()
else:
for j in range(0, len(num)):
if num[j] % 3 != 0 and num[j] % 5 != 0:
print('DENI... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,808 | 569,807 | u167908302 | python |
p02772 | N = int(input())
A = list(map(int,input().split()))
flg = 1
for i in A:
if i % 2 == 0:
if i % 3 != 0 and i % 5 !=0:
flg = 0
break
if flg == 1:
print("APROVED")
else:
print("DENIED") | N = int(input())
A = list(map(int,input().split()))
flg = 1
for i in A:
if i % 2 == 0:
if i % 3 != 0 and i % 5 !=0:
flg = 0
break
if flg == 1:
print("APPROVED")
else:
print("DENIED") | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,817 | 569,818 | u179443195 | python |
p02772 | from sys import stdin,stdout
def f(A):
for i in A:
if i%2==0:
if i%3!=0 and i%5!=0:
return 'DENIED'
return 'APROVED'
def main():
for x in stdin:
A = list(map(int,input().split()))
print(f(A))
if __name__ == "__main__":
main()
| from sys import stdin,stdout
def f(A):
for i in A:
if i%2==0:
if i%3!=0 and i%5!=0:
return 'DENIED'
return 'APPROVED'
def main():
for x in stdin:
A = list(map(int,input().split()))
print(f(A))
if __name__ == "__main__":
main()
| [
"literal.string.change",
"function.return_value.change"
] | 569,825 | 569,826 | u528594564 | python |
p02772 | N = int(input())
inList = list(map(int, input().aplit(" ")))
evenList = list([])
for item in inList:
if item % 2 == 0:
evenList.append(item)
jdgList = list([])
for evenItem in evenList:
if ((evenItem % 3) == 0) or ((evenItem % 5) == 0):
jdgList.append(evenItem)
if len(jdgList) == len(evenList):
print... | N = int(input())
inList = list(map(int, input().split(" ")))
evenList = list([])
for item in inList:
if item % 2 == 0:
evenList.append(item)
jdgList = list([])
for evenItem in evenList:
if ((evenItem % 3) == 0) or ((evenItem % 5) == 0):
jdgList.append(evenItem)
if len(jdgList) == len(evenList):
pr... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 569,836 | 569,837 | u161712560 | python |
p02772 | N = int(input())
A = list(map(int,input().split()))
ans = "APPROVED"
for i in range(len(A)):
flag = 1
if A[i]%2 == 0:
if A[i]%3 != 0:
flag = flag - 1
if A[i]%5 != 0:
flag = flag - 1
if flag < 0:
ans = "DENIED"
print(flag)
print(ans) | N = int(input())
A = list(map(int,input().split()))
ans = "APPROVED"
for i in range(len(A)):
flag = 1
if A[i]%2 == 0:
if A[i]%3 != 0:
flag = flag - 1
if A[i]%5 != 0:
flag = flag - 1
if flag < 0:
ans = "DENIED"
print(ans) | [
"call.remove"
] | 569,838 | 569,839 | u690442716 | python |
p02772 | input()
A = 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') | input()
A = 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') | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 569,842 | 569,843 | u226400521 | 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])
d = len(b)
if d == 0:
print('APPROVED')
bool == True
for c in b:
if (c %3 != 0) and (c %5 != 0):
bool = False
break
else:
bool = True
if bool == True:
prin... | n = int(input())
a = list(map(int,input().split()))
b = []
for i in range(n):
if a[i] %2 == 0:
b.append(a[i])
d = len(b)
if d == 0:
print('APPROVED')
exit()
bool == True
for c in b:
if (c %3 != 0) and (c %5 != 0):
bool = False
break
else:
bool = True
if bool == Tru... | [
"call.add"
] | 569,854 | 569,855 | u007263493 | python |
p02772 | n = int(input())
a = list(map(int, input().split(" ")))
flag = True
for i in a:
if (i%2==0):
if not (i%3==0 or i%5==0):
flag=False
if flag==True:
print("APPROVED")
else:
print("DEFINED") | n = int(input())
a = list(map(int, input().split(" ")))
flag = True
for i in a:
if (i%2==0):
if not (i%3==0 or i%5==0):
flag=False
if flag==True:
print("APPROVED")
else:
print("DENIED") | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,858 | 569,859 | u750058957 | python |
p02772 | N = int(input())
A = list(map(int, input().split()))
in_flag = True
for a in A:
if a % 2 == 0:
if a % 3 == 0 or a % 5 == 0:
in_flag = True
else:
in_flag = False
else:
pass
if in_flag:
print("APPROVED")
else:
print("DENIED") | N = int(input())
A = list(map(int, input().split()))
in_flag = True
for a in A:
if a % 2 == 0:
if a % 3 == 0 or a % 5 == 0:
in_flag = True
else:
in_flag = False
break
else:
pass
if in_flag:
print("APPROVED")
else:
print("DENIED")
| [
"control_flow.break.add"
] | 569,862 | 569,863 | u532022710 | python |
p02772 | N=int(input())
A=[int(x) for x in input().split()]
guu=[]
result="APPROVED"
for i in range(N):
if A[i]%2==0:
guu.append(A[i])
for i in range(len(guu)):
if (guu[i]%3!=0)and(A[i]%5!=0):
result="DENIED"
break
print(result) | N=int(input())
A=[int(x) for x in input().split()]
guu=[]
result="APPROVED"
for i in range(N):
if A[i]%2==0:
guu.append(A[i])
for i in range(len(guu)):
if (guu[i]%3!=0)and(guu[i]%5!=0):
result="DENIED"
break
print(result) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 569,868 | 569,869 | u330728443 | python |
p02772 | n = int(input())
a_list = list(map(int, input().split()))
ans = 'APPRONED'
for i in range(0, n) :
if a_list[i]%2 == 0 :
if (a_list[i]%3)*(a_list[i]%5) != 0 :
ans = 'DENIED'
break
print(ans)
| n = int(input())
a_list = list(map(int, input().split()))
ans = 'APPROVED'
for i in range(0, n) :
if a_list[i]%2 == 0 :
if (a_list[i]%3)*(a_list[i]%5) != 0 :
ans = 'DENIED'
break
print(ans) | [
"literal.string.change",
"assignment.value.change"
] | 569,872 | 569,873 | u089644470 | python |
p02772 | n = int(input())
a = list(map(int,input().split()))
ok = True
for x in a:
if x %2 == 0:
if x %3!=0 and x %5 != 0:
ok = False
break
if ok:
print("APPROVED")
else:
print("DENINED")
| n = int(input())
a = list(map(int,input().split()))
ok = True
for x in a:
if x %2 == 0:
if x %3!=0 and x %5 != 0:
ok = False
break
if ok:
print("APPROVED")
else:
print("DENIED")
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,874 | 569,875 | u818349438 | python |
p02772 | def main():
n=int(input())
a=list(map(int, input().split()))
count=0
for i in range(n-1):
if a[i]%2==0:
if a[i]%3==0 or a[i]%5==0:
count = count
else:
count +=1
if count>0:
print('DENIED')
else:
print('APPROVED')
main() | def main():
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 = count
else:
count +=1
if count>0:
print('DENIED')
else:
print('APPROVED')
main() | [
"expression.operation.binary.remove"
] | 569,885 | 569,886 | u597443755 | python |
p02772 | Nnum=int(input())
An=np.array([int(i) for i in input().split()])
Ane=An[An%2==0]
Ane3=Ane%3
Ane5=Ane%5
Ane3or5=Ane3*Ane5
if(np.sum(Ane3or5)==0):
print("APPROVED")
else:
print("DENIED") | import numpy as np
Nnum=int(input())
An=np.array([int(i) for i in input().split()])
Ane=An[An%2==0]
Ane3=Ane%3
Ane5=Ane%5
Ane3or5=Ane3*Ane5
if(np.sum(Ane3or5)==0):
print("APPROVED")
else:
print("DENIED") | [] | 569,894 | 569,895 | u442855260 | python |
p02772 | n = int(input())
al = list(map(int, input().split()))
ans = "APPROVE"
for a in al:
if a % 2 == 0:
if a % 3 != 0 and a % 5 != 0:
ans = "DENIED"
print(ans)
| n = int(input())
al = list(map(int, input().split()))
ans = "APPROVED"
for a in al:
if a % 2 == 0:
if a % 3 != 0 and a % 5 != 0:
ans = "DENIED"
break
print(ans)
| [
"literal.string.change",
"assignment.value.change",
"control_flow.break.add"
] | 569,896 | 569,897 | u189487046 | python |
p02772 | import sys
# N=5
# A=[6, 7, 9, 10, 31]
N=map(int,input())
A=list(map(int, input().split()))
A_even=[]
for i in A:
if (i%2)==0:
A_even.append(i)
for i in A_even:
if (i%3)==0 and (i%5)==0:
print("DENIED")
sys.exit()
print("APPROVED")
| import sys
# N=5
# A=[6, 7, 9, 10, 31]
N=map(int,input())
A=list(map(int, input().split()))
A_even=[]
for i in A:
if (i%2)==0:
A_even.append(i)
for i in A_even:
if (i%3)!=0 and (i%5)!=0:
print("DENIED")
sys.exit()
print("APPROVED")
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 569,898 | 569,899 | u417014669 | python |
p02772 | _ = input()
a=map(int,*input().split())
flag = True
for i in a:
if i%2 == 0:
if i%3 != 0:
if i%5 != 0:
flag = False
break
if flag:
print("APPROVED")
else:
print("DENIED") | _ = input()
a=map(int,input().split())
flag = True
for i in a:
if i%2 == 0:
if i%3 != 0:
if i%5 != 0:
flag = False
break
if flag:
print("APPROVED")
else:
print("DENIED") | [
"call.arguments.change"
] | 569,910 | 569,911 | u821775079 | python |
p02772 | N=int(input())
n=list(map(int, input().split()))
a=[i for i in n if i%2==0]
A=len(a)
b=[i for i in a if i%3!=0 and i%5!=0]
B=len(b)
print("Yes" if B==0 else "No")
| N=int(input())
n=list(map(int, input().split()))
a=[i for i in n if i%2==0]
A=len(a)
b=[i for i in a if i%3!=0 and i%5!=0]
B=len(b)
print("APPROVED" if B==0 else "DENIED")
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 569,912 | 569,913 | u065774356 | python |
p02772 | N = int(input())
A = list(map(int,input().split()))
li = []
ans = "APPROVED"
for i in range(N):
if A[i] % 2 == 0:
li.append(A[i])
for i in li:
if i % 5 == 0 or i % 3 == 0:
ans = "APPROVED"
else:
ans = "DENIED"
break | N = int(input())
A = list(map(int,input().split()))
li = []
ans = "APPROVED"
for i in range(N):
if A[i] % 2 == 0:
li.append(A[i])
for i in li:
if i % 5 == 0 or i % 3 == 0:
ans = "APPROVED"
else:
ans = "DENIED"
break
print(ans) | [
"call.add"
] | 569,918 | 569,919 | u939585142 | python |
p02772 | l = list(map(lambda x: True if int(x)%2==1or(int(x)%2==0and(int(x)%3==0 or int(x)%5==0)) else False,input().split()))
print("APPROVED" if sum(l)==len(l) else "DENIED") | input();l = list(map(lambda x: True if int(x)%2==1or(int(x)%2==0and(int(x)%3==0 or int(x)%5==0)) else False,input().split()))
print("APPROVED" if sum(l)==len(l) else "DENIED")
| [] | 569,924 | 569,925 | u137667583 | python |
p02772 | # -*- coding: utf-8 -*-
def main():
n = int(input())
a_list = list(map(int, input().split()))
ans = 'APPROVED'
for i in a_list:
if divide(i, 2):
if not divide(i, 3) and not divide(i, 5):
print(i)
ans = 'DENIED'
break
print(a... | # -*- coding: utf-8 -*-
def main():
n = int(input())
a_list = list(map(int, input().split()))
ans = 'APPROVED'
for i in a_list:
if divide(i, 2):
if not divide(i, 3) and not divide(i, 5):
ans = 'DENIED'
break
print(ans)
def divide(x, k):
... | [
"call.remove"
] | 569,926 | 569,927 | u837885766 | 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 = 1
if F == 1:
print('DENIED')
else:
print('APPROVED')
| 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 and a[i] % 5 != 0:
F = 1
if F == 1:
print('DENIED')
else:
print('APPROVED')
| [
"control_flow.branch.if.condition.change"
] | 569,934 | 569,935 | u508934152 | python |
p02772 | N = int(input())
A = sorted([int(x) for x in input().split()])
flag = True
isOk = False
for i in A:
if i % 2 == 0:
if i % 3 == 0 or i % 5 == 0:
isOk = True
else:
isOk = False
flag = False
break
else:
pass
if isOk and flag:
print("APP... | N = int(input())
A = sorted([int(x) for x in input().split()])
flag = True
isOk = False
for i in A:
if i % 2 == 0:
if i % 3 == 0 or i % 5 == 0:
isOk = True
else:
isOk = False
flag = False
break
else:
pass
if isOk or flag:
print("APPR... | [
"control_flow.branch.if.condition.change"
] | 569,936 | 569,937 | u217530935 | python |
p02772 | A=list(map(int,input().split()))
B,C=[],[]
for i in (A):
if i%2==0:B.append(i)
for i in (B):
if i%3==0 or i%5==0:C.append(i)
if len(B)==len(C):
print('APPROVED')
else:print('DENIED')
| N=input()
A=list(map(int,input().split()))
B,C=[],[]
for i in (A):
if i%2==0:B.append(i)
for i in (B):
if i%3==0 or i%5==0:C.append(i)
if len(B)==len(C):
print('APPROVED')
else:print('DENIED') | [
"assignment.add"
] | 569,938 | 569,939 | u549211107 | python |
p02772 | #!/usr/bin/env python3
import numpy as np
N = int(input().strip())
x = [int(str) for str in input().strip().split()]
x = np.array(x)
odd = x[x % 2 == 0]
result = np.all((odd % 3 == 0) | (odd % 5 == 0))
print('APPROVED' if result and len(odd) else 'DENIED')
| #!/usr/bin/env python3
import numpy as np
N = int(input().strip())
x = [int(str) for str in input().strip().split()]
x = np.array(x)
odd = x[x % 2 == 0]
result = np.all((odd % 3 == 0) | (odd % 5 == 0))
print('APPROVED' if result else 'DENIED')
| [] | 569,950 | 569,951 | u470936782 | python |
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] % 5 == 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",
"control_flow.break.remove"
] | 569,954 | 569,953 | u278761160 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.