problem_id stringlengths 6 6 | user_id stringlengths 10 10 | time_limit float64 1k 8k | memory_limit float64 262k 1.05M | problem_description stringlengths 48 1.55k | codes stringlengths 35 98.9k | status stringlengths 28 1.7k | submission_ids stringlengths 28 1.41k | memories stringlengths 13 808 | cpu_times stringlengths 11 610 | code_sizes stringlengths 7 505 |
|---|---|---|---|---|---|---|---|---|---|---|
p02771 | u962309487 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["*l = map(int, input().split())\nif len(set(l)) == 2:\n print('Yes')\nelse:\n print('No')", "l = list(map(int, input().split()))\nif len(set(l)) == 2:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s063134656', 's243308860'] | [2940.0, 2940.0] | [18.0, 19.0] | [90, 96] |
p02771 | u963944915 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A,B,C=map(int,input().split())\nif A==B and B==C and C==A:\n print("No")\nelif A!=B and B!=C and C!=A:\n print("No")\nalse:\n print("Yes")', 'A,B,C=map(int,input().split())\nif A==B and B==C and C==A:\n print("No")\nelif A!=B and B!=C and C!=A:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s263406882', 's167104000'] | [2940.0, 3060.0] | [17.0, 18.0] | [135, 135] |
p02771 | u967822229 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["A = [0] * 10\n\nB = list(map(int, input().split()))\nfor i in range(len(B)):\n A[B[i]] += 1\n\nfor i in range(len(A)):\n if A[i] == 2:\n print('Yes')\n break\nelse \n print('No')", "A = [0] * 10\n\nB = list(map(int, input().split()))\nfor i in range(len(B)):\n A[B[i]] += 1\n\nfor i in range(len(A)):\n if A[i] == 2:\n print('Yes')\n break\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s748779966', 's258485486'] | [8900.0, 9100.0] | [21.0, 26.0] | [190, 191] |
p02771 | u968399909 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["# -*- coding: utf-8 -*-\n\nimport os\nimport datetime\n\ndef main():\n a, b = map(int, input().split())\n val = list(map(lambda x: int(x), input().split()))\n\n result_dict = []\n\n for i in range(len(val)):\n for j in range(i+1, len(val)):\n result_dict.append(val[i] * val[j])\n\n min_list = sorted(result_dict)\n print(min_list[b-1])\n\nif __name__ == '__main__':\n main()", '# -*- coding: utf-8 -*-\n\nimport os\nimport datetime\n\ndef main():\n \n a, b, c = map(int, input().split())\n int_dict = {}\n int_dict[a] = ""\n int_dict[b] = ""\n int_dict[c] = ""\n\n if len(int_dict) == 2:\n print("Yes")\n else:\n print("No")\n\nif __name__ == \'__main__\':\n main()'] | ['Runtime Error', 'Accepted'] | ['s036616610', 's533355993'] | [3312.0, 3440.0] | [21.0, 20.0] | [395, 348] |
p02771 | u969211566 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a,b,c = map(int,input().split())\nif a == b and b == c:\n print("No")\nelif a != b and b != c:\n print("No")\nelse:\n print("Yes")\n', 'a,b,c = map(int,input().split())\n\nif a == b and a != c:\n print("Yes")\nelif b == c and a != c:\n print("Yes")\nelif a == c and a != b:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s997090527', 's289151767'] | [2940.0, 3060.0] | [17.0, 17.0] | [128, 168] |
p02771 | u969848070 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["N = set(map(int,input().split()))\nA = 'YES'\nif len(N) == 2:\n print(A)\nelse:\n A = 'NO'\n print(A)", "N = set(map(int,input().split()))\nA = 'Yes'\nif len(N) == 2:\n print(A)\nelse:\n A = 'No'\n print(A)"] | ['Wrong Answer', 'Accepted'] | ['s036047319', 's336947617'] | [2940.0, 3060.0] | [19.0, 22.0] | [98, 98] |
p02771 | u970497613 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['list = input()\na = list[0]\nb = list[1]\nc = list[2]\nif a == b:\n if a != c:\n print("Yes")\n else:\n print("No")\nelse:\n if a == c or b == c:\n print("Yes")\n else:\n print("No")\n\n\n', 'list = input()\na = list[0]\nb = list[2]\nc = list[4]\nif a == b:\n if a != c:\n print("Yes")\n else:\n print("No")\nelse:\n if a == c or b == c:\n print("Yes")\n else:\n print("No")\n\n\n\n'] | ['Wrong Answer', 'Accepted'] | ['s852324201', 's728313076'] | [2940.0, 2940.0] | [17.0, 17.0] | [188, 189] |
p02771 | u973108807 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["array = map(int,input().split())\narray.sort()\nif array[0] != array[2] and (array[0] == array[1] or array[1] == array[2]):\n print('Yes')\nelse:\n print('No')", "array = list(map(int,input().split()))\narray.sort()\nif array[0] != array[2] and (array[0] == array[1] or array[1] == array[2]):\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s170929486', 's177151622'] | [2940.0, 2940.0] | [17.0, 17.0] | [156, 162] |
p02771 | u974935538 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A,B,C= map(int,input().split())\n\nif A = B = C :\n print("No")\nelse:\n print("Yes")', "def kawaiso(a, b, c):\n if (a == b and b != c) or (b == c and c != a) or (c == a and a != b):\n return 'Yes'\n else:\n return 'No'\n \na, b, c = input().split()\na = int(a)\nb = int(b)\nc = int(c)\n \nprint(kawaiso(a, b, c))"] | ['Runtime Error', 'Accepted'] | ['s928874312', 's528217408'] | [2940.0, 3060.0] | [17.0, 17.0] | [86, 221] |
p02771 | u978640776 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["A, B, C = map(int, input().split())\nif (A == B == C) or (A != B != C):\n print('No')\nelse:\n print('Yes')", "A, B, C = map(int, input().split())\nif (A == B == C) or (A!=B and B!=C and C!=A):\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s747255413', 's848023469'] | [2940.0, 2940.0] | [17.0, 17.0] | [109, 120] |
p02771 | u978677493 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['print("Yes" if len(set(map(int, input().split())) == 2 else "No")', 'print("Yes" if len(set(map(int, input().split()))) == 2 else "No")\n'] | ['Runtime Error', 'Accepted'] | ['s630478839', 's259652971'] | [8856.0, 9052.0] | [22.0, 26.0] | [65, 67] |
p02771 | u979444096 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a, b, c = map(int, input().split())\nif a == b == c:\n print('No')\n exit()\nif a != b != c:\n print('No')\n exit()\nprint('Yes')\n", "a, b, c = map(int, input().split())\nif a == b == c:\n print('No')\n exit()\nif a != b and b != c and a != c:\n print('No')\n exit()\nprint('Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s652238867', 's201799356'] | [2940.0, 2940.0] | [17.0, 17.0] | [127, 144] |
p02771 | u981269105 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a=list(map(int,input().split()))\na=sorted(a)\nif a[0]+a[1]==a[2]:\n print("Yes")\nelse:\n print("No")', 'a=list(map(int,input().split()))\na=sorted(a)\nif(a[0]+a[1]==a[2]):\n print("Yes")\nelse:\n print("No")', 'a=list(map(int,input().split()))\na=sorted(a)\nif(a[0]==a[1] and a[1]!=a[2]):\n print("Yes")\nelif a[2]==a[1] and a[1]!=a[0]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s579536215', 's614340620', 's879676970'] | [2940.0, 3064.0, 3060.0] | [19.0, 18.0, 17.0] | [103, 100, 163] |
p02771 | u983181637 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a = [int(x) for x in input().split()]\n\nif len(set(a)) == 2:\n print('yes')\n \nelse:\n print('No')\n ", "a = [int(x) for x in input().split()]\nif len(set(a)) == 2:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s709591331', 's362456791'] | [2940.0, 2940.0] | [18.0, 17.0] | [100, 93] |
p02771 | u987164499 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['li = list(map(int,input.split()))\nli2 = set(li2)\nif len(li2) == 2:\n print("Yes")\nelse:\n print("No")', '\na,b,c = map(int,input().split())\nif a == b != c:\n print("Yes")\nelif a == c != b:\n print("Yes")\nelif b == c != a:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s953498251', 's509320562'] | [2940.0, 2940.0] | [17.0, 17.0] | [264, 174] |
p02771 | u988191897 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['N=input().split\nif N[0] != N[1] and N[0] != N[2] and N[1] != N[2]:\n print("No")\nelif N[0] == N[1] and N[0] == N[2] and N[1] == N[2]:\n print("No") \nelse:\n print("Yes")', 'N=input().split()\nif N[0] != N[1] and N[0] != N[2] and N[1] != N[2]:\n print("No")\nelif N[0] == N[1] and N[0] == N[2] and N[1] == N[2]:\n print("No") \nelse:\n print("Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s156372129', 's849555031'] | [3060.0, 2940.0] | [17.0, 17.0] | [169, 172] |
p02771 | u990566513 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a, b, c = map(int, input().split(" "))\n\nif a == b == c:\n print("NO")\nelif a == b & a == c & b == c:\n print("YES")\nelse:\n print("NO")', 'a, b, c = map(int, input().split(" "))\n\nif a == b == c:\n print("No")\nelif a == b or a == c or b == c:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s010096319', 's531367395'] | [2940.0, 2940.0] | [17.0, 17.0] | [141, 143] |
p02771 | u992910889 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["s=set(map(int,input().split()))\nif len(s)==2:\n print('Yes'):\nelse:\n print('No')", "# coding: utf-8\n# Your code here!\ns=set(map(int,input().split()))\nif len(s)==2:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s815228877', 's788553382'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 118] |
p02771 | u995109095 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['l=list(map(int,input().split()))\nl.sort()\nif set(l)==2:\n\tprint("Yes")\nelse:\n\tprint("No")\n ', '\n\nl=list(map(int,input().split()))\nl.sort()\nif len(set(l))==2:\n\tprint("Yes")\nelse:\n\tprint("No")\n '] | ['Wrong Answer', 'Accepted'] | ['s328263512', 's548784652'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 103] |
p02771 | u995419623 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a,b,c = map(int,input().split())\nans="Yes"\n\nif a==b and b==c or (a != b and b != c):\n ans = "No"\n \nprint(ans)\n', 'a,b,c = map(int,input().split())\nans="Yes"\n\nif a=b=c or (a != b and b != c):\n ans = "No"\n \nprint(ans)', 'a,b,c = map(int,input().split())\nans="Yes"\n\nif a==b and b==c or (a != b and b != c and c != a):\n ans = "No"\n \nprint(ans)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s391037517', 's426509751', 's200575880'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [112, 103, 122] |
p02771 | u997927785 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A, B, C = map(int, input().split())\n\nif (A = B and B = C) or (A != B and B != C and C != A):\n print("No")\n\nelse:\n print("Yes")\n', 'A, B, C = map(int, input())\n\nif (A = B and B = C) or (A != B and B != C and C != A):\n print("No")\n\nelse:\n print("Yes")', 'A, B, C = map(int, input().split())\n\nif (A == B and B == C) or (A != B and B != C and C != A):\n print("No")\n\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s574260203', 's636163016', 's930803182'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [133, 124, 134] |
p02771 | u998008108 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['arr=list(map(int,input().split()))\ncnt=0\nif(arr[0]==arr[1]):\n cnt+=1\nif(arr[0]==arr[2]):\n cnt+=1\nif(arr[1]==arr[2]):\n cnt+=1\nif(cnt==2):\n print("Yes")\nelse:\n print("No")\n', 'arr=list(map(int,input().split()))\ncnt=0\nif(arr[0]==arr[1] and arr[1]!=arr[2]):\n print("Yes")\nelif(arr[1]==arr[2] and arr[1]!=arr[0]):\n print("Yes")\nelif(arr[0]==arr[2] and arr[1]!=arr[0]):\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s664338206', 's864681962'] | [2940.0, 3060.0] | [17.0, 18.0] | [175, 227] |
p02771 | u998082063 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["from collections import defaultdict, deque\nimport sys\nimport heapq\nimport bisect\nimport itertools\nimport queue\nimport copy\nimport time\nsys.setrecursionlimit(10**8)\nINF = float('inf')\nmod = 10**9+7\neps = 10**-7\n\ndef inp(): return int(sys.stdin.readline())\n\ndef inpl(): return list(map(int, sys.stdin.readline().split()))\n\ndef inpl_str(): return list(sys.stdin.readline().split())\n\ns = inpl()\nif len(set(s)) == 2:\n print('No') \nelse:\n print('Yes')", "s = map(int, input().split())\nif len(set(s)) != 2:\n print('No') \nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s055373258', 's783861360'] | [3948.0, 2940.0] | [28.0, 17.0] | [451, 90] |
p02771 | u998169143 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["import numpy as np\nA, B, C = map(int, input().split())\nprint(A, B, C)\n\n\nif len(set([A, B, C])) == 2:\n print('Yes')\nelse:\n print('No')\n", "import numpy as np\nA, B, C = map(int, input().split())\n#print(A, B, C)\n\n\nif len(set([A, B, C])) == 2:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s841236161', 's006709460'] | [12488.0, 12488.0] | [159.0, 153.0] | [140, 141] |
p02771 | u999983491 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['arr = map(int, input().split())\nif len(set(a)) == 2:\n print("Yes")\nelse:\n print("No")', 'N = list(map(int, input().split()))\nprint("Yes" if len(set(N)) == 2 else "No")\n'] | ['Runtime Error', 'Accepted'] | ['s627049508', 's944339765'] | [3064.0, 2940.0] | [17.0, 18.0] | [91, 79] |
p02772 | u000040786 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n = int(input())\nA = list(map(int, input().split()))\nprint("APPROVED" if all(a&1 | a%3==0 | a%5==0 for a in A) else "DENIED")', 'n = int(input())\nA = list(map(int, input().split()))\nprint("APPROVED" if all(a%2==0 | a%3==0 | a%5==0 for a in A) else "DENIED")', 'input()\nA=list(map(int,input().split()))\nprint("APPROVED" if all(a&1 or a%3==0 or a%5==0 for a in A) else "DENIED")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s010902144', 's168414200', 's292032878'] | [9172.0, 9092.0, 9140.0] | [30.0, 28.0, 28.0] | [125, 128, 115] |
p02772 | u000085263 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n= int(input())\nl= list(map(int, input().split()))\nans= "APPROVED"\nfor i in l:\n if i%2==0:\n if i%3 != 0 or i%5 !=0:\n ans= "DENIED"\nprint(ans)', 'n= int(input())\nl= list(map(int, input().split()))\nans= "APPROVED"\nfor i in l:\n if i%2==0:\n if i%3 != 0 and i%5 !=0:\n ans= "DENIED"\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s923554162', 's277485520'] | [9068.0, 9120.0] | [27.0, 30.0] | [150, 151] |
p02772 | u007886915 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['import sys\nn=int(input())\nnl=list(map(int, input().split(" ")))\n\nfor i in range(n):\n if nl[i]%2==0 :\n\u3000\u3000if nl[i]%6!=0 or nl[i]%10!=0:\n print("DENIED")\n sys.exit()\n \n\nprint("APPROVED")\n', 'import sys\nn=int(input())\nnl=list(map(int, input().split(" ")))\n\nfor i in range(n):\n if nl[i]%2==0:\n #print(nl[i]%6,nl[i]%10)\n if nl[i]%6 !=0 and nl[i]%10!=0:\n print("DENIED")\n sys.exit()\nprint("APPROVED")\n'] | ['Runtime Error', 'Accepted'] | ['s603478176', 's994648861'] | [2940.0, 2940.0] | [17.0, 17.0] | [207, 212] |
p02772 | u008608569 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['N = int(input())\ns = [int(input()) for _ in range(N)]\ncond = True\nfor i in s:\n if i%2 == 0:\n if i%3 == 0 or i%5 == 0:\n continue\n else:\n cond = False\n break\nif cond is True:\n print("APPROVED")\nelse:\n print("DENIED")', 'N = int(input())\ns = list(map(int, input().split()))\ncond = True\nfor i in s:\n if i%2 == 0:\n if i%3 == 0 or i%5 == 0:\n continue\n else:\n cond = False\n break\nif cond is True:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Runtime Error', 'Accepted'] | ['s700429892', 's551037103'] | [3056.0, 3060.0] | [17.0, 17.0] | [238, 237] |
p02772 | u019113646 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['rangeNum = int(input())\nn = list(map(int, input().split()))\n\nans = True\nfor ni in range(rangeNum):\n if n[ni] % 2 == 0:\n if n[ni] % 3 == 0:\n ans = True\n elif n[ni] % 5 == 0:\n ans = True \n else:\n ans = False\n else:\n ans = False\nif ans==True:\n print("APPROVED")\nelse:\n print("DENIED")', 'rangeNum = int(input())\nn = list(map(int, input().split()))\n\nfor ni in range(rangeNum):\n if n[ni] % 2 == 0:\n if n[ni] % 3 == 0:\n print("APPROVED")\n elif n[ni] % 5 == 0:\n print("APPROVED")\n else:\n print("DENIED")\n else:\n print("DENIED")', 'rangeNum = int(input())\nn = list(map(int, input().split()))\n\nfor ni in range(rangeNum):\n if n[ni]%2 == 0:\n if n[ni]%3 == 0:\n continue\n elif n[ni]%5 == 0:\n continue\n else:\n print("DENIED")\n exit()\n else:\n continue\nprint("APPROVED")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s574357552', 's969939844', 's367839559'] | [3064.0, 3060.0, 3060.0] | [17.0, 18.0, 17.0] | [354, 302, 308] |
p02772 | u020798319 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n = int(input())\na = list(map(int,input().split()))\nfor i in range(len(a)):\n if a[i] %2 == 0 and (a[i] % 3 != 0 or a[i] %5!= 0):\n print("DENIED")\n break\n else:\n print("APPROVED")\n break', 'n = int(input())\na = list(map(int,input().split()))\nc = 0\nb = 0\nfor i in range(len(a)):\n if i % 2 == 0:\n c += 1\n elif a[i] %2 == 0 and (a[i] % 3 != 0 or a[i] %5!= 0):\n b += 1\nif c == b:\n print("APPROVED")\nelse:\n print("DENIED")', 'n = int(input())\na = list(map(int,input().split()))\ndenied = False\nfor i in range(len(a)):\n if a[i] % 2 == 0:\n if (a[i] % 3 != 0 and a[i] % 5 != 0) :\n print ("DENIED")\n denied = True\n break\n \nif not denied :\n print ("APPROVED")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s238160828', 's610747730', 's117704410'] | [9108.0, 9096.0, 9080.0] | [28.0, 29.0, 29.0] | [199, 237, 253] |
p02772 | u021022333 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['def main():\n N = int(input())\n A = list(map(int, input().split()))\n\n ans = "APROVED"\n for ai in A:\n if ai%2 == 0:\n if ai%3 > 0 and ai%5 > 0:\n ans = "DENIED"\n break\n print(ans)\n\n return\n\nif __name__ == "__main__":\n main()', 'def main():\n N = int(input())\n A = list(map(int, input().split()))\n\n ans = "APPROVED"\n for ai in A:\n if ai%2 == 0:\n if ai%3 > 0 and ai%5 > 0:\n ans = "DENIED"\n break\n print(ans)\n\n return\n\nif __name__ == "__main__":\n main()'] | ['Wrong Answer', 'Accepted'] | ['s123278400', 's886056574'] | [3060.0, 3060.0] | [17.0, 17.0] | [289, 290] |
p02772 | u021906447 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["N = int(input())\n\n\nA_list = list(map(int,input().split()))\n\nfor i in A_list:\n if i%2==0 and (i%3!=0 and i%5!=0):\n a+=1\n\nif a>0:\n print('DENIED')\nelse:\n print('APPROVED')", "N = int(input())\n\n\nA_list = list(map(int,input().split()))\n\na=0\nfor i in A_list:\n if i%2==0 and (i%3!=0 and i%5!=0):\n a+=1\n\nif a>0:\n print('DENIED')\nelse:\n print('APPROVED')"] | ['Runtime Error', 'Accepted'] | ['s799375698', 's837455538'] | [3060.0, 2940.0] | [18.0, 18.0] | [210, 189] |
p02772 | u023540496 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n = int(input())\na = (int(num) for num in input().split())\nans = "APPROVED"\nfor i in range(n):\n if a[i] % 2 == 0 and a[i] % 3 != 0 and a[i] % 5 != 0:\n ans = "DENIED"\nprint(ans)', 'n = int(input())\na = [int(num) for num in input().split()]\nans = "APPROVED"\nfor i in range(n):\n if a[i] % 2 == 0 and a[i] % 3 != 0 and a[i] % 5 != 0:\n ans = "DENIED"\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s418943105', 's976155599'] | [2940.0, 2940.0] | [17.0, 17.0] | [180, 180] |
p02772 | u024965372 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n = int(input())\na = map(int, input().split())\n\nfor i in range(n):\n no = a[i]\n if (no%2==0) and (no%3!=0) and (no%5!=0):\n print('DENIED')\n exit()\nprint('APPROVED')", "n = int(input())\na = list(map(int, input().split()))\n\nfor i in range(n):\n no = a[i]\n if (no%2==0) and (no%3!=0) and (no%5!=0):\n print('DENIED')\n exit()\nprint('APPROVED')"] | ['Runtime Error', 'Accepted'] | ['s963072998', 's520800696'] | [9064.0, 9176.0] | [24.0, 26.0] | [183, 189] |
p02772 | u025331334 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n = int(input())\nlist = input().split()\nflg=True\nfor i in list :\n\ti = int(i)\n\tif i%2!=0 and (i%3!=0 or i%5!=0):\n\t\tflg=False\n\t\t\nif flg:\n\tprint("APPROVED")\nelse:\n\tprint("DENIED")', 'n = int(input())\nlist = input().split()\nflg=True\nfor i in list :\n\ti = int(i)\n\tif i%2==0 and (i%3!=0 or i%5!=0):\n\t\tflg=False\n\t\t\nif flg:\n\tprint("APPROVED")\nelse:\n\tprint("DENIED")', 'n = int(input())\nlist = input().split()\nflg=True\nfor i in list :\n\ti = int(i)\n\tif i%2!=0 and i%3!=0 and i%5!=0:\n\t\tflg=False\n\t\t\nif flg:\n\tprint("APPROVED")\nelse:\n\tprint("DENIED")', 'n = int(input())\nlist = input().split()\nflg=True\nfor i in list :\n\ti = int(i)\n\tif i%2==0 and not(i%3==0 or i%5==0):\n\t\tflg=False\n\t\t\nif flg:\n\tprint("APPROVED")\nelse:\n\tprint("DENIED")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s164309491', 's233672003', 's918185498', 's705035953'] | [2940.0, 3060.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [176, 176, 175, 179] |
p02772 | u025389922 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["x=list(map(int, input().split()))\nfalse=0\n\nfor i in range(1,len(x)):\n\tif x[i]%2 ==0:\n \tif x[i]%3!=0 or x[i]%5!=0\n \tfasle=1\nif false==1:\n\tprint('APPROVED')\nelse:\n\tprint('DENIED')", "x=list(map(int, input().split()))\nfalse=0\n \nfor i in range(1,len(x)):\n if x[i]%2 ==0:\n if x[i]%3!=0 or x[i]%5!=0:\n false=1\nif false==1:\n\tprint('APPROVED')\nelse:\n\tprint('DENIED')\n", "x=list(map(int, input().split()))\nfalse=0\n \nfor i in range(1,len(x)):\n if x[i]%2 ==0:\n if x[i]%3!=0 and x[i]%5!=0:\n false=false+1\nif false!=0:\n\tprint('APPROVED')\nelse:\n\tprint('DENIED')", "x=list(map(int, input().split()))\nfalse=0\n \nfor i in range(1,len(x)):\n if x[i]%2 ==0:\n if x[i]%3!=0 or x[i]%5!=0:\n false=false+1\nif false!=0:\n\tprint('APPROVED')\nelse:\n\tprint('DENIED')", "x=list(map(int, input().split()))\nfalse=0\n\nfor i in range(1,x[0]+1):\n if x[i]%2 == 0:\n if x[i]%3 != 0 and x[i]%5 != 0:\n false=false+1\nif false==0:\n\tprint('APPROVED')\nelse:\n\tprint('DENIED')", "x=list(map(int, input().split()))\nfalse=0\n\nfor i in range(1,x[0]):\n if x[i]%2 == 0:\n if x[i]%3 != 0 or x[i]%5 != 0:\n false=false+1\nif false!=1:\n\tprint('APPROVED')\nelse:\n\tprint('DENIED')", "n=input()\na=list(map(int,input().split()))\nfor x in a:\n if x%2 == 1:\n continue\n if x%3==0 or x%5 == 0:\n continue\n else:\n print('DENIED')\n break\nelse:\n print('APPROVED')"] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s020919007', 's379123387', 's520743501', 's568715314', 's655151717', 's884838467', 's721039807'] | [2940.0, 2940.0, 3188.0, 3060.0, 3060.0, 3060.0, 3064.0] | [17.0, 18.0, 19.0, 17.0, 17.0, 17.0, 19.0] | [187, 199, 205, 204, 209, 206, 208] |
p02772 | u026402121 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["N = input()\nA = map(int,(input().split()))\n\nfor n in A:\n if (n % 2 == 1) or (n % 6 == 0) or (n % 10 == 0):\n print('APPROVED')\n else:\n print('DENIED')", "N = input()\nA = map(int,(input().split()))\n\noutput = 'APPROVED'\n\nfor n in A:\n if (n % 2 == 0) and (n % 6 != 0) or (n % 10 != 0):\n output = 'DENIED'\n \nprint(output)", "N = input()\nA = map(int,(input().split()))\n\noutput = 'APPROVED'\nfor n in A:\n if (n % 2 == 0) and (n % 6 != 0) and (n % 10 != 0):\n output = 'DENIED'\n \nprint(output)"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s648551185', 's766845152', 's654994076'] | [3060.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [169, 180, 180] |
p02772 | u030410515 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['N=int(input())\nc=list(map(int,input().split()))\n\nfor i in range(N):\n\n if c[i]%2==0:\n if c[i]%3==0 or c[i]%5==0:\n else:\n print("DENIED")\n exit(0)\n\nprint("APPROVED")\n', 'N=int(input())\nc=list(map(int,input().split()))\nflag=0\nfor i in range(N):\n if c[i]%2==0:\n if c[i]%3==0 or c[i]%5==0:\n flag=1\n else:\n flag=0\n print("DENIED")\n exit(0)\n\nif flag==1:\n print("APPROVED")\nelse:\n print("DENIED!)', 'N=int(input())\nc=list(map(int,input().split()))\n\nfor i in range(N):\n\n if c[i]%2==0:\n if c[i]%3==0 or c[i]%5==0:\n continue\n\n else:\n print("DENIED")\n exit(0)\n\nprint("APPROVED")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s296001104', 's991678698', 's892935122'] | [2940.0, 3064.0, 3060.0] | [17.0, 17.0, 17.0] | [203, 287, 224] |
p02772 | u031722966 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['def main():\n N = int(input())\n A = list(map(int,input().split()))\n i = 0\n s = ""\n while i < N:\n if A[i] % 2 == 0:\n if (A[i] % 3) == 0 or (A[i] % 5) == 0:\n s += "a"\n else:\n s += "d"\n i += 1\n if s in "d":\n print("APPROVED")\n else:\n print("DENIED")\nmain()', 'def main():\n N = int(input())\n A = list(map(int,input().split()))\n i = 0\n s = ""\n while i < N:\n if A[i] % 2 == 0:\n if (A[i] % 3) == 0 or (A[i] % 5) == 0:\n continue\n else:\n print("DENIED")\n i += 1\n print("APPROVED")\nmain()', 'def main():\n N = int(input())\n A = list(map(int,input().split()))\n i = 0\n while i < N:\n if A[i] % 2 == 0:\n if (A[i] % 3) != 0 and (A[i] % 5) != 0:\n return("DENIED")\n break\n i += 1\n return("APPROVED")\nprint(main())'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s019662070', 's802001451', 's477611467'] | [3060.0, 2940.0, 3060.0] | [17.0, 2104.0, 19.0] | [353, 305, 283] |
p02772 | u032955959 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n=int(input())\n\na=list(map(int,input().split()))\n\nt=1\n\nfor i in range(n):\n if a[i]%2==0 and a[i]%3==0 and a[i]%5==0:\n t=1\n elif a[i]%2==1:\n t=1\n else:\n t=0\n break \n\nif t==1:\n print("APPROVED")\nelse:\n print("DENIED")', 'n=int(input())\n\na=list(map(int,input().split()))\n\nt=1\n\nfor i in range(n):\n if a[i]%2==0 and a[i]%3==0:\n t=1\n elif a[i]%2==0 and a[i]%5==0:\n t=1\n elif a[i]%2==1:\n t=1\n else:\n t=0\n break \n\nif t==1:\n print("APPROVED")\nelse:\n print("DENIED")\n'] | ['Wrong Answer', 'Accepted'] | ['s711390741', 's136064843'] | [9148.0, 9188.0] | [31.0, 31.0] | [258, 291] |
p02772 | u035420666 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["ans = 'APPROVED'\n\nN = int(input())\nA = input().split()\n\nfor i in range(N):\n if (int(A[i])%2 == 0) and (int(A[i])%3 != 0) and int(A[i])%5 != 0):\n ans = 'DENIED'\n break\n\nprint(ans)\n", "ans = 'APROVED'\n\nN = int(input())\nA = input().split()\n\nfor i in range(N):\n if (int(A[i])%2 == 0) and not((int(A[i])%3 != 0) and (int(A[i])%5 != 0)):\n ans = 'DENIED'\n break\n\nprint(ans)\n", "ans = 'APROVED'\n\nN = int(input())\nA = input().split()\n\nfor i in range(N):\n if (int(A[i])%2 == 0) and (int(A[i])%3 != 0) and (int(A[i])%5 != 0):\n ans = 'DENIED'\n break\n\nprint(ans)\n", "ans = 'APROVED'\n\nN = int(input())\nA = input().split()\n\nfor i in range(N):\n if (int(A[i])%2 == 0) and (int(A[i])%3 != 0) and (int(A[i])%5 != 0):\n ans = 'DENIED'\n break\n\nprint(ans)\n", "ans = 'APPROVED'\n\nN = int(input())\nA = input().split()\n\nfor i in range(N):\n if (int(A[i])%2 == 0) and (int(A[i])%3 != 0) and (int(A[i])%5 != 0):\n ans = 'DENIED'\n break\n\nprint(ans)\n"] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s039480883', 's095847369', 's447784495', 's942617302', 's481583925'] | [2940.0, 2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 17.0] | [196, 201, 196, 196, 197] |
p02772 | u036340997 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n = int(input().split())\nfor a in list(map(int, input().split())):\n if a % 2 == 0:\n if a % 3 != 0 and a % 5 != 0:\n print('DENIED')\n break\nelse:\n print('APPROVED')", "n = int(input())\nfor a in list(map(int, input().split())):\n if a % 2 == 0:\n if a % 3 != 0 and a % 5 != 0:\n print('DENIED')\n break\nelse:\n print('APPROVED')\n"] | ['Runtime Error', 'Accepted'] | ['s970916360', 's259362004'] | [2940.0, 2940.0] | [17.0, 17.0] | [177, 170] |
p02772 | u044138790 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n = int(input())\na = list((int(x) for x in input().split()))\nfor num in a:\n if num%2 == 0:\n if num%3 != 0 and num%5 != 0:\n print('DENIED')\n exit()\nprint('APPROVED')\n", "n = int(input())\na = list((int(x) for x in input().split()))\nfor num in a:\n if num%2 == 0:\n if not num%3 == 0 and num%5 == 0:\n print('DENIED')\n exit()\nprint('APPROVED')\n", "n = int(input())\na = (int(x) for x in input().split())\nfor num in a:\n if num%2 = 0:\n if num%3 != 0 and num%5 != 0:\n print('DENIED')\n exit()\nprint('APPROVED')", "n = int(input())\na = (int(x) for x in input().split())\nfor num in a:\n if num%6 != 0 and num % 10 != 0:\n print('DENIED')\n exit()\nprint('APPROVED')", "n = int(input())\na = list(map(int.input().split()))\nfor num in a:\n if num%2 == 0:\n if num%3 != 0 and num%5 != 0:\n print('DENIED')\n exit()\nprint('APPROVED')\n", "n = int(input())\na = list((int(x) for x in input().split()))\nfor num in a:\n if num%6 != 0 and num % 10 != 0:\n print('DENIED')\n exit()\nprint('APPROVED')\n", "n = int(input())\na = (int(x) for x in input().split())\nfor num in a:\n if num%2 == 0:\n if num%3 != 0 and num%5 != 0:\n print('DENIED')\n exit()\nprint('APPROVED')\n", "n = int(input())\na = list((int(x) for x in input().split()))\nfor num in a:\n if num%2 == 0:\n if num%3 != 0 and num%5 != 0:\n print('DENIED')\n exit()\nprint('APPROVED')\n"] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s029142425', 's180774147', 's265104313', 's293180007', 's597313641', 's669246579', 's847984166', 's971296524'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0] | [18.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 18.0] | [175, 183, 167, 152, 166, 159, 169, 179] |
p02772 | u044419435 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n = int(input())\nnumbers = input().split()\nfor i in range(n):\n n = int(numbers[i])\n if n % 3 != 0 and n % 5 != 0:\n print('DENIED')\n exit()\nprint('APPROVED')", "n = int(input())\nnumbers = input().split()\nfor i in range(n):\n n = int(numbers[i])\n if n % 2 == 0 and n % 3 != 0 and n % 5 != 0:\n print('DENIED')\n exit()\nprint('APPROVED')\n"] | ['Wrong Answer', 'Accepted'] | ['s194736951', 's185062889'] | [2940.0, 2940.0] | [17.0, 17.0] | [176, 192] |
p02772 | u045953894 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n = int(input())\na = list(map(int,input().split()))\nflag = 0\n\nfor i in a:\n if i % 2 == 0:\n if i % 3 == 0:\n flag = 1\n pass\n elif i % 5 == 0:\n flag = 1\n pass\n else:\n print('DENIED')\n flag = 0\n break\n else:\n flag = 0\n \nif flag == 1:\n print('APPROVED')\nelse:\n print('DENIED')\n", "n = int(input())\na = list(map(int,input().split()))\nflag = 0\n\nfor i in a:\n if i % 6 == 0 or i % 10 == 0:\n flag = 1\n else:\n flag = 0\n \nif flag == 1:\n print('APPROVED')\nelse:\n print('DENIED')\n", "n = int(input())\na = list(map(int,input().split()))\nflag = 0\n\nfor i in a:\n if i % 2 == 0:\n if i % 3 == 0:\n flag = 1\n pass\n elif i % 5 == 0:\n flag = 1\n pass\n else:\n print('DENIED')\n flag = 0\n break\n else:\n print('DENIED')\n \nif flag == 1:\n print('APPROVED')\n \n", "n = int(input())\na = list(map(int,input().split()))\nflag = 0\n \nfor i in a:\n if i % 2 == 0:\n if i % 3 != 0 and i % 5 != 0:\n flag = 0\n break\n \n \nif flag == 1:\n print('APPROVED')\nelse:\n print('DENIED')", "n = int(input())\na = list(map(int,input().split()))\nflag = 1\n\nfor i in a:\n if i % 2 == 0:\n if i % 3 == 0 or i % 5 == 0:\n flag = 1\n else:\n flag = 0\n break\n \nif flag == 1:\n print('APPROVED')\nelse:\n print('DENIED')\n \n"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s243828990', 's257498073', 's600438039', 's766364479', 's670123799'] | [3060.0, 2940.0, 3064.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0, 17.0, 17.0] | [326, 203, 312, 220, 240] |
p02772 | u047502873 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["\n\n\n\n\n\n\nfor i in range(N):\n if A[i] % 2 == 0:\n if A[i] % 3 != 0 and A[i] % 5 != 0:\n print('DENIED')\n exit()\n\nelse:\n print('APPROVED')", "\n\nN = int(input())\nA = list(map(int, input().split()))\n\n\n\n\nfor i in range(N):\n if A[i] % 2 == 0:\n if A[i] % 3 != 0 and A[i] % 5 != 0:\n print('DENIED')\n exit()\n\nelse:\n print('APPROVED')"] | ['Runtime Error', 'Accepted'] | ['s446948433', 's729351951'] | [9080.0, 9172.0] | [24.0, 29.0] | [167, 219] |
p02772 | u050708958 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n = int(input())\na = [int(i) for i in input().split()]\nf = True\nfor i in a:\n if i % 2:\n continue\n elif i % 3 != 0 or i % 5 != 0:\n f = False\n break\n\nprint('APPROVED' if f else 'DENIED')\n", "n = int(input())\na = [int(i) for i in input().split()]\nf = True\nfor i in a:\n if i % 2:\n continue\n if i % 3 and i % 5:\n f = False\n break\n\nprint('APPROVED' if f else 'DENIED')\n"] | ['Wrong Answer', 'Accepted'] | ['s256851007', 's950254714'] | [2940.0, 2940.0] | [17.0, 18.0] | [212, 201] |
p02772 | u052838115 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["N=int(input())\nA=list(map(int,input().split()))\na=[]\nb=[]\nfor i in A:\n if i%2==0:\n a.append(i)\nfor n in a:\n if n%3==0 or n%5==0:\n b.append(n)\nif len(a)==len(b):\n print('APPROAD')\nelse:\n print('DENIED')", "N=int(input())\nA=list(map(int,input().split()))\na=[]\nb=[]\nfor i in A:\n if i%2==0:\n a.append(i)\nfor n in a:\n if n%3==0 or n%5==0:\n b.append(n)\nif len(a)==len(b):\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Wrong Answer', 'Accepted'] | ['s579785021', 's999962592'] | [9116.0, 9184.0] | [31.0, 28.0] | [227, 228] |
p02772 | u053535689 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['# 155b\n\ndef atc_155b(input_value: str) -> str:\n N = int(input_value[0])\n Ai = [int(ai) for ai in input_value[1].split(" ")]\n for i in range(0, N):\n if Ai[i] % 2 == 0 and Ai[i] % 3 != 0 and Ai[i] % 5 != 0:\n return "DENIED"\n return "APPROVED"\n\nN = input()\nAi = input()\nprint(atc_155b[N, Ai])\n', '# 155b\n\ndef atc_155b(input_value: str) -> str:\n N = int(input_value[0])\n Ai = [int(ai) for ai in input_value[1].split(" ")]\n for i in range(0, N):\n if Ai[i] % 2 == 0 and Ai[i] % 3 != 0 and Ai[i] % 5 != 0:\n return "DENIED"\n return "APPROVED"\n\nN = input()\nAi = input()\nprint(atc_155b([N, Ai]))\n'] | ['Runtime Error', 'Accepted'] | ['s274792370', 's043998909'] | [9140.0, 9120.0] | [23.0, 27.0] | [320, 322] |
p02772 | u054825571 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['N=int(input())\nA=list(map(int,input().split()))\np=True\nfor a in A:\n if a%2==0:\n if not a%3==0 or a%5==0:\n p=False\n break\nprint("APPROVED" if p else "DENIED")', 'N=int(input())\nA=list(map(int,input().split()))\np=True\nfor a in A:\n if a%2==0:\n if not (a%3==0 or a%5==0):\n p=False\n break\nprint("APPROVED" if p else "DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s213185275', 's707120848'] | [9064.0, 9068.0] | [31.0, 26.0] | [171, 173] |
p02772 | u055687574 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['N = int(input())\nA = map(int, input().split())\n\nA_ = [a for a in A if a % 2 == 0 and a % 3 == 0 and a % 5 == 0]\n\nif len(A_) == N:\n print("APPROVED")\nelse:\n print("DENIED")', 'N = input()\nA = map(int, input().split())\n\ndef f(x):\n if x % 2 == 0:\n if x % 3 == 0 | x % 5 == 0:\n return True\n else:\n return False\n else:\n return True\nA_ = map(f, A)\n\n\nif False in A_:\n print("DENIED")\nelse:\n print("APPROVED")', 'N = int(input())\nA = map(int, input().split())\n\nA_ = [a for a in A if a % 2 == 0 and a % 3 != 0 and a % 5 != 0]\n\nif len(A_) > 0:\n print("DENIED")\nelse:\n print("APPROVED")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s295742487', 's443680480', 's569394321'] | [3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [177, 274, 176] |
p02772 | u056599756 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n=int(input())\n\na=list(map(int, input().split()))\n\nfor i in range(n):\n if a[i]%2==0:\n if a[i]%3==0 and a[i]%5==0:\n print("APPROVED")\n exit()\nprint("DENIED")', 'n=int(input())\n\na=list(map(int, input().split()))\n\nfor i in range(n):\n if a[i]%2==0:\n if a[i]%3==0 and a[i]==0:\n print("APPROVED")\n exit()\nprint("DENIED")', 'n=int(input())\n\na=list(map(int, input().split()))\n\nfor i in range(n):\n if a[i]%2==0:\n if a[i]%3!=0 and a[i]%5!=0:\n print("DENIED")\n exit()\nprint("APPROVED")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s379749492', 's610178083', 's574718248'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [188, 186, 188] |
p02772 | u059684599 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["N = int(input())\nA = list(map(int,input().split()))\nans = 'APPROVED'\nfor a in A:\n if a % 2 == 0:\n if a % 3 != 0 or a % 5 != 0:\n ans = 'DENIED'\n exit()\nprint(ans)", "N = int(input())\nA = list(map(int,input().split()))\nans = 'APPROVED'\nfor a in A:\n if a % 2 == 0:\n if a % 3 != 0 and a % 5 != 0:\n ans = 'DENIED'\n break\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s210325509', 's641398175'] | [2940.0, 2940.0] | [17.0, 17.0] | [193, 193] |
p02772 | u065774356 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['N=int(input())\nn=list(map(int, input().split()))\na=[i for i in n if i%2==0]\nA=len(a)\nb=[i for i in a if i%3!=0 and i%5!=0]\nB=len(b)\nprint("Yes" if B==0 else "No")\n', 'N=int(input())\nn=list(map(int, input().split()))\na=[i for i in n if i%2==0]\nA=len(a)\nb=[i for i in a if i%3!=0 and i%5!=0]\nB=len(b)\nprint("APPROVED" if B==0 else "DENIED")\n'] | ['Wrong Answer', 'Accepted'] | ['s638931560', 's309682400'] | [3060.0, 3064.0] | [17.0, 17.0] | [163, 172] |
p02772 | u067273593 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["N = int(input())\n\na = [0]*N\na = list(map(int, input().split()))\nfor i in range(N):\n \n if a[i]%2 == 0:\n if a[i]%3 != 0 and a[i]%5 != 0:\n print('DENIED')\n break\n if i == N-1:\n print('APPROVE')", "N = int(input())\n\na = [0]*N\na = list(map(int, input().split()))\nfor i in range(N):\n \n if a[i]%2 == 0:\n if a[i]%3 != 0 and a[i]%5 != 0:\n print('DENIED')\n break\n if i == N-1:\n print('APPROVE')", "N = int(input())\n\na = [0]*N\na = list(map(int, input().split()))\nfor i in range(N):\n \n if a[i]%2 == 0:\n if a[i]%3 != 0 and a[i]%5 != 0:\n print('DENIED')\n break\n if i == N-1:\n print('APPROVED')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s330678576', 's393809163', 's019685231'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [209, 209, 210] |
p02772 | u067447457 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n=int(input())\nl=[]\na=[]\nb=[]\nfor i in range(n):\n m=[int(j) for j in input().split()]\n print(m) \n for k in m:\n if k%2==0:\n l.append(k)\n\n if len(l)==0:\n print("DENIED")\n \n else:\n for p in l:\n if p%3==0 or p%5==0:\n a.append(p)\n else:\n b.append(p)\n\n if len(a)==len(l):\n print("APPROVED")\n \n else:\n print("DENIED")\n break ', 'n=int(input())\nl=[]\na=[]\nb=[]\nfor i in range(n):\n m=[int(j) for j in input().split()]\n \n for k in m:\n if k%2==0:\n l.append(k)\n \n for p in l:\n if p%3==0 or p%5==0:\n a.append(p)\n else:\n b.append(p)\n \n if len(a)==len(l):\n print("APPROVED")\n else:\n print("DENIED")\n break'] | ['Wrong Answer', 'Accepted'] | ['s839960522', 's244196433'] | [3064.0, 3064.0] | [17.0, 18.0] | [479, 359] |
p02772 | u067694718 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n = int(input())\na = [int(i) for i in input().split() if i % 2 == 0]\nfor i in a:\n if a % 3 != 0 and a % 5 != 0:\n print("DENIED")\n exit()\nprint("APPROVED")', 'n = int(input())\na = [int(i) for i in input().split() if int(i) % 2 == 0]\nfor i in a:\n if i % 3 != 0 and i % 5 != 0:\n print("DENIED")\n exit()\nprint("APPROVED")'] | ['Runtime Error', 'Accepted'] | ['s119628034', 's369562342'] | [3060.0, 3060.0] | [17.0, 18.0] | [179, 184] |
p02772 | u068750695 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n=int(input())\na=list(map(int,input().split()))\nfor i in range(n):\n if a[i]%2==0:\n if a[i]%3!=0 or a[i]%5!=0:\n print("DENIED")\n exit()\nprint("APPROVED")', 'n=int(input())\na=list(map(int,input().split()))\nfor i in range(n):\n if a[i]%2==0:\n if a[i]%3!=0 and a[i]%5!=0:\n print("DENIED")\n exit()\nprint("APPROVED")'] | ['Wrong Answer', 'Accepted'] | ['s470948114', 's123564829'] | [3060.0, 3060.0] | [18.0, 17.0] | [166, 167] |
p02772 | u071361440 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n=int(input())\nlst=[]\na,b,c=map(int,input().split())\nlst.append(a)\nlst.append(b)\nlst.append(c)\nfor i in range(0,n):\n if lst[i]%2==0:\n if lst[i]%3==0 or lst[i]%5==0:\n print("APPROVED")\n else:\n print("DENIED")', 'n=int(input())\nlst=list(map(int,input().split()))\nfor i in range(n):\n if lst[i]%2==0:\n if lst[i]%3==0 or lst[i]%5==0:\n result=1\n if result==1:\n print("APPROVED")\n else:\n print("DENIED")', 'n=int(input())\ncheck=list(map(int,input().split()))\nf=0\nfor i in range(n):\n if check[i]%2==0:\n if check[i]%3!=0 or check[i]%5!=0:\n f=1\n \nif f==1:\n print("DENIED")\nelse:\n print("APPROVED")', 'n = int(input())\n ls = list(map(int,input().split(\' \')))\n f=0\n for i in range(0,n):\n if(ls[i]%2==0):\n if(ls[i]%3!=0 and ls[i]%5!=0):\n f=1\n if(f):\n print("DENIED")\n else:\n print("APPROVED")\n ', 'n=map(int,input())\ncheck=list(map(int,input().split()))\nf=0\nfor i in range(n):\n if check[i]%2==0:\n if check[i]%3==0 or check[i]%5==0:\n f=1\n \nif f==1:\n print("APPROVED")\nelse:\n print("DENIED")', 'n=int(input())\nlst=[]\nfor i in range(0,n):\n ele=int(input())\n lst.append(ele)\n\nfor i in range(0,n):\n if lst[i]%2==0:\n if lst[i]%3==0 or lst[i]%5==0:\n print("APPROVED")\n else:\n print("DENIED")', 'n=int(input())\ncheck=list(map(int,input().split()))\nf=0\nfor i in range(n):\n if check[i]%2==0:\n if check[i]%3!=0 and check[i]%5!=0:\n f=1\n \nif f==1:\n print("DENIED")\nelse:\n print("APPROVED")'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s029422983', 's158084557', 's212661307', 's536951311', 's778291828', 's944221718', 's676451644'] | [3188.0, 3064.0, 3060.0, 2940.0, 3060.0, 3060.0, 3060.0] | [19.0, 18.0, 17.0, 17.0, 17.0, 18.0, 17.0] | [246, 202, 229, 263, 229, 236, 230] |
p02772 | u072717685 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["import sys\nread = sys.stdin.read\nreadlines = sys.stdin.readlines\nimport numpy as np\ndef main():\n a = np.fromstring(read(), np.int64, sep=' ')[1:]\n a = a[a % 2 == 0]\n if np.all((a % 3 == 0) or (a % 5 == 0)):\n print('APPROVED')\n else:\n print('DENIED')\n\nif __name__ == '__main__':\n main()\n", "import sys\nread = sys.stdin.read\nreadlines = sys.stdin.readlines\nimport numpy as np\ndef main():\n a = np.fromstring(read(), np.int64, sep=' ')[1:]\n a = a[a % 2 == 0]\n if np.all((a % 3 == 0) | (a % 5 == 0)):\n print('APPROVED')\n else:\n print('DENIED')\n\nif __name__ == '__main__':\n main()\n"] | ['Runtime Error', 'Accepted'] | ['s986513958', 's708471893'] | [26916.0, 27288.0] | [117.0, 120.0] | [315, 314] |
p02772 | u075303794 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n = int(input())\na = list(map(int, input().split()))\nans = DENIED\n\nfor i in range(n):\n if a[i]%2 == 1:\n continue\n else:\n if a[i]%3==0 or a[i]%5==0:\n continue\n else:\n break\nelse:\n ans = APPROVED\n\nprint(ans)', "n = int(input())\na = list(map(int, input().split()))\nans = 'DENIED'\n \nfor i in range(n):\n if a[i]%2 == 1:\n continue\n else:\n if a[i]%3==0 or a[i]%5==0:\n continue\n else:\n break\nelse:\n ans = 'APPROVED'\n \nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s323724230', 's543307842'] | [3060.0, 3060.0] | [17.0, 17.0] | [227, 233] |
p02772 | u076363290 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["N = int(input())\nS = list(map(int,input().split()))\nB= list()\nX = list()\nfor i in S:\n if i % 2== 0:\n B.append(i)\nfor n in B:\n if n % 3 == 0 or n % 5 == 0:\n X.append(n)\nif len(B) == len(X):\n print('APPROVE')\nelse:\n print('DENIED')\n\n\n\n", "N = int(input())\nS = list(map(int,input().split()))\nB= list()\nX = list()\nfor i in S:\n if i % 2== 0:\n B.append(i)\nfor n in B:\n if n % 3 == 0 or n % 5 == 0:\n X.append(n)\nif len(B) == len(X):\n print('APPROVED')\nelse:\n print('DENIED')\n\n\n"] | ['Wrong Answer', 'Accepted'] | ['s532520645', 's072157106'] | [9188.0, 9112.0] | [29.0, 27.0] | [259, 259] |
p02772 | u077075933 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['3\n28 27 24', "N = input()\nA = map(int, input().split())\ndef main():\n for a in A:\n if a%2 == 0:\n if a%3 != 0 and a%5 != 0:\n print('DENIED')\n return\n print('APPROVED')\n return\n\nmain()"] | ['Runtime Error', 'Accepted'] | ['s596470367', 's930785233'] | [2940.0, 2940.0] | [18.0, 18.0] | [10, 192] |
p02772 | u086503932 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["N=int(input())\nA=list(map(int,input().split()))\nflag=0\nfor i in range(N):\n if A[i]%2 ==0:\n if A[i]%3==0 or A[i]%5==0:\n else:\n flag=1\nprint(['APPROVED','DENIED'][flag])", "N=int(input())\nA=list(map(int,input().split()))\nflag=0\nfor i in range(N):\n if A[i]%2 ==0:\n if A[i]%3==0 or A[i]%5==0:\n pass\n else:\n flag=1\nprint(['APPROVED','DENIED'][flag])\n"] | ['Runtime Error', 'Accepted'] | ['s330216204', 's674828530'] | [2940.0, 2940.0] | [17.0, 17.0] | [179, 191] |
p02772 | u088115428 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n = int(input())\nl = list(map(int, input().split()))\nfor i in l:\n if(i%2 ==0 and (i%3 ==0 or i%5==0):\n print("APPROVED")\n else:\n print("DENIED")\n ', 'n = int(input());l = list(map(int, input().split()));ans = "APPROVED"\nfor i in (l):\n if(i%2 ==0 and (i%3 !=0 and i%5!=0)):\n ans = "DENIED"\nprint(ans)\n '] | ['Runtime Error', 'Accepted'] | ['s966887687', 's386084675'] | [3064.0, 2940.0] | [18.0, 18.0] | [157, 157] |
p02772 | u089230684 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | [' # getting input on a variable \naa = input()\na = list(map(int, input().split()))\n\ncheck = None\nfor i in a:\n if i%2==0:\n check = True\n else:\n check = False\n break\nif check:\n print("APPROVED")\nelse:\n print("DENIED")', "a = int(input())\nnums = input().split()\nflag = True\nfor i in range (a):\n x = int(nums[i])\n if (x % 2 == 0):\n if not (x % 3 == 0 or x % 5 == 0):\n flag = False\n break\n\nif (flag):\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Wrong Answer', 'Accepted'] | ['s415295996', 's637998729'] | [2940.0, 3060.0] | [17.0, 17.0] | [249, 259] |
p02772 | u089504174 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n=input()\nN=int(n)\nA=input().split()\nfor i in range(N):\n if int(A[i])%2==0:\n if int(A[i])%5==0 or int(A[i])%3==0:\n x+=1\n else:\n x+=1\nif x==N:\n print('APPROVED')\nelse:\n print('DENIED')\n", "N=int(input())\nA=input().split()\nfor i in range(N):\n if int(A[i])%2==0:\n if int(A[i])%5==0 or int(A[i])%3==0:\n x+=1\n else:\n x+=1\nif x==N:\n print('APPROVED')\nelse:\n print('DENIED')", "N=int(input())\nA=input().split\nfor i in range(N):\n if int(A[i])%2==0:\n if int(A[i])%5==0 or int(A[i])%3==0:\n x+=1\n else:\n x+=1\nif x==N:\n print('APPROVED')\nelse:\n print('DENIED')\n\n\n\n", "N=int(input())\nA=input().split()\nx=0\nfor i in range(N):\n if int(A[i])%2==0:\n if int(A[i])%5==0 or int(A[i])%3==0:\n x+=1\n else:\n x+=1\nif x==N:\n print('APPROVED')\nelse:\n print('DENIED')\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s002458198', 's198312841', 's876097819', 's696402144'] | [2940.0, 3060.0, 3060.0, 2940.0] | [18.0, 17.0, 18.0, 17.0] | [199, 194, 196, 199] |
p02772 | u089644470 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n = int(input())\na_list = list(map(int, input().split()))\n\nans = 'APPRONED'\nfor i in range(0, n) :\n if a_list[i]%2 == 0 :\n if (a_list[i]%3)*(a_list[i]%5) != 0 :\n ans = 'DENIED'\n break\nprint(ans)\n", "n = int(input())\na_list = list(map(int, input().split()))\n\nans = 'APPROVED'\nfor i in range(0, n) :\n if a_list[i]%2 == 0 :\n if (a_list[i]%3)*(a_list[i]%5) != 0 :\n ans = 'DENIED'\n break\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s623582807', 's482394545'] | [2940.0, 3060.0] | [17.0, 17.0] | [209, 208] |
p02772 | u090169224 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['X = [int(x) for x in input().split()]\n\nN = X[0]\nX = X[1:]\n\nY = [x for x in X if x%2 == 0]\n\nZ = [y for y in Y if y%3 != 0 and y%5 != 0]\n\nprint(Z)\n\nif len(Z) == 0:\n print("APPROVED")\nelse:\n print("DENIED")', 'N = int(input())\nX = [int(x) for x in input().split()]\n\nY = [x for x in X if x%2 == 0]\n\nZ = [y for y in Y if y%3 != 0 and y%5 != 0]\n\nif len(Z) == 0:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s117564646', 's413661184'] | [3064.0, 3060.0] | [17.0, 18.0] | [209, 196] |
p02772 | u090406054 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n=int(input())\na=list(map(int,input().split()))\nfor i in range(n):\n if (a[i]%2==0 and a[i]%3!=0) or (a[i]%2==0 and a[i]%5!=0):\n print('DENIED')\n exit()\nprint('APPROVED')\n", "n=int(input())\na=list(map(int,input().split()))\nfor i in range(n):\n if a[i]%2==0 and (a[i]%3!=0 and a[i]%5!=0):\n \n print('DENIED')\n exit()\nprint('APPROVED')\n\n\n"] | ['Wrong Answer', 'Accepted'] | ['s917614680', 's046546986'] | [9084.0, 9124.0] | [27.0, 28.0] | [177, 169] |
p02772 | u094425865 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n = int(input())\na = list(map(int,input().split()))\nb = []\nwk = wk1 = 0\n\nfor i in range(n):\n if a[i]%2 == 0:\n b.append(a[i])\n\nfor j in range(len(b)):\n if b[j]%3 == 0 or b[j]%5 == 0:\n wk = 1\n else:\n wk1 = 1\nif wk1 == 1:\n print('DENIED')\nelse:5\n print('APPROVED')", "n = int(input())\na = list(map(int,input().split()))\nb = []\nwk = wk1 = 0\n\nfor i in range(n):\n if a[i]%2 == 0:\n b.append(a[i])\n\nfor j in range(len(b)):\n if b[j]%3 == 0 or b[j]%5 == 0:\n wk = 1\n else:\n wk1 = 1\nif wk1 == 1:\n print('DENIED')\nelse:\n print('APPROVED')"] | ['Runtime Error', 'Accepted'] | ['s177534211', 's328846808'] | [3060.0, 3064.0] | [17.0, 17.0] | [297, 296] |
p02772 | u095844416 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n=int(input())\na=map(int,input().split())\n\nnum = 0\nfor i in a:\n if i % 2 == 0:\n if i % 3 != 0 or i % 5 != 0:\n num='DENIED'\n else:\n num='APPROVED'\n else:\n num='DENIED'\nprint(num)\n\n", "n=int(input())\na=map(int,input().split())\n\nnum = 0\nfor i in a:\n if i % 2 == 0:\n if i % 3 != 0:\n num='DENIED'\n break\n elif i % 5 != 0:\n num='DENIED'\n break\n else:\n num='APPROVED'\n else:\n num='DENIED'\nprint(num)\n\n\n", "n=int(input())\na=map(int,input().split())\n\nnum = 0\nfor i in a:\n if i % 2 == 0 and (i % 3 != 0 and i % 5 != 0):\n num='DENIED'\n break\n else:\n num='APPROVE'\nprint(num)\n\n\n", "n=int(input())\na=map(int,input().split())\nl=[]\nfor i in a:\n if i % 2 == 0:\n l.append(i)\n\nfor i in l:\n if i % 3 == 0 and i % 5 == 0:\n print('APPROVED')\nprint('DENIED')\n\n", "n=int(input())\na=map(int,input().split())\n\nfor i in a:\n if i % 2 == 0 and (i % 3 != 0 and i % 5 != 0):\n print('DENIED')\n break\nelse:\n print('APPROVED')\n\n\n\n"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s300640536', 's522649503', 's566765836', 's760006062', 's089506132'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [200, 251, 182, 176, 169] |
p02772 | u111652094 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['N = int(input())\nA = list(map(int,input().split()))\n\n\nB=[]\n\nfor i in range(N):\n if A[i]%2==1:\n B.append(0)\n elif A[i]%3==0:\n B.append(0)\n elif A[i]%5==0:\n B.append(0)\n else:\n B.append(1)\n\nT = sum(B)\nprint(T)\nif T==0:\n print("APPROVED")\nelse:\n print("DENIED")\n \n', '\nN = int(input())\nA = list(map(int,input().split()))\n\n\nB=[]\n\nfor i in range(N):\n if A[i]%2==1:\n B.append(0)\n elif A[i]%3==0:\n B.append(0)\n elif A[i]%5==0:\n B.append(0)\n else:\n B.append(1)\n\nT = sum(B)\n\nif T==0:\n print("APPROVED")\nelse:\n print("DENIED")\n \n'] | ['Wrong Answer', 'Accepted'] | ['s622969270', 's051724780'] | [3064.0, 3060.0] | [20.0, 17.0] | [314, 307] |
p02772 | u113971909 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["N=int(input())\nA=list(map(int,input().split()))\nret='APPROVED'\nfor i in A:\n if i%2==0 and (i%3==0 or i%5==0):\n continue\n else:\n ret='DENIED'\n break\nprint(ret)", "N=int(input())\nA=list(map(int,input().split()))\nret='APPROVED'\nfor i in A:\n if i%2==0 and (i%3==0 or i%5==0):\n continue\n if i%2==1:\n continue\n else:\n ret='DENIED'\n break\nprint(ret)"] | ['Wrong Answer', 'Accepted'] | ['s340664767', 's656087009'] | [2940.0, 3060.0] | [18.0, 17.0] | [169, 195] |
p02772 | u114720832 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['len=int(input())\nlist = input().split(" ")\nmsg="DENIED"\nfor i in range(len):\n if int(list[i])%2==0 and (int(list[i])==6 or int(list[i]) == 10):\n msg="APPROVED"\n elif int(list[i])%3==0 or int(list[i])%5==0:\n msg="APPROVED"\n else:\n msg="DENIED"\n break\n \nprint(msg)', 'len=int(input())\nlist = input().split(" ")\nmsg="DENIED"\nfor i in range(len):\n if int(list[i])%2==0 and (int(list[i])%3==0 or int(list[i])%5==0):\n msg="APPROVED"\n elif int(list[i])%3==0 or int(list[i])%5==0:\n msg="APPROVED"\n else:\n msg="DENIED"\n break\n \nprint(msg)', 'len=int(input())\nlist = input().split(" ")\nmsg="DENIED"\nfor i in range(len):\n if int(list[i])%2==0 and (int(list[i])%3==0 or int(list[i])%5==0):\n msg="APPROVED"\n elif int(list[i])%2==0:\n msg="DENIED"\n break\n else:\n msg="APPROVED" \nprint(msg)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s152318128', 's464570445', 's289521004'] | [9144.0, 9164.0, 9176.0] | [26.0, 30.0, 28.0] | [278, 279, 257] |
p02772 | u115877451 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["a=int(input())\nb=list(map(int,input().split())\nc=[i for i in b if i%2==0]\nd=len(c)\ne=[j for j in c if i%3==0 or i%5==0]\nf=len(e)\nif d==f:\n print('APPROVED')\nelse:\n print('DENIED')", "a=int(input())\nb=list(map(int,input().split()))\nc=[i for i in b if i%2==0]\nd=len(c)\ne=[j for j in c if j%3==0 or j%5==0]\nf=len(e)\nif d==f:\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Runtime Error', 'Accepted'] | ['s322364909', 's070303486'] | [2940.0, 3188.0] | [17.0, 19.0] | [191, 192] |
p02772 | u117793693 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["import numpy as np\n\nN = int(input())\nA = np.array([int(val) for val in A])\n\nA_even = set(A[A%2==0])\nA_three = set(A[A%3==0])\nA_five = set(A[A%5==0])\n\nA_approve = A_even & (A_three | A_five)\n\nif A_even == A_approve:\n print('APPROVED')\nelse:\n print('DENIED')", "import numpy as np\n \nN = int(input())\nA = input().split()\nA = np.array([int(val) for val in A])\n \nA_even = set(A[A%2==0])\nA_three = set(A[A%3==0])\nA_five = set(A[A%5==0])\n \nA_approve = A_even & (A_three | A_five)\n \nif A_even == A_approve:\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Runtime Error', 'Accepted'] | ['s484120352', 's379761479'] | [21512.0, 23348.0] | [767.0, 275.0] | [262, 286] |
p02772 | u118760114 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n = int(input())\na = [int(x) for x in input().split()]\np = 0\nfor i in range(n):\n \n if a[i]%2 == 0 and a[i]%3 != 0:\n p += 1\n else:\n p = p\n if a[i]%2 == 0 and a[i]%5 != 0:\n p += 1\n else:\n p = p\nif p > 0:\n print("DENIED")\nelse:\n print("APPROVED")\n', 'n = int(input())\na = [int(x) for x in input().split()]\np = 0\nfor i in range(n):\n if a[i]%2 == 0:\n if a[i]%3 != 0 and a[i]%5 != 0:\n p += 1\nif p > 0:\n print("DENIED")\nelse:\n print("APPROVED")\n'] | ['Wrong Answer', 'Accepted'] | ['s231590824', 's569240064'] | [3060.0, 2940.0] | [17.0, 18.0] | [293, 217] |
p02772 | u124499550 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["N = int(input())\nAn = list(map(int,input().split()))\n\nfor i in An:\n if i%2==0:\n if i%3 !=0 and i%5==0:\n print('DENIED')\n exit()\nelse:\n print('APPROVED')\n", "N = int(input())\nAn = list(map(int,input().split()))\n\nfor i in An:\n if i%2==0:\n if i%3 !=0 and i%5!=0:\n print('DENIED')\n exit()\nelse:\n print('APPROVED')"] | ['Wrong Answer', 'Accepted'] | ['s428336572', 's504206668'] | [2940.0, 2940.0] | [17.0, 17.0] | [188, 187] |
p02772 | u125269142 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n = int(inpout())\nnumbers = map(int, input().split())\n\neven_numbers = []\nfor i in numbers:\n if i % 2 == 0:\n even_numbers.append(i)\n\nanswers = []\nfor i in even_numbers:\n if i % 3 == 0 or i % 5 == 0:\n answers.append(i)\n\nif even_numbers == answers:\n print('APPROVED')\nelse:\n print('DENIED')", "n = int(input())\nnumbers = map(int, input().split())\n\neven_numbers = []\nfor i in numbers:\n if i % 2 == 0:\n even_numbers.append(i)\n\nanswers = []\nfor i in even_numbers:\n if i % 3 == 0 or i % 5 == 0:\n answers.append(i)\n\nif even_numbers == answers:\n print('APPROVED')\nelse:\n print('DENIED')\n"] | ['Runtime Error', 'Accepted'] | ['s961400315', 's740159690'] | [9112.0, 9104.0] | [25.0, 29.0] | [297, 297] |
p02772 | u125799132 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["N = int(input())\nA = [int(i) for i in input().split()]\n\nt = 0\nfor i in range(N):\n if A[i]%2 == 0:\n if A[i]%3 != 0 and A[i]%5 != 0:\n t += 1\n break\nprint('APPRPVED' if t == 0 else 'DENIED')", "N = int(input())\nA = [int(i) for i in input().split()]\n\nt = 0\nfor i in range(N):\n if A[i]%2 == 0:\n if A[i]%3 != 0 and A[i]%5 != 0:\n t += 1\n break\nprint('APPROPVED' if t == 0 else 'DENIED')", "N = int(input())\nA = [int(i) for i in input().split()]\nt = 0\nfor i in range(N):\n a = A[i]\n if a%2 == 0:\n if a%3 != 0 and a%5 != 0:\n t += 1\n break\n\nif t == 0:\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s537322065', 's632168203', 's540219981'] | [9060.0, 9084.0, 9164.0] | [28.0, 28.0, 26.0] | [211, 212, 240] |
p02772 | u129961029 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["a=input()\ns=list(map(int, input().split()))\nbad=0\nfor i in s:\n if s%2==0:\n if s%3!=0 or s%5!=0:\n bad+=1\nif bad>0:\n print('DENIED') \n else:\n print('APPROVED')\n\n", "a=input()\ns=list(map(int, input().split()))\nbad=0\nfor i in s:\n if s%2==0:\n if s%3!=0 or s%5!=0:\n bad+=1\nif bad>0:\n print('DENIED') \nelse:\n print('APPROVED')\n\n", "a=int(input())\ns=list(map(int,input().split()))\ncount=0\ngood=0\nfor i in s:\n if i%2==0:\n count+=1\n if i%3==0 or i%5==0:\n good+=1\nif good==count:\n print('APPROVED')\nelse:\n print('DENIED') \n\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s918405860', 's948198824', 's460614848'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [193, 185, 222] |
p02772 | u132266749 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n= int(input())\nlista=[]\nlistanova=[]\nfor x in input().split():\n\tx= int(x)\n\tif x %2 ==0:\n\t\tlista.append(x)\nfor x in lista:\n\tif x %3==0 or x%5==0:\n\t\tlistanova.append(x)\n\nif len(lista)==len(listanova):\n\tprint('APROVED')\nelse:\n\tprint('DENIED')\n", " n= int(input())\n lista=[]\n listanova=[]\n for x in input().split():\n \tx= int(x)\n \tif x %2 ==0:\n \t\tlista.append(x)\n for x in lista:\n \tif x %3==0 or x%5==0:\n \t\tlistanova.append(x)\n \n if len(lista)==len(listanova):\n \tprint('APPROVED')\n else:\n \tprint('DENIED')", "n= int(input())\nlista=[]\nlistanova=[]\nfor x in input().split():\n\tx= int(x)\n\tif x %2 ==0:\n\t\tlista.append(x)\nfor x in lista:\n\tif x %3==0 or x%5==0:\n\t\tlistanova.append(x)\n\nif len(lista)==len(listanova):\n\tprint('APPROVED')\nelse:\n\tprint('DENIED')\n"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s081160910', 's488376225', 's795040540'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0] | [241, 302, 242] |
p02772 | u132878037 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n=int(input())\n\na=list(map(int,input().split()))\nb=0\nfor i in range(len(a)-1):\n if a[i]//2==0:\n if a[i]//3==0 or a[i]//5==0:\n b=b+1\n else:\n b=b+1\n\nif b==n:\n print("APPROVED")\nelse:\n print("DENIED")', 'n=int(input())\n\na=list(map(int,input().split()))\nb=0\nfor i in range(n):\n\n if a[i-1]%2==1:\n b=b+1\n elif a[i-1]%3==0 or a[i-1]%5==0:\n b=b+1\n \nif b==n:\n print("APPROVED")\nelse:\n print("DENIED")\n'] | ['Wrong Answer', 'Accepted'] | ['s137831522', 's942395726'] | [3060.0, 3060.0] | [17.0, 17.0] | [234, 220] |
p02772 | u135360096 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['N = int(input())\nA = list(map(int, input().split()))\nnum = [x for x in A if x %2==0]\nans = True\nfor i in num:\n if i % 3 ==0 or i %5 ==5:\n pass\n else:\n ans = False\nif ans:\n print("APPROVED")\nelse:\n print("DENIED")', 'n = input()\n_list = input().split(" ")\n_list = [int(x) for x in _list]\neven = [x for x in _list if x % 2==0]\nanswer = []\nfor x in even:\n if x % 3 == 0 or x % 5 == 0:\n answer.append(True)\nif len(even) ==len(answer):\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s074998062', 's541378111'] | [3060.0, 3064.0] | [18.0, 17.0] | [238, 272] |
p02772 | u137808818 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["n = int(input())\na = list(map(int,input().split()))\nfor i in range(a):\n if i%2==0:\n if i%3 !=0 or i%5 !=0:\n print('DENIED')\nprint('APPROVED')\n\n \n \n ", "n = int(input())\na = list(map(int,input().split()))\nfor i in range(a):\n if i%2==0:\n if i%3 !=0 and i%5 !=0:\n print('DENIED')\n exit()\nprint('APPROVED')\n\n \n \n ", "n = int(input())\na = list(map(int,input().split()))\nfor i in a:\n if i%2==0:\n if i%3 !=0 and i%5 !=0:\n print('DENIED')\n exit()\nprint('APPROVED')\n\n \n \n "] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s649192893', 's788875364', 's635012889'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [198, 218, 211] |
p02772 | u140191608 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ["N = int(input())\nA = list(map(int , input().split()))\nB = []\nacount = 0\nbcount = 0\nfor i in A:\n if i % 2 == 1:\n pass\n else:\n acount += 1\n B.append(i)\nfor i in B:\n if i % 3 == 0 or i % 5 == 0:\n bcount += 1\nif acount != bcount:\n print('DENIED')\nelif account == 0:\n print('DENIED')\nelse:\n print('APPROVED')", "N = int(input())\nA = list(map(int , input().split()))\nans = []\nbns = []\nfor i in A:\n if i % 2 == 0:\n ans.append(i)\nfor i in ans:\n if i % 3 == 0 or i % 5 == 0:\n bns.append(i)\nif len(ans) == len(bns):\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Runtime Error', 'Accepted'] | ['s435543622', 's329464676'] | [3064.0, 3064.0] | [17.0, 17.0] | [351, 266] |
p02772 | u142211940 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['import sys\nN = int(input())\narr = list(map(int, input().split()))\n\nfor i in range(len(arr)):\n if arr[i] % 2 == 0 and (arr[i] % 3 != 0 and arr[i] % 5 != 0):\n print("DENIED")\n break\n else:\n print("APPROVED")\n', 'import sys\nN = int(input())\narr = list(map(int, input().split()))\n\nfor i in range(len(arr)):\n if arr[i] % 2 == 0 and (arr[i] % 3 != 0 and arr[i] % 5 != 0):\n print("DENIED")\n break\n else:\n print("APPRPVED")\n', 'import sys\nN = int(input())\narr = list(map(int, input().split()))\n\nfor i in range(len(arr)):\n if arr[i] % 2 == 0 and (arr[i] % 3 != 0 and arr[i] % 5 != 0):\n print("DENIED")\n exit()\n\nprint("APPROVED")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s702841659', 's714325405', 's118959292'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 18.0] | [233, 233, 216] |
p02772 | u148856702 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n= input().split()\nn = int(n)\nnums= input().split()\n#map(int,input().split())\nstate = 1\nfor i in range(n):\n if nums[i] &1 == 0 :\n if nums[i]%3 ==0 or nums[i]%5 ==0:\n continue\n else:\n state= 0\n #print("DENIED")\n break\nif state == 1:\n print("APPROVED")\nelse:\n print("DENIED")', 'n= input()\nn = int(n)\nnums= input().split()\n#map(int,input().split())\nstate = 1\nfor i in range(n):\n if int(nums[i]) &1 == 0 :\n if int(nums[i])%3 ==0 or int(nums[i])%5 ==0:\n continue\n else:\n state= 0\n #print("DENIED")\n break\nif state == 1:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Runtime Error', 'Accepted'] | ['s187564217', 's786193456'] | [3060.0, 3060.0] | [17.0, 17.0] | [340, 347] |
p02772 | u152554456 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n = int(input())\na_list = list(map(int, input().split()))\n\na_list_even = [i for i in a_list if i % 2 == 0]\nprint(a_list_even)\nfor a in a_list_even:\n if a % 3 == 0 or a % 5 == 0:\n continue\n else:\n print("DENIED")\n exit()\n\nprint("APPROVED")', 'n = int(input())\na_list = list(map(int, input().split()))\n\na_list_even = [i for i in a_list if i % 2 == 0]\nfor a in a_list_even:\n if a % 3 == 0 or a % 5 == 0:\n continue\n else:\n print("DENIED")\n exit()\n\nprint("APPROVED")'] | ['Wrong Answer', 'Accepted'] | ['s414757966', 's880455306'] | [3060.0, 2940.0] | [17.0, 17.0] | [265, 246] |
p02772 | u153259685 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n=int(input())\na=list(map(int,input().split()))\nchecker=0\ncount=0\nfor i in range(len(a)):\n if a[i]%2==0:\n checker+=1\n if a[i]%3==0 or a[i]%5==0:\n count+=1\nif checker==count:\n print("APPROVED")\nelse:\n print("DENIED)', 'n=int(input())\na=list(map(int,input().split()))\nchecker=0\ncount=0\nfor i in range(len(a)):\n if a[i]%2==0:\n checker+=1\n if a[i]%3==0 or a[i]%5==0:\n count+=1\nif checker==count:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Runtime Error', 'Accepted'] | ['s018721506', 's607225119'] | [2940.0, 3060.0] | [17.0, 18.0] | [228, 229] |
p02772 | u159144188 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['N = int(input())\nA = list(map(int, input().split()))\nans = True\nfor i in range(N):\n if A[i] % 2 == 0:\n if A[i] % 3 != 0 or A[i] % 5 != 0:\n ans = False\nif ans:\n print("APPROVED")\nelse:\n print("DENIED")', 'N = int(input())\nA = list(map(int, input.split()))\nans = True\nfor i in range(N):\n if A[i] % 2 == 0:\n if A[i] % 3 != 0 or A[i] % 5 != 0:\n ans = False\nif ans:\n print("APPROVED")\nelse:\n print("DENIED")', 'N = int(input())\nA = list(map(int, input().split()))\nans = True\nfor i in range(N):\n if A[i] % 2 == 0:\n if A[i] % 3 != 0 and A[i] % 5 != 0:\n ans = False\nif ans:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s159454533', 's817612454', 's268765254'] | [9148.0, 9072.0, 9028.0] | [29.0, 29.0, 28.0] | [211, 209, 212] |
p02772 | u161712560 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['N = int(input())\ninList = list(map(int, input().aplit(" ")))\n\nevenList = list([])\n\nfor item in inList:\n if item % 2 == 0:\n evenList.append(item)\n\njdgList = list([])\n\nfor evenItem in evenList:\n if ((evenItem % 3) == 0) or ((evenItem % 5) == 0):\n jdgList.append(evenItem)\n\nif len(jdgList) == len(evenList):\n print("APPROVED")\nelse:\n print("DENIED")', 'N = int(input())\ninList = list(map(int, input().split(" ")))\n \nevenList = list([])\n \nfor item in inList:\n if item % 2 == 0:\n evenList.append(item)\n\njdgList = list([])\n \nfor evenItem in evenList:\n if ((evenItem % 3) == 0) or ((evenItem % 5) == 0):\n jdgList.append(evenItem)\n\nif len(jdgList) == len(evenList):\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Runtime Error', 'Accepted'] | ['s916196746', 's696891683'] | [3064.0, 3064.0] | [18.0, 19.0] | [356, 359] |
p02772 | u162893962 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['N = int(input())\npeople = [int(i) for i in input().split()]\n\nis_True = True\nfor p in people:\n if p % 2 == 0:\n if p % 3 != 0 or p % 5 != 0:\n is_True = False\n break\n\nif is_True:\n print("APPROVED")\nelse:\n print("DENIED")\n', 'N = int(input())\npeople = [int(i) for i in input().split()]\n\nis_True = True\nfor p in people:\n if p % 2 == 0:\n if p % 3 != 0 and p % 5 != 0:\n is_True = False\n break\n\nif is_True:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s661834952', 's636462437'] | [2940.0, 2940.0] | [18.0, 17.0] | [256, 256] |
p02772 | u163529815 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n =int(input())\nA = [0 if int(x) % 2 == 1 or int(x) % 30 == 0 \n else 1 for x in input().split()]\nfor i in A:\n if i ==0:\n print("APPROVED")\n else:\n print("DENIED")', 'n =int(input())\nA = [0 if int(x) % 2 == 1 or int(x) % 6 == 0 or int(x) % 10 == 0 \n else 1 for x in input().split()]\nfor i in A:\n if i == 0:\n print("APPROVED")\n else:\n print("DENIED")', 'n = int(input())\nA = [int(x) for x in input().split() \n if int(x) % 2 == 1 or int(x) % 6 == 0 or int(x) % 10 == 0 ]\nif len(A) == N:\n print("APPROVED")\nelse:\n print("DENIED")', 'n = int(input())\nA = [int(x) for x in input().split() \n if int(x) % 2 == 1 or int(x) % 6 == 0 or int(x) % 10 == 0 ]\nif len(A) = N:\n print("APPROVED")\nelse:\n print("DENIED")', 'n =int(input())\nA = [0 if int(x) % 2 == 1 or int(x) % 6 == 0 or int(x) % 10 == 0 \n for x in input().split()]]\nif not A:\n print("DENIED")\nelse:\n print("APPROVED")', 'N = int(input())\nA = [int(x) for x in input().split() \n if int(x) % 2 == 1 or int(x) % 6 == 0 or int(x) % 10 == 0 ]\nif len(A) == N:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s006181098', 's380577257', 's390091101', 's649125950', 's937570909', 's425820920'] | [3060.0, 3060.0, 2940.0, 2940.0, 2940.0, 3060.0] | [18.0, 18.0, 18.0, 18.0, 19.0, 17.0] | [186, 206, 183, 182, 170, 183] |
p02772 | u163874353 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['n = int(input())\nl = list(map(int, input().split()))\ncnt = 0\nfor i in l:\n if i % 6 == 0 or i % 10 == 0:\n cnt += 1\nif cnt == n:\n print("APPROVED")\nelse:\n print("DENIED")\n', 'n = int(input())\nl = list(map(int, input().split()))\ncount = 0\ncnt = 0\nfor j in l:\n if j % 2 == 0:\n count += 1\nfor i in l:\n if i % 6 == 0 or i % 10 == 0:\n cnt += 1\nif cnt == count:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s079568892', 's719342541'] | [2940.0, 3060.0] | [17.0, 17.0] | [185, 248] |
p02772 | u166340293 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['N=int(input())\ns=input().strip().split()\nfor j in range (N):\n n=int(s[j])\n if n %2 ==0:\n if n % 3 != 0 or n % 5 != 0:\n print("DENIED")\n break\n print("APPROVED")\n break', 'N=int(input())\ns=input().strip().split()\nfor j in range (N):\n n=int(s[j])\n if n %2 ==0:\n if n % 3 != 0 and n % 5 != 0:\n print("DENIED")\n break\n if j==N-1:\n print("APPROVED")'] | ['Wrong Answer', 'Accepted'] | ['s665560997', 's880256115'] | [2940.0, 2940.0] | [17.0, 17.0] | [184, 192] |
p02772 | u166807268 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['import java.util.Scanner;\n\npublic class Main\n{\n public static void main(String[] args)\n {\n Scanner input = new Scanner(System.in);\n int N = input.nextInt();\n int[] myArray = new int[N];\n for(int i=0;i<N;i++)\n {\n myArray[i] = input.nextInt();\n }\n for(int i : myArray)\n {\n if(i%3==0||i%5==0)\n System.out.println("APPROVED");\n else\n System.out.println("DENIED");\n }\n\n }\n}', 'n = input()\n_list = input().split(" ")\n_list = [int(x) for x in _list]\neven = [x for x in _list if x % 2==0]\nanswer = []\nfor x in even:\n if x % 3 == 0 or x % 5 == 0:\n answer.append(True)\nif len(even) ==len(answer):\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Runtime Error', 'Accepted'] | ['s459148451', 's284586700'] | [2940.0, 3064.0] | [18.0, 18.0] | [503, 272] |
p02772 | u168474884 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is satisfied: * All even numbers written on the document are divisible by 3 or 5. If the immigrant should be allowed entry according to the regulation, output `APPROVED`; otherwise, print `DENIED`. | ['\'\'\'input\n3\n28 27 24\n\'\'\'\nn = input()\na = map(int, input().split())\n\nok = 0\nfor i in a:\n\tif i % 2 == 0:\n\t\tif i % 3 != 0 and i % 5 != 0:\n\t\t\tok = 0\n\nif ok == 1:\n\tprint("APPROVED")\nelse:\n\tprint("DENIED")', '\'\'\'input\n3\n28 27 24\n\'\'\'\nn = input()\na = map(int, input().split())\n\nok = 1\nfor i in a:\n\tif i % 2 == 0:\n\t\tif i % 3 != 0 and i % 5 != 0:\n\t\t\tok = 0\n\nif ok == 1:\n\tprint("APPROVED")\nelse:\n\tprint("DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s950390957', 's491127849'] | [3060.0, 2940.0] | [17.0, 24.0] | [198, 198] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.