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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02772 | u436047655 | 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())\narr = []\narr = list(map(int, input().split()))\nflag = 0\nfor i in range(n):\n num = arr[i]\n if num % 2 == 0:\n if (num % 6 == 0) or (num % 10 == 0):\n flag = 1\n else:\n flag = 0\n if flag == 1:\n print("APPROVED")\n else:\n print("DENIED")', 'int n = input()\narr = []\narr = list(map(int, input().split()))\nfor i in range(n):\n num = arr[i]\n if num % 2 == 0:\n if (num % 6 == 0) or (num % 10 == 0):\n print("APPROVED")\n else:\n print("DENIED")', 'n = int(input())\narr = []\narr = list(map(int, input().split()))\nflag = 0\ncount = 0\nfor i in range(n):\n num = arr[i]\n if num % 2 == 0:\n count += 1\n if(num % 6 == 0) or (num % 10 == 0):\n flag += 1\n \nif flag == count:\n print("APPROVED")\nelse:\n print("DENIED")\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s075313987', 's867640486', 's748659554'] | [3060.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [281, 213, 281] |
p02772 | u437351386 | 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())\na=list(map(int,input().split()))\nfor i in a:\n if i%2==0:\n if i%3!=0 or i%5!=0:\n print("DENIED")\n sys.exit()\n\nprint("APPROVED")', 'import sys\nn=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 sys.exit()\n \nprint("APPROVED")\n\n'] | ['Wrong Answer', 'Accepted'] | ['s354563254', 's911257161'] | [2940.0, 2940.0] | [17.0, 17.0] | [166, 175] |
p02772 | u437723389 | 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()\nnumList = input()\n\n\nfor num in numList:\n if num % 2 == 0:\n judge1 = num % 3 == 0\n judge2 = num % 5 == 0\n approve = judge1 or judge2\n if not approve:\n print('DENIED')\n exit()\nprint('APPROVED')", "N = input()\nnumList = input().split(' ')\nprint(numList)\nfor num in numList:\n num = int(num)\n if num % 2 == 0:\n judge1 = num % 3 == 0\n judge2 = num % 5 == 0\n approve = judge1 or judge2\n if not approve:\n print('DENIED')\n exit()\nprint('APPROVED')", "N = input()\nnumList = input().split(' ')\nfor num in numList:\n num = int(num)\n if num % 2 == 0:\n judge1 = num % 3 == 0\n judge2 = num % 5 == 0\n approve = judge1 or judge2\n if not approve:\n print('DENIED')\n exit()\nprint('APPROVED')"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s365244547', 's892224409', 's468015435'] | [2940.0, 3060.0, 2940.0] | [18.0, 17.0, 17.0] | [226, 267, 252] |
p02772 | u440161695 | 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(i%2==0 and (i%3==0 or i%5==0) for i in A) else "DENIED")', 'N=int(input())\nA=list(map(int,input().split()))\nprint("APPROVED" if all([i%2!=0 or i%3==0 or i%5==0 for i in A]) else "DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s562068860', 's020850240'] | [2940.0, 2940.0] | [17.0, 17.0] | [128, 127] |
p02772 | u441320782 | 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()))\nlis=[]\nflag=1\n\nfor i in A:\n if i%2==0:\n lis.append(i)\n \nfor j in lis:\n if j%3!=0 and j%5!=0:\n flag=0\nprint("DENIED"if flag==0 else "APPROVE")', 'N=int(input())\nA=list(map(int,input().split()))\nlis=[]\nflag=1\n\nfor i in A:\n if i%2==0:\n lis.append(i)\n \nfor j in lis:\n if j%3!=0 and j%5!=0:\n flag=0\nprint("DENIED"if flag==0 else "APPROVED")'] | ['Wrong Answer', 'Accepted'] | ['s524104726', 's025166830'] | [3064.0, 3060.0] | [18.0, 17.0] | [200, 201] |
p02772 | u442855260 | 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`. | ['Nnum=int(input())\nAn=np.array([int(i) for i in input().split()])\nAne=An[An%2==0]\nAne3=Ane%3\nAne5=Ane%5\nAne3or5=Ane3*Ane5\n\nif(np.sum(Ane3or5)==0):\n print("APPROVED")\nelse:\n print("DENIED") ', 'import numpy as np\nNnum=int(input())\nAn=np.array([int(i) for i in input().split()])\nAne=An[An%2==0]\nAne3=Ane%3\nAne5=Ane%5\nAne3or5=Ane3*Ane5\n\nif(np.sum(Ane3or5)==0):\n print("APPROVED")\nelse:\n print("DENIED") '] | ['Runtime Error', 'Accepted'] | ['s437751572', 's525705338'] | [3064.0, 12428.0] | [17.0, 154.0] | [197, 216] |
p02772 | u446371873 | 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())\nfor _ in range(n):\n a = int(input())\n if a % 2 == 0:\n if a % 5 != 0 or a % 3 != 0:\n print('DENIED')\n break\nelse:\n print('APPROVED')\n ", "n = int(input())\nA = list(map(int,input().split()))\nfor a in A:\n if a % 2 == 0:\n if a % 5 != 0 and a % 3 != 0:\n print('DENIED')\n break\nelse:\n print('APPROVED')"] | ['Runtime Error', 'Accepted'] | ['s771254717', 's615904626'] | [2940.0, 2940.0] | [18.0, 17.0] | [171, 174] |
p02772 | u446774692 | 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,intput().split()))\n\nfor i in range(N):\n if A[i]%2 == 0 and (A[i]%3 != 0 and A[i]%5 != 0):\n print('DENIED')\n exit()\n\nprint('APPROVED')", "N = int(input())\nA = list(map(int,input().split()))\n\nfor i in range(N):\n if A[i]%2 == 0 and (A[i]%3 != 0 and A[i]%5 != 0):\n print('DENIED')\n exit()\n\nprint('APPROVED')"] | ['Runtime Error', 'Accepted'] | ['s696381645', 's625616409'] | [3064.0, 3060.0] | [17.0, 17.0] | [184, 183] |
p02772 | u450478592 | 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 even = []\n\n for e in A:\n if e % 2 == 0:\n even.append(e)\n\n print(even)\n\n for e in even:\n if e % 3 != 0 and e % 5 != 0:\n print("DENIED")\n exit(0)\n\n print("APPROVED")\n\n\nif __name__ == "__main__":\n main()\n', 'def main():\n N = int(input())\n A = list(map(int, input().split()) for _ in range(N))\n\n for e in A:\n if e % 2 == 0 and e % 3 != 0 and e % 5 != 0:\n print("DENIED")\n exit(0)\n\n print("APPROVED")\n\n\nif __name__ == "__main__":\n main()\n', 'def main():\n N = int(input())\n A = list(map(int, input().split()))\n\n for e in A:\n if e % 2 == 0 and e % 3 != 0 and e % 5 != 0:\n print("DENIED")\n exit(0)\n\n print("APPROVED")\n\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s122660445', 's738872687', 's293661041'] | [3060.0, 3052.0, 2940.0] | [18.0, 17.0, 17.0] | [341, 272, 254] |
p02772 | u454866339 | 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())\nanums = list(map(int, input().split()))\n\nfor anum in anums:\n if (anum % 2 == 0) and ((anum % 3 == 0) or (anum % 5 == 0)):\n result = 'APPROVED'\n else:\n result = 'DENIED'\n break\n\nprint(result)", "n = int(input())\nanums = list(map(int, input().split()))\n\nresult = 'APPROVED'\nfor anum in anums:\n if (anum % 2 == 0) and not ((anum % 3 == 0) or (anum % 5 == 0)):\n result = 'DENIED'\n break\n\nprint(result)"] | ['Wrong Answer', 'Accepted'] | ['s305723446', 's310376795'] | [9156.0, 9148.0] | [28.0, 31.0] | [234, 220] |
p02772 | u455408345 | 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=input("").split(" ")\n\nfor i in a:\n if(i%2==0):\n if(i%3!=0 and i%5!=0):\n print("DENIED")\n break\nelse:\n print("APPROVED")\n ', 'n=int(input(""))\naa=input("").split(" ")\ns=0\na=[]\nfor i in aa:\n a+=[int(i)]\nfor i in a:\n if(i%2==0):\n if(i%3!=0 and i%5!=0):\n s=1\nif(s==0):\n print("APPROVED")\nelse:\n print("DENIED")\n\n '] | ['Runtime Error', 'Accepted'] | ['s891150880', 's775710423'] | [9072.0, 9048.0] | [25.0, 28.0] | [178, 221] |
p02772 | u456879806 | 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())\nnums = list(map(int,input().split()))\n\nresult = "APPRPVED"\nfor num in nums:\n if(num % 2 == 0):\n if((num % 3 != 0) or (num % 5 != 0)):\n result = "DENIED"\n break\n\nprint(result)', 'n = int(input())\na = [int(x) for x in input().split()]\nres = "APPROVED"\nfor i in range(n):\n if i % 2 == 0:\n if i % 3 != 0 and i % 5 != 0:\n res = "DENIED"\nprint(res)', 'n = int(input())\na = [int(x) for x in input().split()]\nres = "APPROVED"\nfor i in range(n):\n if a[i] % 2 == 0:\n if a[i] % 3 != 0 and a[i] % 5 != 0:\n res = "DENIED"\nprint(res)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s740847231', 's908954048', 's287392766'] | [9176.0, 9116.0, 9108.0] | [28.0, 28.0, 26.0] | [223, 173, 182] |
p02772 | u457437854 | 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 = input()\ny = input()\nlist = y.split()\nresult = []\n\nfor i in list:\n i = int(i)\n if i % 2 == 0 and (i % 3 == 0 or i % 5 == 0):\n print("APROVED")\n break\n else:\n print("DENIED")\n break\n', 'x = input()\ny = input()\nlist = y.split()\neven_list = []\n\nfor i in list:\n i = int(i)\n if i % 2 == 0:\n even_list.append(i)\n \nfor y in even_list:\n if y % 3 == 0 or y % 5 == 0:\n result = "APROVED"\n else:\n result = "DENIED"\n break\n \nprint(result)\n', 'x = input()\ny = input()\nlist = y.split()\neven_list = []\nresult = \'\'\n\nfor i in list:\n i = int(i)\n if i % 2 == 0:\n even_list.append(i)\n \nfor y in even_list:\n if y % 3 == 0 or y % 5 == 0:\n result = "APROVED"\n else:\n result = "DENIED"\n break\n \nprint(result)\n', 'x = input()\ny = input()\nlist = y.split()\neven_list = []\nresult = \'\'\n\nfor i in list:\n i = int(i)\n if i % 2 == 0:\n even_list.append(i)\n else:\n result = "APPROVED"\n \nfor y in even_list:\n if y % 3 == 0 or y % 5 == 0:\n result = "APPROVED"\n else:\n result = "DENIED"\n break\n \nprint(result)'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s074462622', 's457580408', 's880940102', 's653984163'] | [2940.0, 2940.0, 3060.0, 3060.0] | [17.0, 18.0, 18.0, 20.0] | [208, 264, 276, 308] |
p02772 | u460386402 | 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\nlst=0\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\n print('APPROVED') \n", "N=input()\nfor i in range(N):\n A[i]=list(map(int,input().split()))\n\ncount=0\n \nfor i=0 in range(N):\n if A[i]%2==0:\n if A[i]%3==0 or A[i]%5==0:\n print('APPROVED')\n count=1\n break\n elif:\n continue\n \nif count=0:\n print('DENIED')", "N=int(input())\nA=list(map(int,input().split()))\n\ncount=0\n \nfor i in range(N):\n if A[i]%2==0:\n if A[i]%3!=0 or A[i]%5!=0:\n count+=1\n break\n\n \nif count!=0:\n print('DENIED')\nelse:\n print('APPROVED') \n", "N=int(input())\nA=list(map(int,input().split()))\n\nlst=0\n \nfor i in range(N):\n if A[i]%2==0:\n if A[i]%3!=0 and A[i]%5!=0:\n lst+=1\n break\n\n \nif lst==1:\n print('DENIED')\nelse:\n print('APPROVED') "] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s047389026', 's126254469', 's256841693', 's633454970'] | [3060.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0] | [182, 252, 218, 211] |
p02772 | u461833298 | 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`. | ["for item in A:\n if item%2==0:\n B.append(item)\ncnt = 0\nans = ''\nfor item in B:\n if item%3!=0:\n if item%5!=0:\n ans = 'DENIED'\nif ans!='DENIED':\n ans = 'APPROVED'\nprint(ans)", "import numpy as np\n\nN = int(input())\nA = list(map(int, input().split()))\nA = np.array(A)\n\nA = A[A%2==0]\nif np.all((A%3==0) | (A%5==0)):\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Runtime Error', 'Accepted'] | ['s385615941', 's098496805'] | [2940.0, 17852.0] | [17.0, 267.0] | [204, 183] |
p02772 | u461836414 | 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 = [int(x) for x in input().split()]\nflag = 'APPROVED'\nfor number in numbers:\n if number%2==0 and (number % 3 == 0 or number % 5 == 0):\n continue\n else:\n flag = 'DENIED'\n break\nprint(flag)\n", "n = int(input())\nnumbers = [int(x) for x in input().split()]\nflag = 'APPROVED'\nfor number in numbers:\n if number % 3 == 0 or number % 5 == 0:\n continue\n else:\n flag = 'DENIED'\n break\nprint(flag)", "n = int(input())\nnumbers = [int(x) for x in input().split()]\nflag = 'APPROVED'\nfor number in numbers:\n if number%2==0 and (number % 3 == 0 or number % 5 == 0):\n continue\n elif number%2 != 0: continue\n else:\n flag = 'DENIED'\n break\nprint(flag)\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s373470482', 's393078917', 's405856649'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 18.0] | [224, 205, 259] |
p02772 | u462976050 | 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, B, C = map(int, input().split())\nif A==B==C:\n print("No")\nelif A!=B!=C:\n print("No")\nelse:\n print("Yes")\n', 'N=int(input())\nA=list(map(int,input().split()))\nflag=True\nfor i in range(N):\n if A[i]%2==0:\n if (A[i]%3==0 or A[i]%5==0)==False:\n flag=False\nif flag:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Runtime Error', 'Accepted'] | ['s182653545', 's676506540'] | [3068.0, 3060.0] | [17.0, 17.0] | [111, 218] |
p02772 | u464032595 | 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\nFlag = True\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 = False\n break\nif Flag == True:\n print('APPROVED')\nelse:\n print('DENIED')", "n = int(input())\n\na = list(map(int, input().split()))\n\nFlag = True\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 = False\n break\nif Flag == True:\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Runtime Error', 'Accepted'] | ['s156713890', 's610958701'] | [2940.0, 3060.0] | [17.0, 17.0] | [272, 289] |
p02772 | u464626513 | 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`. | ['for i in range(2):\n input = input()\n lines.append(int(input))\nsearchList = [] \nfor i in range(lines[0]):\n split = lines[1].split()\n if split[i] % 2 == 0:\n searchList.appned(split[i])\nout = "APPROVED"\nfor s in searchList:\n if s % 3 != 0 and s % 5 != 0:\n out = "DENIED"\n print(out)\n break\nprint(out)\n ', 'lines = []\nfor i in range(2):\n inp = input()\n lines.append(inp)\nsearchList = [] \nfor i in range(int(lines[0])):\n split = lines[1].split()\n if int(split[i]) % 2 == 0:\n searchList.append(int(split[i]))\nout = "APPROVED"\nfor s in searchList:\n if s % 3 != 0 and s % 5 != 0:\n out = "DENIED"\n print(out)\n break\nif out == "APPROVED":\n print(out)\n \n\n'] | ['Runtime Error', 'Accepted'] | ['s989523117', 's504552315'] | [3060.0, 3060.0] | [18.0, 18.0] | [320, 365] |
p02772 | u467307100 | 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\nfor x in a:\n if x%2 == 0:\n if x%3 == 0 or x%5 == 0:\n print("APPROVED")\n else:\n print("DENIED")\n break\nelse:\n print("DENIED")', 'n = int(input())\na = list(map(int, input().split()))\n\nfor x in a:\n if x%2 == 0:\n if x%3 and x%5 :\n print("DENIED")\n break\nelse:\n print("APPROVED")'] | ['Wrong Answer', 'Accepted'] | ['s722405004', 's495627139'] | [3060.0, 2940.0] | [17.0, 17.0] | [201, 161] |
p02772 | u468972478 | 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(i % 6 == 0 or i % 10 == 0 for i in a) else "DENIED")', 'n = int(input())\na = list(map(int, input().split()))\nprint("APPROVED" if all(i % 5 == 0 or i % 3 == 0 for i in a if i % 2 == 0 else "DENIED")', 'n = int(input())\na = list(map(int, input().split()))\nprint("APPROVED" if all(i % 5 == 0 or i % 3 == 0 for i in a if i % 2 == 0) else "DENIED")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s162992474', 's659213471', 's617351085'] | [9000.0, 9024.0, 9168.0] | [30.0, 26.0, 26.0] | [129, 141, 142] |
p02772 | u469239325 | 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] * n\nfor i in range(n):\n if a[i]%2==0:\n a[i]%3!=0 and a[i]%5!=0\n ans[i] = False\nif all(ans):\n print('APPROVED')\nelse:\n print('DENIED')\n ", "n = int(input())\na = list(map(int, input().split()))\nans = [True] * n\nfor i in range(n):\n if a[i]%2==0:\n if a[i]%3!=0 and a[i]%5!=0:\n \tans[i] = False\nif all(ans):\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Wrong Answer', 'Accepted'] | ['s492156280', 's534765192'] | [3060.0, 3060.0] | [17.0, 17.0] | [229, 227] |
p02772 | u472696272 | 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())\nnum = list(map(int, input().split()))\n\nfor i in range(n):\n if num[i]%2==0:\n if num[i]%3!=0 or num[i]%5!=0:\n print('DENIED')\n exit()\n \nprint('APPROVED')\n ", "n = int(input())\na = list(map(int,input().split()))\nfor i in range(n):\n if i%2==0:\n if i%3!=0 and 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:\n if a[i]%3!=0 and a[i]%5!=0:\n print('DENIED')\n exit()\nprint('APPROVED')\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s122067944', 's495786982', 's103305914'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [190, 163, 172] |
p02772 | u474423089 | 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 A:\n if i%2==0 and i%2!=0 and i%5==0:\n print('DENIED')\n exit()\nprint('APPROVE')", "N=int(input())\nA=list(map(int,input().split(' ')))\nfor i in A:\n if i%2==0 and i%3!=0 and i%5!=0:\n print('DENIED')\n exit()\nprint('APPROVED')"] | ['Wrong Answer', 'Accepted'] | ['s113597075', 's456924158'] | [3064.0, 2940.0] | [17.0, 17.0] | [155, 156] |
p02772 | u482157295 | 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()))\nflag = "ok"\nfor i in a_list:\n if i%2 == 0: \n if i%3 != 0 or i%5 != 0:\n flag = "ng"\nif flag == "ok":\n print("APPROVED") \nelse:\n print("DENIED")\n', 'n = int(input())\na_list = list(map(int, input().split()))\nflag = “ok”\nfor i in a_list:\n if i%2 == 0: \n if i%3 != 0 or i%5 != 0:\n flag = “ng”\nif flag == “ok”\n print(“APPROVED”) \nelse:\n print(“ DENIED”)', 'n = int(input())\na_list = list(map(int, input().split()))\nflag = "ok"\nfor i in a_list:\n print(i)\n if i%2 == 0: \n if i%3 != 0 and i%5 != 0:\n flag = "ng"\nif flag == "ok":\n print("APPROVED") \nelse:\n print("DENIED")', 'n = int(input())\na_list = list(map(int, input().split()))\nflag = "ok"\nfor i in a_list:\n #print(i)\n if i%2 == 0: \n if i%3 != 0 and i%5 != 0:\n flag = "ng"\nif flag == "ok":\n print("APPROVED") \nelse:\n print("DENIED")\n'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s150631081', 's462059689', 's967191046', 's253529082'] | [2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [212, 231, 223, 225] |
p02772 | u482743994 | 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=[i for i in a if i%2==0]\nfor i in a:\n if i%3==0 or i%5==0:\n continue\n else:\n print("DENIED")\n break\n print("APPROVED")', 'n=int(input())\na=list(map(int,input().split()))\na=[i for i in a if i%2==0]\nfor i in a:\n if i%3==0 or i%5==0:\n continue\n else:\n print("DENIED")\n exit()\nprint("APPROVED")\n'] | ['Wrong Answer', 'Accepted'] | ['s282030865', 's994507380'] | [2940.0, 2940.0] | [17.0, 17.0] | [180, 180] |
p02772 | u485286322 | 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()\nb = input().split()\nc = "approved"\nfor i in b:\n if int(i)%6 != 0 and int(i)%10 != 0:\n c = "denied"\n break\nprint(c)', 'a = input()\nb = input().split()\nc = "APPROVED"\nfor i in b:\n if int(i)%6 != 0 and int(i)%10 != 0:\n c = "DENIED"\n break\n\nprint(c)', 'n = input()\ndata = [int(str) for str in input().split() if int(str)%2 ==0]\nfor i in data:\n if i%3 != 0 or i%5 != 0:\n print("DENIED")\n break\n else:\n print("APPROVED")\n break', 'a = input()\nb = [int(str) for str in input().split() if int(str)%2 ==0]\nc = "approved"\nfor i in b:\n if i%3 != 0 and i%5 != 0:\n c = "denied"\n\nprint(c)', 'a = input()\nb = input().split()\nc = "APPROVED"\nfor i in b:\n if int(i)%6 != 0 or int(i)%10 != 0:\n c = "DENIED"\n break\n\nprint(c)', 'a = input()\nb = [int(str) for str in input().split() if int(str)%2 ==0]\nc = "APPROVED"\nfor i in b:\n if i%3 == 0 or i%5 == 0:\n pass\n else:\n c = "DENIED"\n break\n\nprint(c)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s331614630', 's359681556', 's441495087', 's791676682', 's952401755', 's381186904'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [143, 144, 186, 159, 143, 195] |
p02772 | u487044452 | 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()))\ni = 0\nwhile True:\n if a[i]%2==0 and (a[i]%3==0 or a[i]%5==0):\n print('DENIED')\n break \n elif i==n:\n print('APPROVED')\n break\n else:\n i+=1", "n=int(input())\na = list(map(int,input().split()))\ni = 0\nwhile True:\n if a[i]%2==0 and not (a[i]%3==0 and a[i]%5==0):\n print('DENIED')\n break \n elif i==n:\n print('APPROVED')\n break\n else:\n i+=1", "n=int(input())\na = list(map(int,input().split()))\ni = 0\nwhile True:\n if a[i]%2==1 or a[i]%3==0 or a[i]%5==0:\n i+=1\n elif i==n:\n print('APPROVED')\n break\n else:\n print('DENIED')\n break", "n=int(input())\na = list(map(int,input().split()))\ni = 0\nwhile True:\n if i==n:\n print('APPROVED')\n break\n elif a[i]%2==0 and a[i]%3!=0 and a[i]%5!=0:\n print('DENIED') \n break \n else:\n i+=1"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s049249265', 's307256212', 's475718518', 's052549897'] | [3060.0, 3060.0, 3060.0, 3060.0] | [18.0, 17.0, 17.0, 18.0] | [237, 242, 227, 243] |
p02772 | u488884575 | 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 = 0\nfor i in range(N):\n a = int(input())\n if a%2 == 0:\n if a%3 == 0 or a%5 == 0:\n pass\n else:\n c += 1 \nif c == 0:\n print('APPROVED')\nelse:\n print('DENIED')", "N = int(input())\na = list(map(int, input().split()))\nc = 0\nfor i in range(N):\n \n if a[i]%2 == 0:\n if a[i]%3 == 0 or a[i]%5 == 0:\n pass\n else:\n c += 1 \nif c == 0:\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Runtime Error', 'Accepted'] | ['s870943510', 's723172195'] | [2940.0, 3064.0] | [17.0, 18.0] | [193, 222] |
p02772 | u489153633 | 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())\ni=list(map(int,input().split()))\nx=0\n\ndef c(x):\n if x==0:\n return "APPROVED"\n else:\n return "DENIED"\n\ndef d(x):\n if x%2==0:\n if x%3!=0:\n if x%5!=0:\n x+=1\n\nfor x in range(N):\n d(i[x])\nc(x)', 'N=int(input())\ni=list(map(int,input().split()))\na=0\nfor x in range(N):\n if i[x]%2==0:\n if i[x]%3!=0:\n if i[x]%5!=0:\n a+=1\nif a==0:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s285697827', 's223775961'] | [3064.0, 3060.0] | [18.0, 17.0] | [261, 214] |
p02772 | u489797136 | 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())\nfor i in range(n):\n if(A[i]%2==0):\n if(A[i]%5!=0 or A[i]%3!=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):\n if(A[i]%5!=0 and A[i]%3!=0):\n print("DENIED")\n exit()\nprint("APPROVED")\n'] | ['Runtime Error', 'Accepted'] | ['s938252025', 's542686376'] | [2940.0, 3064.0] | [18.0, 18.0] | [184, 190] |
p02772 | u493130708 | 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`. | ['l = input()\nl = input().split()\nl = l[1:]\n \nflag = "APPROVED"\nfor n in l:\n if n % 2 == 0 and n%3 != 0 and n%5 != 0:\n flag = "DENIED"\n \nprint(flag)', 'N = input()\nl = input().split()\n \nflag = "APPROVED"\nfor n in l:\n if n % 2 == 0 and n%3 != 0 and n%5 != 0:\n flag = "DENIED"\n \nprint(flag)', 'N = int(input())\nA = list(map(int, input().split())) \n\nflag = "APPROVED"\nfor n in A:\n if n % 2 == 0 and n%3 != 0 and n%5 != 0:\n flag = "DENIED"\n \nprint(flag)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s369572962', 's863671262', 's364369998'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [153, 143, 221] |
p02772 | u493697945 | 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(input())\n\nn = []\n\n# n[i] = int(input())\nn = [int(e) for e in input().split()]\n\ndef cal(n):\n count = 0\n for i in range(len(n)):\n if n[i] % 2 == 0 and (n[i] % 3 == 0 or n[i] % 5 == 0):\n count += 1\n if count == len(n):\n print("APPROVED")\n else:\n print("DENIED")\n\ncal(n)\n', 'x = input()\nn = []\nfor i in range(x):\n n[i] = input()\n\ndef cal(n):\n count = 0\n for i in range(len(n)):\n if (n[i] % 2 == 0) and ((n[i] % 3 == 0) and (n[i] % 5 == 0)):\n count += 1\n if count == len(n):\n print("APPROVED")\n else:\n print("DENIED")\n\ncal(n)\n', 'x = input()\nn = []\nfor i in range(x):\n n[i] = input()\n\ndef cal(n):\n count = 0\n for i in range(len(n)):\n if n[i] % 2 == 0 and n[i] % 3 == 0 and n[i] % 5 == 0:\n count += 1\n if count == len(n):\n print("APPROVED")\n else:\n print("DENIED")\n\ncal(n)\n', '\nx = int(input())\n\nn = []\n\n# n[i] = int(input())\nn = [int(e) for e in input().split()]\n\ndef cal(n):\n count = 0\n for i in range(len(n)):\n if n[i] % 2 == 0:\n if n[i] % 3 == 0 and n[i] % 5 == 0:\n count += 1\n else:\n count += 1\n if count == len(n):\n print("APPROVED")\n else:\n print("DENIED")\n\ncal(n)\n', 'x = int(input())\n\nn = []\n\n# n[i] = int(input())\nn = [int(e) for e in input().split()]\n\ndef cal(n):\n count = 0\n for i in range(len(n)):\n if n[i] % 2 == 0 and n[i] % 3 == 0 and n[i] % 5 == 0:\n count += 1\n if count == len(n):\n print("APPROVED")\n else:\n print("DENIED")\n\ncal(n)\n', '\nx = int(input())\n\nn = []\n\n# n[i] = int(input())\nn = [int(e) for e in input().split()]\n\ndef cal(n):\n count = 0\n for i in range(len(n)):\n if n[i] % 2 == 0:\n if n[i] % 3 == 0 or n[i] % 5 == 0:\n count += 1\n else:\n count += 1\n if count == len(n):\n print("APPROVED")\n else:\n print("DENIED")\n\ncal(n)\n'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s403616376', 's698901417', 's710272096', 's862004128', 's967252983', 's016043909'] | [3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 3060.0] | [18.0, 18.0, 18.0, 19.0, 18.0, 18.0] | [343, 297, 289, 395, 342, 394] |
p02772 | u495440415 | 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 range(n):\n if l[i] % 2 == 0:\n if l[i] % 3 == 0:\n cnt += 1\n elif l[i] % 5 == 0:\n cnt += 1\n else:\n print("DENIED")\n quit()\nprint("APPROVED")\n', 'n = int(input())\nl = list(map(int, input().split()))\ncnt = 0\nfor i in range(n):\n if l[i] % 2 == 0:\n if l[i] % 3 == 0:\n cnt += 1\n elif l[i] % 5 == 0:\n cnt += 1\n else:\n print("DENIED")\nprint("APPROVED")', 'n = int(input())\nl = list(map(int, input().split()))\ncnt = 0\nfor i in range(n):\n if l[i] % 2 == 0:\n if l[i] % 3 == 0:\n cnt += 1\n elif l[i] % 5 == 0:\n cnt += 1\n else:\n print("DENIED")\n quit()\nprint("APPROVED")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s356224098', 's931864448', 's918580751'] | [3060.0, 3064.0, 3060.0] | [17.0, 17.0, 17.0] | [261, 221, 273] |
p02772 | u496009935 | 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\nfor i in range(n):\n if A[i]%6==0 or A[i]%10==0:\n print("APPROVED")\n else:\n print("DENIED")', 'n=int(input())\nA=list(map(int,input().split()))\nB=[]\n\nfor i in range(n):\n if A[i]%2==0:\n B.append(A[i])\n\ncnt=0\nfor i in range(len(B)):\n if B[i]%3==0 or B[i]%5==0:\n cnt+=1\nif cnt==len(B):\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s607887924', 's633187371'] | [9120.0, 9112.0] | [28.0, 27.0] | [159, 254] |
p02772 | u498699271 | 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`. | ['1n = 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")', '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'] | ['s474814222', 's953099079'] | [2940.0, 3064.0] | [17.0, 17.0] | [273, 272] |
p02772 | u499106786 | 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`. | ['num = int(input())\nl = [int(i) for i in input().split(" ")]\n\ndeny = False\n\nfor ele in l:\n if ele%2==0:\n if ele%3!=0 and ele%5!=0:\n print("DENIED")\n deny = True\n break;\n\nif !deny:\n print("APPROVED)', 'num = int(input())\nl = [int(i) for i in input().split(" ")]\n \ndeny = False\n \nfor ele in l:\n if ele%2==0:\n if ele%3!=0 and ele%5!=0:\n print("DENIED")\n deny = True\n break;\n \nif not deny:\n print("APPROVED")'] | ['Runtime Error', 'Accepted'] | ['s255012548', 's439728943'] | [2940.0, 2940.0] | [17.0, 18.0] | [216, 223] |
p02772 | u500297289 | 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())\nA = list(map(int, input(),split()))\n\nfor a in A:\n if a % 2 == 0:\n if a % 3 != 0 and a % 5 != 0:\n print('DENIED')\n exit()\n\nprint('APPROVED')\n", "N = int(input())\nA = list(map(int, input().split()))\n\nfor a in A:\n if a % 2 == 0:\n if a % 3 != 0 and a % 5 != 0:\n print('DENIED')\n exit()\n\nprint('APPROVED')\n"] | ['Runtime Error', 'Accepted'] | ['s371696995', 's783452119'] | [2940.0, 2940.0] | [17.0, 17.0] | [197, 189] |
p02772 | u501680811 | 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, A = input(), input()\n\nN, tmp = int(N), A.split()\n\nif len(tmp) != N:\n print("DENIED")\n SystemExit()\n\nfor i in tmp:\n if int(i) % 3 == 0 or int(i) % 5 == 0:\n print("APPROVED")\n else:\n print("DENIED")\n', 'N, A = int(input()), input()\n\ntmp = list(map(int, A.split()))\n\nflg = "True"\nfor i in tmp:\n if i % 2 == 0 and i % 3 != 0 and i % 5 != 0:\n flg = "False"\n\nif flg == "True":\n print("APPROVED")\nelse:\n print("DENIED")\n '] | ['Wrong Answer', 'Accepted'] | ['s592204484', 's521446707'] | [3060.0, 2940.0] | [17.0, 17.0] | [226, 232] |
p02772 | u507113442 | 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 i in range (n):\n if a[i]%2==0:\n if a[i]%15!=0:\n ans="DENIED"\n \nprint(ans)', 'n=int(input())\na=list(map(int,input().split()))\nans="APPROVED"\nfor i in range n:\n if a[i]%2==0:\n if a[i]%15!=0:\n ans="DENIED"\n \nprint(ans)', 'n=int(input())\na=list(map(int,input().split()))\nans="APPROVED"\nfor i in range (n):\n if a[i]%2==0:\n if a[i]%3!=0 and a[i]%5!=0:\n ans="DENIED"\n else:\n ans="APRROVED"\n \nprint(ans)', 'n=int(input())\na=list(map(int,input().split()))\nans="APPROVED"\nfor i in range (n):\n if a[i]%2==0:\n if a[i]%3!=0 or a[i]%5!=0:\n ans="DENIED"\n else:\n ans="APRROVED"\n \nprint(ans)', 'n=int(input())\na=list(map(int,input().split()))\nans="APPROVED"\nfor i in range (n):\n if a[i]%2==0:\n if a[i]%15!=0:\n ans="DENIED"\n else:\n ans="APPROVED"\n \nprint(ans)', 'n=int(input())\na=list(map(int,input().split()))\nans="APPROVED"\nfor i in range (n):\n if a[i]%2==0:\n if a[i]%3!=0 or a[i]%5!=0:\n ans="DENIED"\n \n \nprint(ans)', 'n=int(input())\na=list(map(int,input().split()))\nans="APPROVED"\nfor i in range (n):\n if a[i]%2==0:\n if a[i]%15!=0:\n ans="DENIED"\n \nprint(ans)', 'n=int(input())\na=list(map(int,input().split()))\nans="APPROVED"\nfor i in range (n):\n if a[i]%2==0:\n if a[i]%3!=0 and a[i]%5!=0:\n ans="DENIED"\n \n \nprint(ans)'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s498267447', 's509647798', 's521832737', 's635530901', 's695143451', 's853760551', 's952347375', 's720177632'] | [2940.0, 2940.0, 3060.0, 3060.0, 2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 18.0, 17.0, 17.0, 18.0, 17.0, 17.0] | [152, 150, 196, 195, 183, 169, 152, 170] |
p02772 | u508934152 | 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\nF = 0\n\nfor i in range(N):\n if a[i] % 2 == 0:\n if a[i] % 3 != 0 or a[i] % 5 != 0:\n F = 1\n \nif F == 1:\n print('DENIED')\nelse:\n print('APPROVED')\n \n\n", "N = int(input())\n\na = list(map(int, input().split()))\n\nF = 0\n\nfor i in range(N):\n if a[i] % 2 == 0:\n if a[i] % 3 != 0 and a[i] % 5 != 0:\n F = 1\n \nif F == 1:\n print('DENIED')\nelse:\n print('APPROVED')\n \n\n"] | ['Wrong Answer', 'Accepted'] | ['s128564457', 's897853350'] | [3060.0, 2940.0] | [17.0, 17.0] | [222, 223] |
p02772 | u512315557 | 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=list(map(int,input().split()))\nnList=[e for e in List if e % 2 == 0]\nfor f in nList:\n if f % 3 == 0 or f % 5 == 0:\n print("APPROVED")\n else:\n print("DENIED")\n break\n ', 'N=int(input())\nList=list(map(int,input().split()))\nnList=[e for e in List if e % 2 == 0]\ntmp = []\nwhile nList:\n f = nList.pop()\n if f % 3 != 0 and f % 5 != 0:\n tmp.append(f)\nif not tmp:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s377455952', 's139018019'] | [2940.0, 3060.0] | [17.0, 18.0] | [198, 234] |
p02772 | u514118270 | 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 A.remove(i)\n continue\n else:\n continue\nfor i in range(N)\n if A[i] % 3 != 0 and A[i] % 5 != 0:\n print('DENIED')\n break\n else:\n continue\nprint('APRROVED') \n ", "N = int(input())\nAf = list(map(int,input().split()))\nA = list()\nfor i in range(N):\n if Af[i] % 2 == 0:\n A.append(Af[1])\n continue\n else:\n continue\nfor i in range(len(A)):\n if A[i] % 3 != 0 and A[i] % 5 != 0:\n print('DENIED')\n import sys\n sys.exit()\n if A[i] % 3 == 0 or A[i] % 5 == 0:\n continue \nprint('APPROVED')", "N = int(input())\nAf = list(map(int,input().split()))\nA = list()\nfor i in range(N):\n if Af[i] % 2 == 0:\n A.append(Af[i])\n continue\n else:\n continue\nfor i in range(len(A)):\n if A[i] % 3 != 0 and A[i] % 5 != 0:\n print('DENIED')\n import sys\n sys.exit()\n if A[i] % 3 == 0 or A[i] % 5 == 0:\n continue \nprint('APPROVED')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s233064308', 's269415464', 's268126332'] | [2940.0, 3064.0, 3064.0] | [18.0, 18.0, 18.0] | [293, 352, 352] |
p02772 | u516242950 | 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())\nbomb = []\nhako = list(map(int, input().split()))\nfor h in hako:\n if h % 2 != 0 and h % 3 != 0 and h % 5 != 0:\n bomb.append(1)\nif len(bomb) == 0:\n print("APPROVED")\nelse:\n print("DENIED")', 'n = int(input())\nbomb = []\nkotae = []\nhako = list(map(int, input().split()))\nfor h in hako:\n if h % 2 == 0:\n bomb.append(h)\nfor h in bomb:\n if h % 3 == 0 or h % 5 == 0:\n kotae.append(h)\nif len(kotae) == len(bomb):\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s278370079', 's246271130'] | [2940.0, 3064.0] | [18.0, 17.0] | [209, 265] |
p02772 | u516579758 | 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())\nfor i in a:\n if i%2==0:\n if i%3!=0 or i%5!=0:\n result='DENIDE'\nresult='APROVED'\nprint(result)", "n=int(input())\na=map(int,input().split())\nfor i in a:\n if i%2==0:\n if i%3!=0 or i%5!=0:\n result='DENIDE'\n else:\n result='APROVED'\nprint(result)", "n=int(input())\na=list(map(int,input().split()))\nresult='APPROVED'\nfor i in a:\n if i%2==0:\n if i%3!=0 and i%5!=0:\n result='DENIED'\nprint(result)"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s335586475', 's630629896', 's140964598'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [156, 182, 164] |
p02772 | u517797706 | 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`. | ['if __name__ == \'__main__\':\n\n\tn = input()\n\tA = list(map(int,input().split()))\n\n\tcnt = 0\n\tfor i in A:\n\t\tif i % 2 == 0:\n\t\t\tif i % 3 == 0 or i % 5 == 0:\n\t\t\t\tcnt += 1\n\t\telse:\n\t\t\tcnt += 1\n\tif cnt == n:\n\t\tprint("APPROVED")\n\telse:\n\t\tprint("DENIED")\n\t', 'if __name__ == \'__main__\':\n\n\tn = int(input())\n\tA = list(map(int,input().split()))\n\n\tcnt = 0\n\tfor i in A:\n\t\tif i % 2 == 0:\n\t\t\tif i % 3 == 0 or i % 5 == 0:\n\t\t\t\tcnt += 1\n\t\telse:\n\t\t\tcnt += 1\n\tif cnt == n:\n\t\tprint("APPROVED")\n\telse:\n\t\tprint("DENIED")\n'] | ['Wrong Answer', 'Accepted'] | ['s512464035', 's444462543'] | [9172.0, 9204.0] | [31.0, 32.0] | [242, 246] |
p02772 | u521266908 | 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()\nlist = [int(i) for i in input().split()]\n\nfor i in range(n):\n if list[i] %2 == 0:\n if list[i]%3 == 0 or list[i] %5 == 0:\n continue\n else:\n print("DENIED")\n break\nelse:\n print("APPROVED")\n', 'n = int(input())\nlist = [int(i) for i in input().split()]\n\nfor i in range(n):\n if list[i] %2 == 0:\n if list[i]%3 == 0 or list[i] %5 == 0:\n continue\n else:\n print("DENIED")\n break\nelse:\n print("APPROVED")\n'] | ['Runtime Error', 'Accepted'] | ['s256984904', 's007955247'] | [3060.0, 3060.0] | [18.0, 19.0] | [252, 257] |
p02772 | u521518741 | 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 resolve():\n N = int(input())\n arr = list(map(int, input.split()))\n for num in arr:\n if not num % 2 and not (num % 3 == 0 or num % 5 == 0):\n print('DENIED')\n quit()\n print('APPROVED')\n\nresolve()", "def resolve():\n N = int(input())\n arr = list(map(int, input().split()))\n f = True\n for num in arr:\n if not num % 2 and not (num % 3 == 0 or num % 5 == 0):\n print('DENIED')\n f = False\n break\n if f:\n print('APPROVED')\n\n\nresolve()"] | ['Runtime Error', 'Accepted'] | ['s490536030', 's726190187'] | [3060.0, 3060.0] | [17.0, 17.0] | [238, 289] |
p02772 | u524489226 | 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 = input()\nlist_a = list(map(int, input().split()))\n\nfor a in list_a:\n if a%2 == 0:\n if a%3 == 0:\n if a%5 == 0:\n pass\n else:\n print("DENIED")\n sys.exit()\n else:\n print("DENIED")\n sys.exit()\n \nprint("APPROVED")', 'n = input()\nlist_a = list(map(int, input().split()))\n\nfor a in list_a:\n if a%2 == 0:\n if a%3 == 0:\n if a%5 == 0:\n continue\n else:\n print("DENIED")\n exit()\n else:\n print("DENIED")\n exit()\n \nprint("APPROVED")', 'n = input()\nlist_a = list(map(int, input().split()))\n\nfor a in list_a:\n if a%2 == 0:\n if a%3 == 0:\n if a%5 == 0:\n continue\n else:\n exit()\n else:\n print("DENIED")\n exit()\n \nprint("APPROVED")', 'import sys\nn = input()\nlist_a = list(map(int, input().split()))\n\nfor a in list_a:\n if a%2 == 0:\n if a%3 == 0:\n continue\n \n if a%5 == 0:\n continue\n\n print("DENIED")\n sys.exit()\n\nprint("APPROVED")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s215134992', 's423905452', 's748317453', 's894333521'] | [3060.0, 3060.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [300, 285, 257, 234] |
p02772 | u524534026 | 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 = 0\nb = 0\nfor i in range(n):\n if A[i] %2 = 0:\n a +=1\n if A[i] %3= 0 or A[i]%5=0:\n b +=1\nif a == b:\n print('APPROVED')\nelse:\n print('DENIED')", "n = int(input())\nA = list(map(int,input().split()))\na = 0\nb = 0\nfor i in range(n):\n if A[i] %2 == 0:\n a +=1\n if A[i] %3== 0 or A[i]%5==0:\n b +=1\nif a == b:\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Runtime Error', 'Accepted'] | ['s754089240', 's754417297'] | [2940.0, 3060.0] | [17.0, 17.0] | [228, 231] |
p02772 | u527616458 | 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()))\nflag = True\nfor i in range(len(b)):\n if i%2==1:\n if b[i]%!=0 or b[i]%5!=0:\n flag = False\n \nif flag == True:\n print("APPROVED")\nelse:\n print("DENIED")', 'a = int(input())\nb = list(map(int, input().split()))\nflag = True\nfor i in range(len(b)):\n if b[i]%2==0:\n if b[i]%3!=0 and b[i]%5!=0:\n flag = False\n \nif flag == True:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Runtime Error', 'Accepted'] | ['s094183763', 's807484379'] | [2940.0, 3064.0] | [17.0, 19.0] | [218, 223] |
p02772 | u528720841 | 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\nf = True\nfor a in A:\n if (a&1)==0 and ((a%3==0) or (a%5==0)):\n pass\n else:\n f = False\nif f:\n print("APPROVED")\nelse:\n print("DENIED")\n ', 'N = int(input())\nA = list(map(int, input().split()))\n\nf = True\nfor a in A:\n if (a&1)==0:\n if ((a%3==0) or (a%5==0)):\n pass\n else:\n f = False\n\nif f:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s342650268', 's936222786'] | [3060.0, 3060.0] | [18.0, 17.0] | [202, 208] |
p02772 | u530883476 | 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=map(int,input().split())\ncount=0\nfor i in range (a):\n\tif b[i]%2==0:\n\t\tif b[i]%3==0 or b[i]%5==0:\n\t\t\tcount=1\n\t\telse:count=0\n\telse:count=1\nif count=1:\n\tprint("APPROVED")\nelse: print("DENIED")', 'N= int(input())\nflag = False\nfor i in range(1,10):\n\tfor j in range(1,10):\n\t\tA=i*j\n\t\tif(A==N):\n\t\t\tflag=True\n\t\t\tbreak\n\tif flag: break\nif flag:print("Yes")\nelse:print("No")', 'a=int(input())\nb=list(map(int,input().split()))\ncount=0\nfor i in range (a):\n if b[i]%2==0 and b[i]%3!=0 and b[i]%5!=0:\n count=0\n break\n else:count=1\nif count==1:\n print("APPROVED")\nelse: print("DENIED")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s822411352', 's921647540', 's388246282'] | [2940.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [206, 169, 204] |
p02772 | u531599639 | 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 = 1\nfor a in A:\n if a%2==0:\n if a%3!=0 and a%5!=0:\n ans = 0\nprint('APPROVED' if ans else 'DENIED')", "n = int(input())\nA = list(map(int, input().split()))\nans = 1\nfor a in A:\n if a%2==0:\n if a%3!=0 and a%5!=0:\n ans = 0\nprint('APPROVED' if ans else 'DENIED')"] | ['Runtime Error', 'Accepted'] | ['s248148335', 's884362763'] | [2940.0, 2940.0] | [17.0, 17.0] | [165, 164] |
p02772 | u536685012 | 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\nans = 0\n\nfor i in range(n):\n if i % 2 == 0:\n if i % 3 != 0 or i % 5 != 0:\n ans += 1\n\nif ans >= 1:\n print("DENIED")\nelse:\n print("APPROVED")\n', 'n = int(input())\na = list(map(int, input().split()))\n\nans = 0\n\nfor i in range(n):\n if i % 2 == 0:\n if i % 3 == 0 or i % 5 == 0:\n pass\n else:\n ans += 1\n break\n\nif ans >= 1:\n print("DENIED")\nelse:\n print("APPROVED")', "n = int(input())\na = list(map(int, input().split()))\n\nans = 0\n\nfor i in range(n):\n ai = a[i]\n if ai % 2 == 0:\n if (ai % 3) * (ai % 5) != 0:\n ans += 1\n \nif ans >= 1:\n print('DENIED')\nelse:\n print('APPROVED')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s199273855', 's981273215', 's867185711'] | [3064.0, 3060.0, 3060.0] | [17.0, 17.0, 18.0] | [207, 237, 223] |
p02772 | u538537141 | 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())\nAlist=list(map(int,input().split()))\n\nFlag=True\nfor i in range(N):\n print(i)\n if Alist[i]%2==0:\n if Alist[i]%3==0 or Alist[i]%5==0:\n continue\n else:\n Flag=False\n\nif Flag:\n print("APPROVED")\nelse:\n print("DENIED)', 'N =int(input())\nAlist=list(map(int,input().split()))\n\nFlag=True\nfor i in range(N):\n if Alist[i]%2==0:\n if Alist[i]%3==0 or Alist[i]%5==0:\n continue\n else:\n Flag=False\n\nif Flag:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Runtime Error', 'Accepted'] | ['s238195585', 's499880778'] | [3064.0, 3060.0] | [17.0, 17.0] | [275, 263] |
p02772 | u543643685 | 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 fun(li):\n for i in li:\n if i%2 == 0:\n if i%3 == 0 or i%5 ==0:\n continue;\n else:\n return "DENIED"\nreturn "APPROVED" \nn = int(input())\nli = [int(num) for num in input().split(" ")]\nprint(fun(li))\n', 'def fun(li):\n for i in li:\n if i%2 == 0:\n if i%3 == 0 or i%5 ==0:\n continue;\n else:\n return "DENIED"\nreturn "APPROVED \nn = int(input())\nli = [int(num) for num in input.split(" ")]\nprint(fun(li))', 'def fun(li):\n for i in li:\n if i%2 == 0:\n if i%3 == 0 or i%5 ==0:\n continue;\n else:\n return "DENIED"\n\treturn "APPROVED" \nn = int(input())\nli = [int(num) for num in input().split(" ")]\nprint(fun(li))\n', 'def fun(li):\n for i in li:\n if i%2 == 0:\n if i%3 == 0 or i%5 ==0:\n continue;\n else:\n return "DENIED"\nreturn "APPROVED" \nn = int(input())\nli = [int(num) for num in input.split(" ")]\nprint(fun(li))\n', 'def fun(li):\n for i in li:\n if i%2 == 0:\n if i%3 == 0 or i%5 ==0:\n continue;\n else:\n return "DENIED"\n return "APPROVED"\nn = int(input())\nli = [int(num) for num in input().split(" ")]\nprint(fun(li))\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s012011873', 's598228332', 's606187530', 's641111104', 's941811529'] | [2940.0, 3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 18.0] | [231, 227, 232, 229, 227] |
p02772 | u547298813 | 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()\nB = input()\narr1 = [int(i) for i in B.split(' ')]\narr2 = []\noutput = ''\nfor i in range(len(arr1)):\n\tif((arr1[i]%2)==0):\n\t\tarr2.append(arr1[i])\nprint(arr2)\nfor j in range(len(arr2)):\n\tl = int(arr2[j]/3)\n\tk = int(arr2[j]/5)\n\tprint(l%2)\n\tprint(k%2)\n\tif(((l%2)==0)or((k%2)==0)):\n\t\toutput = 'APPROVED'\n\telse:\n\t\toutput = 'DENIED'\n\t\tbreak\nprint(output)", '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'] | ['s694976404', 's234892230'] | [3064.0, 3064.0] | [19.0, 18.0] | [357, 272] |
p02772 | u550061714 | 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`. | ["from sys import exit\n\nN = int(input())\nA = tuple(map(int, input().split()))\nfor a in A:\n if not a % 2 and a % 3 and a % 5:\n print('DENIED')\n exit()\nprint('ACCEPTED')\n", "from sys import exit\n\nN = int(input())\nA = tuple(map(int, input().split()))\nfor a in A:\n if not a % 2 and a % 3 and a % 5:\n print('DENIED')\n exit()\nprint('APPROVED')\n"] | ['Wrong Answer', 'Accepted'] | ['s086413471', 's811196666'] | [2940.0, 2940.0] | [17.0, 18.0] | [183, 183] |
p02772 | u558717347 | 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\ninput_first = input().split()\ninput_second = input().split()\n\nN= input_first\npaper = [int(i) for i in input_second]\n\nfor num in paper:\n if num %2 == 0:\n if num % 5 == 0 or num % 3 == 0:\n print(num)\n print('APPROVED')\n sys.exit(0)\n else:\n print('DENIED')\n sys.exit(0)\n\nprint('DENIED')\n", "import sys\n\ndef result():\n\n\n input_first = input().split()\n input_second = input().split()\n\n N= input_first\n paper = [int(i) for i in input_second]\n\n\n for num in paper:\n if num%2 ==0 and num%3!=0 or num %5 != 0:\n print('DENIED')\n return \n\n print('APPROVED')\n\n\n\nresult()\n\n", "import sys\n\ndef result():\n\n\n input_first = input().split()\n input_second = input().split()\n\n N= input_first\n paper = [int(i) for i in input_second]\n\n\n for num in paper:\n if num%2 ==0 and num%3!=0 and num %5 != 0:\n print('DENIED')\n return \n\n print('APPROVED')\n return \n\n\nresult()\n\n\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s488857714', 's804103308', 's953724840'] | [3060.0, 2940.0, 2940.0] | [18.0, 18.0, 19.0] | [369, 318, 331] |
p02772 | u560430260 | 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())\nm = map(int, input().split())\nflag = "APPROVED"\n\nfor i in m:\n if i % 3 != 0 and i % 5 != 0:\n flag = "DENIED"\n \nprint(flag)', 'n = int(input())\nm = map(int, input().split())\nflag = "APPROVED"\n\nfor i in m:\n\tif i % 2 == 0:\n\t\tif i % 3 != 0 and i % 5 != 0:\n \t\tflag = "DENIED"\n \nprint(flag)\n', 'n = int(input())\nm = map(int, input().split())\nflag = "APPROVED"\n\nfor i in m:\n\tif i % 2 == 0:\n\t\tif i % 3 != 0 and i % 5 != 0:\n\t\t\tflag = "DENIED"\n \nprint(flag)\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s250488421', 's982414811', 's173955281'] | [9120.0, 9020.0, 9064.0] | [32.0, 23.0, 28.0] | [146, 165, 162] |
p02772 | u561935133 | 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 \nnumbers = list(map(int, input().split(' ')))\napproved = False\n \nfor num in numbers[1::2]:\n if (num % 3 == 0) or (num % 5 == 0):\n approved = True\n continue\n else:\n approved = False\n print('DENIED')\n break\nif approved:\n print('APPROVED')", "n = int(input())\n \nnumbers = list(map(int, input().split(' ')))\napproved = False\n \nfor num in numbers:\n if (num % 2 == 0) and ((num % 3 == 0) or (num % 5 == 0)):\n approved = True\n continue\n else:\n approved = False\n print('DENIED')\n break\nif approved:\n print('APPROVED')", "n = int(input())\n\nnumbers = map(int, input().split(' '))\napproved = False\n\nfor num in numbers[1::2]:\n if (num % 3 == 0) or (num % 5 == 0):\n approved = True\n continue\n else:\n approved = False\n print('DENIED')\n break\nif approved:\n print('APPROVED')", "n = int(input())\n \nnumbers = list(map(int, input().split(' ')))\napproved = False\n \nfor num in numbers:\n if (num % 2 == 0):\n \tif (num % 3 == 0) or (num % 5 == 0):\n approved = True\n continue\n \telse:\n approved = False\n print('DENIED')\n break\nif approved:\n print('APPROVED')", "n = int(input())\n \nnumbers = list(map(int, input().split(' ')))\napproved = False\n \nfor num in numbers:\n if (num % 2 == 0):\n \tif (num % 3 == 0) or (num % 5 == 0):\n \tapproved = True\n \tcontinue\n \telse:\n \tapproved = False\n \tprint('DENIED')\n \tbreak\nif approved:\n print('APPROVED')", "n = int(input())\n \nnumbers = list(map(int, input().split(' ')))\napproved = True\n \nfor num in numbers:\n if (num % 2 == 0):\n if (num % 3 == 0) or (num % 5 == 0):\n approved = True\n continue\n else:\n approved = False\n print('DENIED')\n break\nif approved:\n print('APPROVED')"] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s098832997', 's191402301', 's192712115', 's604011556', 's680297129', 's561875646'] | [3060.0, 3060.0, 3064.0, 2940.0, 2940.0, 3060.0] | [17.0, 18.0, 18.0, 17.0, 17.0, 17.0] | [272, 287, 264, 299, 294, 300] |
p02772 | u562015767 | 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 = list((i for i in A if i % 2 == 0))\n\ncount = 0\n\nfor i in B:\n if i%3 == 0 or i%5 == 0:\n count += 1\n else:\n count += 0\n\nif count == len(B):\n print("APROVED")\nelse:\n print("DENIED")', 'N = int(input())\nA = list(map(int,input().split()))\n\ncount = 0\ncnt = 0\n\nfor i in A:\n if i%2 == 0:\n cnt += 1\n if i%3 == 0 or i%5 == 0:\n count += 1\n else:\n count += 0\n\n\nif count == cnt:\n print("APROVED")\nelse:\n print("DENIED")', 'N = int(input())\nA = list(map(int,input().split()))\nB = list((i for i in A if i % 2 == 0))\n\ncount = 0\n\nfor i in B:\n if i%3 == 0 or i%5 == 0:\n count += 1\n\nif count == len(B):\n print("APROVED")\nelse:\n print("DENIED")\n', 'N = int(input())\nA = list(map(int,input().split()))\n\ncount = 0\n\nfor i in A:\n if i%2 == 0:\n if i%3 == 0 or i%5 == 0:\n count += 1\n else:\n count += 0\n else:\n count += 1\n\n\nif int(count) == N:\n print("APROVED")\nelse:\n print("DENIED")', 'N = int(input())\nA = list(map(int,input().split()))\n\nfor i in A:\n if i%2 == 0:\n if i%3 == 0 or i%5 == 0:\n continue\n else:\n print("DENIED")\n quit()\n\n\nprint("APROVED")', 'N = int(input())\nA = list(map(int,input().split()))\nB = list((i for i in A if i % 2 == 0))\n\ncount = 0\n\nfor i in B:\n if i%3 == 0 or i%5 == 0:\n count += 1\n else:\n count += 0\n\nif int(count) == int(len(B)):\n print("APROVED")\nelse:\n print("DENIED")', 'N = int(input())\nA = list(map(int,input().split()))\nB = list((i for i in A if i % 2 == 0))\n \ncount = 0\n \nfor i in B:\n if i%3 == 0 or i%5 == 0:\n count += 1\n \nif count == len(B):\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s199321720', 's422563669', 's451961109', 's527272028', 's689304512', 's899297529', 's453082891'] | [3060.0, 3060.0, 2940.0, 3060.0, 3060.0, 3060.0, 3060.0] | [17.0, 19.0, 17.0, 17.0, 17.0, 17.0, 18.0] | [259, 276, 231, 283, 215, 269, 234] |
p02772 | u564770050 | 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\nfor i in range(n):\n if a[i] % 30 != 0:\n print('DENIED')\n exit()\nprint('APPROVED')\n", "n = int(input())\na = list(map(int, input().split()))\n\nfor i in range(n):\n if a[i] % 2 == 1:\n continue\n if a[i] % 3 != 0 and a[i] % 5 != 0 :\n print('DENIED')\n exit()\nprint('APPROVED')\n"] | ['Wrong Answer', 'Accepted'] | ['s300141911', 's679615798'] | [2940.0, 2940.0] | [17.0, 18.0] | [153, 210] |
p02772 | u565292900 | 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()\nraw_input1 = input()\n\nl = raw_input1.split()\nl_num = [int(x) for x in l]\n\nflag = 0\nflag1 = 0\n\nfor a in l_num:\n if a % 2 ==0:\n print(a)\n if a % 3 == 0 or a % 5 == 0:\n flag = 0\n else:\n flag = 1\n if flag != 0:\n break\n\nif flag == 0:\n print('APPROVED')\nelse:\n print('DENIED')", "N = input()\nraw_input1 = input()\n\nl = raw_input1.split()\nl_num = [int(x) for x in l]\n\nflag = 0\nflag1 = 0\n\nfor a in l_num:\n if a % 2 ==0:\n if a % 3 == 0 or a % 5 == 0:\n flag = 0\n else:\n flag = 1\n if flag != 0:\n break\n\nif flag == 0:\n print('APPROVAL')\nelse:\n print('DENIED')", "N = input()\nraw_input1 = input()\n\nl = raw_input1.split()\nl_num = [int(x) for x in l]\n\nflag = 0\nflag1 = 0\n\nfor a in l_num:\n if a % 2 ==0:\n if a % 3 == 0 or a % 5 == 0:\n flag = 0\n else:\n flag = 1\n if flag != 0:\n break\n\nif flag == 0:\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s146227372', 's610175932', 's052742024'] | [3060.0, 3064.0, 3064.0] | [17.0, 17.0, 19.0] | [344, 327, 327] |
p02772 | u566297428 | 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 = list(map(int,input().split()))\n\nfor i in range(n):\n if not a[i] % 2 == 0 and (a[i] % 3 == 0 or a[i] % 5 == 0):\n print("DNIDED")\n exit()\nelse:\n print("APPROVED")\n', 'N = int input()\na = list(map(int,input().split()))\nb = 0\n\nfor i in range(N):\n if a[i] % != 2:\n if a[i] % != 3 and a[i] % != 5:\n b = 1\n break\nif b == 0:\n print("APPROVED")\nelse:\n print("DNIDED")', 'N = int(input())\na = list(map(int,input().split()))\nb = 0\n\nfor i in range(N):\n if a[i] % 2 == 0:\n if a[i] % 3 != 0:\n if a[i] % 5 != 0:\n \tb = 1\n \tbreak\nif b == 0:\n print("APPROVED")\nelse:\n print("DENIED")\n', 'N = int input()\na = list(map(int,input().split()))\nb = 0\n\nfor i in range(N):\n if a[i] % 2 == 0:\n if a[i] % 3 != 0 or a[i] % 5 != 0:\n b = 1\n break\nif b == 0:\n print("APPROVED")\nelse:\n print("DENIDED")\n', 'N = int input()\na = list(map(int,input().split()))\nb = 0\n\nfor i in range(N):\n if a[i] % != 2:\n if a[i] % != 3 or a[i] % != 5:\n b = 1\n break\nif b == 0:\n print("APPROVED")\nelse:\n print("DENIDED")\n', 'N = input()\na = list(map(int,input().split()))\nb = 0\n\nfor i in range(N):\n if a[i] % 2 == 0:\n if a[i] % 3 != 0 and a[i] % 5 != 0:\n b = 1\n break\nif b == 0:\n print("APPROVED")\nelse:\n print("DENIED")\n', 'n = input()\na = list(map(int,input().split()))\n\nfor i in range(n):\n if not a[i] %= 2 and (a[i] %= 3 or a[i] %= 5):\n print("DNIDED")\n exite()\nelse:\n print("APPROVED")', 'N = input()\na = list(map(int,input().split()))\nb = 0\n\nfor i in range(N):\n if a[i] % 2 == 0:\n if a[i] % 3 != 0:\n if a[i] % 5 != 0:\n \tb = 1\n \tbreak\nif b == 0:\n print("APPROVED")\nelse:\n print("DENIED")\n', 'N = int input()\na = list(map(int,input().split()))\nb = 0\n\nfor i in range(N):\n if a[i] % 2 == 0:\n if a[i] % 3 != 0 or a[i] % 5 != 0:\n b = 1\n break\nif b == 0:\n print("APPROVED")\nelse:\n print("DENIED")\n', 'n = int input()\na = list(map(int,input().split()))\n\nfor i in range(n):\n if a[i] % 2 == 0 and (a[i] % 3 == 0 or a[i] % 5 == 0):\n print("APPROVED")\n exit()\nelse:\n print("DENIDE")\n', 'N = int(input())\na = list(map(int,input().split()))\nb = 0\n\nfor i in range(N):\n if a[i] % 2 == 0:\n if a[i] % 3 != 0 and a[i] % 5 != 0:\n b = 1\n break\nif b == 0:\n print("APPROVED")\nelse:\n print("DENIED")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s044985635', 's113640375', 's202982264', 's239847665', 's288973767', 's459125132', 's779299059', 's861152942', 's914196310', 's947548541', 's338765016'] | [2940.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0] | [18.0, 17.0, 17.0, 17.0, 18.0, 19.0, 17.0, 17.0, 17.0, 18.0, 17.0] | [185, 209, 224, 216, 210, 212, 173, 219, 215, 186, 239] |
p02772 | u571444155 | 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())\n\na = list(map(int, input().split()))\n\nflag == True\n\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 flag = False\n break\n \nif flag:\n print('APPROVED')\n", "n = int(input())\n\na = list(map(int, input().split()))\n\nflag = True\n\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 flag = False\n break\n \nif flag:\n print('APPROVED')", "n = int(input())\n\na = list(map(int, input().split()))\n\nflag = True\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 flag = False\n break\n \nif flag:\n print('APPROVED')"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s721067347', 's982585153', 's115771397'] | [3064.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [238, 228, 229] |
p02772 | u571608999 | 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())\nNx = input().split()\ng = []\nfor x in Nx:\n if x % 2 == 0:\n g.append(x)\n\nfor i in g:\n if not i % 3 == 0:\n if not i % 5 == 0:\n print("DENIED")\n break\n else:\n continue\n print("APPROVED")', 'N = int(input())\nNx = input().split()\ng = []\nfor x in Nx:\n x = int(x)\n if x % 2 == 0:\n g.append(x)\nans = 0\nfor i in g:\n if not i % 3 == 0:\n if not i % 5 == 0:\n ans = 1\n break\n else:\n continue\n else:\n continue\nif ans == 1:\n print("DENIED")\nelse:\n print("APPROVED")'] | ['Runtime Error', 'Accepted'] | ['s641396437', 's628440004'] | [2940.0, 3064.0] | [17.0, 17.0] | [254, 340] |
p02772 | u572122511 | 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_even = [i for i in A if i % 2 == 0]\nflag_list = list(map(lambda x: (x % 3 == 0) or (x % 5 == 0), A_even))\nprint(flag_list)\nprint('APPROVED' if False not in flag_list else 'DENIDE')", "N = int(input())\nA = list(map(int, input().split()))\nA_even = [i for i in A if i % 2 == 0]\nflag_list = list(map(lambda x: (x % 3 == 0) or (x % 5 == 0), A_even))\nprint(flag_list)\nprint('APPROVED' if False not in flag_list else 'DENIED')\n", "N = int(input())\nA = list(map(int, input().split()))\nA_even = [i for i in A if i % 2 == 0]\nflag_list = list(map(lambda x: (x % 3 == 0) or (x % 5 == 0), A_even))\nprint('APPROVED' if False not in flag_list else 'DENIED')\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s364387227', 's833926205', 's439771866'] | [3060.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [235, 236, 219] |
p02772 | u572373398 | 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\ntest = True\nfor i in a:\n if i % 2 == 0:\n if i % 3 == 0 or i % 5 == 0:\n continue\n else:\n test = False\n break\nif test:\n print('APPROVAL')\nelse:\n print('DENIED')\n ", "n = int(input())\na = list(map(int, input().split()))\n\ntest = True\nfor i in a:\n if i % 2 == 0:\n if i % 3 == 0 or i % 5 == 0:\n continue\n else:\n test = False\n break\nif test:\n print('APPROVED')\nelse:\n print('DENIED')\n "] | ['Wrong Answer', 'Accepted'] | ['s882206565', 's481923829'] | [2940.0, 2940.0] | [18.0, 17.0] | [243, 243] |
p02772 | u579508806 | 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()\nnum = [int(x) for x in input().split()]\nflag = True\nfor x in num:\n if x % 2 == 0:\n if x % 3 != 0 and x % 5 != 0:\n flag = False\nif flag:\n print('APPROVE')\nelse:\n print('DENIED')", "a = input()\nnum = [int(x) for x in input().split()]\nprint(num)\nflag = True\nfor x in num:\n if x % 2 == 0:\n if x % 3 != 0 and x % 5 != 0:\n flag = False\nif flag:\n print('APPROVED')\nelse:\n print('DENIED')", "a = input()\nnum = [int(x) for x in input().split()]\nfor x in num:\n if x % 2 == 0:\n if x % 3 != 0 and x % 5 != 0:\n print('DENIED')\n exit()\nprint('APPROVE')", "a = input()\nnum = [int(x) for x in input().split()]\nflag = True\nfor x in num:\n if x % 2 == 0:\n if x % 3 != 0 and x % 5 != 0:\n flag = False\nif flag:\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s069907324', 's857470193', 's952797187', 's360677143'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [199, 211, 168, 200] |
p02772 | u581603131 | 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()))\ncount = 0\ncheck = 0\nfor i in A:\n if i%2 == 0:\n count += 1\n if i%3 == 0 or i%5 == 0:\n check += 1\nif count == check:\n\tprint('APROVED')\nelse:\n\tprint('DENIED')", "N = int(input())\nA = list(map(int, input().split()))\ncount = 0\ncheck = 0\nfor i in A:\n if i%2 == 0:\n count += 1\n if i%3 == 0 or i%5 == 0:\n check += 1\n else:\n print('DENIED')\n break\nif count == check:\n\tprint('APROVED')", "N = int(input())\nA = list(map(int, input().split()))\ncount = 0\ncheck = 0\nfor i in A:\n if i%2 == 0:\n count += 1\n if (i%3 == 0 and i%5 != 0) or (i%3 != 0 and i%5 == 0):\n check += 1\nif count == check:\n\tprint('APROVED')\nelse:\n\tprint('DENIED')", "N = int(input())\nA = list(map(int, input().split()))\ncount, check = 0\nfor i in A:\n if i%2 == 0:\n count += 1\n if i%3 == 0 or i%5 == 0:\n check += 1\nif count == check:\n\tprint('APPROVED')\nelse:\n\tprint('DENIED')", "N = int(input())\nA = list(map(int, input().split()))\nfor i in A:\n if i%2 == 0:\n count += 1\n if i%3 == 0 or i%5 == 0:\n check += 1\nif count == check:\n\tprint('APPROVED')\nelse:\n\tprint('DENIED')", "N = int(input())\nA = list(map(int, input().split()))\ncount = 0\ncheck = 0\nfor i in A:\n if i%2 == 0:\n count += 1\n if i%3 == 0 or i%5 == 0:\n check += 1\nif count == check:\n\tprint('APROVED')\nelif count != check:\n\tprint('DENIED')", "N = int(input())\nA = list(map(int, input().split()))\nif all(i%3==0 or i%5==0 for i in A if i%2==0):\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s029141324', 's283310629', 's307206874', 's684714840', 's768793534', 's959423956', 's916719031'] | [3060.0, 3060.0, 3060.0, 3060.0, 2940.0, 3060.0, 2940.0] | [18.0, 17.0, 18.0, 17.0, 17.0, 18.0, 17.0] | [236, 273, 266, 234, 217, 251, 147] |
p02772 | u585348179 | 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\neven = [i for i in a if a % 2 == 0]\n\ncnt = 0\nfor e in even:\n if e % 3 == 0 or e % 5 == 0:\n cnt += 1\nif cnt == len(even):\n print('APPROVED')\nelse:\n print('DENIED')", "n=int(input())\na=list(map(int, input().split()))\nanc = 'APPROVED'\nfor i in a:\n if i % 2 == 0 and i % 3 != 0 and i % 5 != 0:\n anc = 'DENIED'\nprint(anc)\n "] | ['Runtime Error', 'Accepted'] | ['s747287712', 's863052199'] | [3064.0, 2940.0] | [17.0, 17.0] | [228, 165] |
p02772 | u592035627 | 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 = map(int,input().split())\n\na = 0\nfor i in range(N):\n if s[i]/2 == s[i]//2:\n if s[i]/3 == s[i]//3 or s[i]/5 == s[i]//5:\n a = a + 1\n else:\n a = a + 1\n\nif a == N:\n print("APPROVED")\nelse:\n print("DENIED")', 'N = int(input())\ns = [int(x) for x in input().split()]\n \na = 0\nfor i in range(N):\n if s[i]/2 == s[i]//2:\n if s[i]/3 == s[i]//3 or s[i]/5 == s[i]//5:\n a = a + 1\n else:\n a = a + 1\n \nif a == N:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Runtime Error', 'Accepted'] | ['s837015342', 's194766211'] | [3060.0, 3060.0] | [18.0, 17.0] | [256, 267] |
p02772 | u594477812 | 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\nflag=0\n\nfor i in range(N):\n if A[i]%2==0:\n if A[i]%3>0 or A[i]%5>0:\n flag=1\n break\nif flag==1:\n print("DENIED")\nelse:\n print("APPROVED")', 'N=int(input())\nA=list(map(int,input().split()))\n\nflag=0\n\nfor i in range(N):\n if A[i]%2==0:\n if A[i]%3>0 and A[i]%5>0:\n flag=1\n break\nif flag==1:\n print("DENIED")\nelse:\n print("APPROVED")'] | ['Wrong Answer', 'Accepted'] | ['s010965990', 's174379135'] | [3060.0, 3060.0] | [18.0, 17.0] | [201, 202] |
p02772 | u595375942 | 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:\n if i%3!=0 or i%5!=0:\n print('DENIED')\n exit()\nprint('APPROVED')", "ans='APPROVED'\nn=int(input())\nL=list(map(int,input().split()))\nfor i in L:\n if i%2==0:\n if i%3!=0 and i%5!=0:\n ans='DENIED'\n break\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s328583600', 's926208944'] | [2940.0, 2940.0] | [17.0, 17.0] | [168, 173] |
p02772 | u595542086 | 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(s) for s in input().split()]\nb=0\nfor i in range(n):\n if a[i]%2==0:\n if a[i]%3!=0 or a[i]%5!=0:\n b+=1\nif b==0:\n print("APPROVED")\nelse:\n print("DENIED")', 'n=int(input())\na=[int(s) for s in input().split()]\nb=0\nfor i in range(n):\n if a[i]%2==0:\n if a[i]%3!=0 and a[i]%5!=0:\n b+=1\nif b==0:\n print("APPROVED")\nelse:\n print("DENIED")\n'] | ['Wrong Answer', 'Accepted'] | ['s229373834', 's205113246'] | [3060.0, 2940.0] | [18.0, 17.0] | [184, 186] |
p02772 | u595600198 | 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())\nflag=True\nnums=list(map(int, input().split()))\nfor x in nums:\n if x%2:\n continue\n else:\n if x%3==0 and x%5==0:\n continue\n else:\n flag=False\n break\nif flag:\n print("APPROVED")\nelse:\n print("DENIED")\n ', 'N=int(input())\nflag=True\nnums=list(map(int, input().split()))\nfor x in nums:\n if x%2:\n continue\n else:\n if x%3==0 or x%5==0:\n continue\n else:\n flag=False\n break\nif flag:\n print("APPROVED")\nelse:\n print("DENIED")\n '] | ['Wrong Answer', 'Accepted'] | ['s277957627', 's544857535'] | [2940.0, 2940.0] | [19.0, 17.0] | [243, 242] |
p02772 | u595952233 | 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())\naa = map(int, input().split())\n\nf = False\nfor a in aa:\n if a % 2 == 0:\n if a % 3 != 0:\n print('DENIED')\n f = True\n break\n elif a % 5 != 0:\n print('DENIED')\n f = True\n break\nif not f:\n print('APPROVED')\n", "N = int(input())\naa = map(int, input().split())\n\nf = False\nfor a in aa:\n if a % 2 == 0:\n if (a % 3 != 0) or (a % 5 != 0):\n print('DENIED')\n f = True\n break\nif not f:\n print('APPROVED')", "N = int(input())\naa = map(int, input().split())\n\nf = False\nfor a in aa:\n if a % 2 == 0:\n if (a % 3 != 0) and (a % 5 != 0):\n print('DENIED')\n f = True\n break\nif not f:\n print('APPROVED')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s522917707', 's756658419', 's086312185'] | [3064.0, 3064.0, 2940.0] | [17.0, 18.0, 17.0] | [257, 204, 205] |
p02772 | u596536048 | 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 a in A:\n if a % 2 == 0 and (a % 3 == 0 or a % 5 == 0):\n print('APPROVED')\n else:\n print('DENIED')", 'N = input()\nA = list(map(int, input().split()))\nprint("APPROVED" if all(a % 3 == 0 or a % 5 == 0 for a in A) else "DENIED")', "N = int(input())\nA = list(map(int, input().split()))\nfor a in A:\n if a % 2 == 0 and (a % 3 == 0 and a % 5 == 0):\n print('APPROVED')\n else:\n print('DENIED')", "N = int(input())\nA = list(map(int, input().split()))\nfor a in A:\n if a % 2 == 0 and (a % 3 != 0 and a % 5 != 0):\n print('DENIED')\n else:\n print('APPROVED')", "N = int(input())\nA = list(map(int, input().split()))\nfor a in A:\n if a % 2 == 0:\n if a % 3 != 0 and a % 5 != 0:\n print('DENIED')\n break\nelse:\n print('APPROVED')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s067550721', 's157948235', 's699142213', 's977429438', 's436905528'] | [9156.0, 9108.0, 9168.0, 9156.0, 9164.0] | [28.0, 32.0, 28.0, 31.0, 34.0] | [174, 123, 175, 175, 195] |
p02772 | u597455618 | 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]%5 != 0 or a[i]%3 != 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]%5 == 0 or a[i]%3 == 0:\n pass\n else:\n print("DENIED")\n exit()\nprint("APPROVED")'] | ['Wrong Answer', 'Accepted'] | ['s680280337', 's821151700'] | [3060.0, 3060.0] | [18.0, 17.0] | [195, 226] |
p02772 | u598924163 | 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())\nli = list(map(int,input().split()))\nflag = 0\nfor i in range(n):\n if(li[i] % 2 == 0):\n if((li[i] % 3 == 0) or(li[i] % 3 == 5)):\n flag=1\n #print('APPROVED')\n else:\n flag=0\n break\nif(flag == 1):\n print('APPROVED')\nelse:\n print('DENIED')", "n = int(input())\nli = list(map(int,input().split()))\nflag = 0\nfor i in range(n):\n if(li[i] % 2 == 0):\n if((li[i] % 3 == 0) or(li[i] % 5 == 0)):\n flag=1\n else:\n flag=0\n break\n else:\n flag=0\nif(flag == 1):\n print('APPROVED')\nelse:\n print('DENIED')\n", "n = int(input())\nli = list(map(int,input().split()))\nflag = 0\nfor i in range(n):\n if(li[i] % 2 == 0):\n if((li[i] % 3 == 0) or(li[i] % 3 == 5)):\n print('APPROVED')\n \n else:\n print('DENIED')", "n = int(input())\nli = list(map(int,input().split()))\nflag = 1\nfor i in range(n):\n if(li[i] % 2 == 0):\n if((li[i] % 3 == 0) or(li[i] % 5 == 0)):\n #print(li[i])\n #flag=1\n continue\n else:\n #print(li[i])\n flag=0\n \n\n\nif(flag == 1):\n print('APPROVED')\nelse:\n print('DENIED')\n\n\n"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s011642644', 's088778531', 's513216514', 's342592608'] | [3064.0, 3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0, 17.0] | [317, 312, 222, 387] |
p02772 | u602773379 | 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=input1()\nA=input_array()\nflag=True\nfor x in A:\n\tif x%2==0:\n\t\tif x%3==0 or x%5==0:\n\t\t\tcontinue\n\t\telse:\n\t\t\tflag=False\n\t\t\tbreak\nif flag:\n\tprint("APPROVED")\nelse:\n\tprint("DENIED")', '\ndef input1():\n\treturn int(input())\n\n\ndef input2():\n\treturn map(int,input().split())\n\n\ndef input_array():\n\treturn list(map(int,input().split()))\n\n\n\n\n\nN=input1()\nA=input_array()\nflag=True\nfor x in A:\n\tif x%2==0:\n\t\tif x%3==0 or x%5==0:\n\t\t\tcontinue\n\t\telse:\n\t\t\tflag=False\n\t\t\tbreak\nif flag:\n\tprint("APPROVED")\nelse:\n\tprint("DENIED")'] | ['Runtime Error', 'Accepted'] | ['s920866112', 's050817115'] | [2940.0, 3060.0] | [17.0, 17.0] | [177, 410] |
p02772 | u607074939 | 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()))\njud = True\nfor i in range(n-1):\n if a[i]%2 == 0:\n if(a[i]%3 != 0 and a[i]%5 != 0):\n jud = False\n break\nif judge:\n print('APPROVED')\nelse:\n print('DENIED')", "n = int(input())\na = list(map(int, input().split()))\ncount = True\nfor i in range(n):\n if a[i]%2 == 0:\n if(a[i]%3 != 0 and a[i]%5 != 0):\n count = False\n break\nif count:\n print('APPROVED')\nelse:\n print('DENIED')"] | ['Runtime Error', 'Accepted'] | ['s515808774', 's451117319'] | [3060.0, 3060.0] | [17.0, 17.0] | [245, 247] |
p02772 | u611090896 | 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 a:\n if i % 2 == 0:\n if not i % 3 == 0 or i % 5 == 0:\n ans = False\n break\nif ans:\n print('APPROVED')\nelse:\n print('DENIED')", "n = int(input())\na = [i for i in map(int,input().split())]\nCheck = Fasle\ncheck_list=[]\nfor s in range(n):\n if a[s]%2 == 0:\n check_list.append(a[s])\nfor t in range(len(check_list)):\n if check_list[t]%3 == 0 or check_list[t]%5==0:\n Check =True\nif Check:\n print('APPROVED')\nelse:\n print('DENIED')", "n = int(input())\na = list(map(int,input().split()))\nans = True\nfor i in a:\n if i % 2 == 0:\n if not (i % 3 == 0 or i % 5 == 0):\n ans = False\n break\nif ans:\n print('APPROVED')\nelse:\n print('DENIED')\n"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s102143353', 's879222414', 's648604491'] | [9108.0, 9116.0, 9036.0] | [30.0, 27.0, 30.0] | [210, 303, 213] |
p02772 | u613144488 | 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\n\nN = list(map(int, input().split()))\nprint(N)\nA = list(map(int, input().split()))\nprint(A)\n\nfor x in A:\n if (x % 2 == 0) and ((x % 3 != 0) and (x % 5 != 0)):\n print('DENIED')\n sys.exit()\n\nprint ('APPROVED')\n", "import sys\n\nN = list(map(int, input().split()))\nprint(N)\nA = list(map(int, input().split()))\nprint(A)\n\nfor x in A:\n if (x % 2 == 0) and ((x % 3 != 0) or (x % 5 != 0)):\n print('DENIED')\n sys.exit()\n\nprint ('APPROVED')", "import sys\n\nN = list(map(int, input().split()))\nprint(N)\nA = list(map(int, input().split()))\nprint(A)\n\nfor x in A:\n if (x % 2 == 0) and (x % 3 != 0) and (x % 5 != 0):\n print('DENIED')\n sys.exit()\n\nprint ('APPROVED')", "N = list(map(int, input().split()))\nA = list(map(int, input().split()))\n\nisApprove = True\n\nfor x in A:\n if x % 2 == 0:\n if (x % 3 != 0) or (x % 5 != 0):\n isApprove = True\n print('DENIED')\n return \n\nprint ('APPROVED')", "N = list(map(int, input().split()))\nA = list(map(int, input().split()))\n\nisApprove = False\n\nfor x in A:\n if x % 2 == 0:\n if (x % 3 != 0) or (x % 5 != 0):\n isApprove = False\n break\n else:\n isApprove = True\n\nif isApprove:\n print ('APPROVED')\nelse:\n print('DENIED')\n", "import sys\n\nN = list(map(int, input().split()))\nA = list(map(int, input().split()))\n\nisApprove = True\n\nfor x in A:\n if x % 2 == 0:\n if (x % 3 != 0) or (x % 5 != 0):\n isApprove = True\n print('DENIED')\n sys.exit()\n\nprint ('APPROVED')", "N = list(map(int, input().split()))\nA = list(map(int, input().split()))\n\nisApprove = False\n\nfor x in A:\n if x % 2 == 0:\n if (x % 3 == 0) or (x % 5 == 0):\n isApprove = True\n else:\n isApprove = False\n break\n else:\n isApprove = False\n\nif isApprove:\n print ('APPROVED')\nelse:\n print('DENIED')\n", "import sys\n\nN = list(map(int, input().split()))\nprint(N)\nA = list(map(int, input().split()))\nprint(A)\n\nfor x in A:\n if (x % 2 == 0) and ((x % 3 != 0) and (x % 5 != 0)):\n print('DENIED')\n sys.exit()\n\nprint ('APPROVED')\n\n", "N = list(map(int, input().split()))\nA = list(map(int, input().split()))\n\nisApprove = True\n\nfor x in A:\n if x % 2 == 0:\n if (x % 3 != 0) or (x % 5 != 0):\n isApprove = False\n break\n \nif isApprove:\n print ('APPROVED')\nelse:\n print('DENIED')\n", "import sys\n\nN = list(map(int, input().split()))\nA = list(map(int, input().split()))\n\nfor x in A:\n if (x % 2 == 0) and (x % 3 != 0) and (x % 5 != 0):\n print('DENIED')\n sys.exit()\n\nprint ('APPROVED')\n"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s037713817', 's069244709', 's122365138', 's169193620', 's215800161', 's254175639', 's419602589', 's508998692', 's609369023', 's766775120'] | [3060.0, 3060.0, 3064.0, 3060.0, 3064.0, 3060.0, 2940.0, 3060.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 18.0, 18.0] | [235, 233, 232, 259, 311, 274, 355, 236, 283, 215] |
p02772 | u614215819 | 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\nA= [i for i in A if i%2==0]\nprint(A)\nif len( [j for j in A if not ((j%3==0)or(j%5==0))]) == 0:\n print("APPROVED")\nelse:\n print("DENIED")', 'N = int(input())\nA = list(map(int,input().split()))\n\nA= [i for i in A if i%2==0]\nif len( [j for j in A if not ((j%3==0)or(j%5==0))]) == 0:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Wrong Answer', 'Accepted'] | ['s076632680', 's371284643'] | [3060.0, 3060.0] | [20.0, 18.0] | [195, 186] |
p02772 | u620846115 | 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())\nx = list(map(int,input().split()))\nfor i in x:\n if i%2==0:\n if i%6!=0 or i%10!=0:\n print("DENIED")\n exit()\nprint("APPROVED")', 'n = int(input())\nx = list(map(int,input().split()))\nfor i in x:\n if i%2==0:\n if i%6!=0:\n if i%10!=0:\n print("DENIED")\n exit()\nprint("APPROVED")'] | ['Wrong Answer', 'Accepted'] | ['s788981128', 's473215525'] | [9168.0, 9124.0] | [30.0, 27.0] | [155, 166] |
p02772 | u624617831 | 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\n a = list(map(int, input().split()))\n\n for i in a:\n if i % 2 == 0:\n if i % 3 != 0 or i % 5 != 0:\n print('DENIED')\n \n else:\n print('APPROVED')\n\n\nif __name__ == '__main__':\n main()\n\n", "def main():\n n = int(input())\n\n a = list(map(int, input().split()))\n\n for i in a:\n if i % 2 == 0:\n if i % 3 != 0:\n if i % 5 != 0:\n print('DENIED')\n break\n \n else:\n print('APPROVED')\n\n\nif __name__ == '__main__':\n main()\n\n"] | ['Wrong Answer', 'Accepted'] | ['s123375727', 's446545415'] | [2940.0, 2940.0] | [18.0, 17.0] | [269, 316] |
p02772 | u625864724 | 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 = list(map(int,input().split()))\nc = 0\nfor i in range(n):\n if (lst[i]%2 == 0):\n if (lst[i]%3 == 0 or lst[i]%5 == 0):\n c = 1\nif (c == 0):\n print("APPROVED")\nelse:\n print("DENIED")\n', 'n = int(input())\nlst = list(map(int,input().split()))\nc = 0\nfor i in range(n):\n if (lst[i]%2 == 0):\n if (lst[i]%3 != 0 or lst[i]%5 != 0):\n c = 1\nif (c == 0):\n print("APPROVED")\nelse:\n print("DENIED")', 'n = int(input())\nlst = list(map(int,input().split()))\nc = 0\nfor i in range(n):\n if (lst[i]%2 == 0):\n if (lst[i]%3 != 0 and lst[i]%5 != 0):\n c = 1\nif (c == 0):\n print("APPROVED")\nelse:\n print("DENIED")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s621025543', 's665925866', 's066024812'] | [9044.0, 9040.0, 9080.0] | [27.0, 32.0, 29.0] | [211, 210, 212] |
p02772 | u626228246 | 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_count = 0\n\n\nfor i in range(len(A)):\n if A[i]%2 != 0:\n A.pop(A[i]) \n\nfor t in range(len(A)):\n if A[i]%3 == 0 or A[i]%5 == 0:\n A_count +=1\nprint("APPROVED" if A_count == len(A) else "DENIED")\n\n ', 'N = int(input())\nA = list(map(int,input().split()))\n\n\nfor i in range(len(A)):\n\tif A[i]%2 != 0:\n\t\tA[i] = 0\n\nfor t in range(len(A)):\n\tif A[t] > 0:\n\t\tif A[t]%3 == 0 or A[t]%5 == 0:\n\t\t\tA[t] = 0\nprint("APPROVED" if sum(A) == 0 else "DENIED")\n\n'] | ['Runtime Error', 'Accepted'] | ['s974392829', 's818812031'] | [3060.0, 3060.0] | [18.0, 19.0] | [316, 298] |
p02772 | u629350026 | 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(input()) for i in range(n)]\ncount=0\nfor i in range(0,n):\n if a[i]%2==0:\n if a[i]%3==0 or a[i]%5==0:\n count=count+1\n else:\n count=count+1\nif count==n\n print("APPROVED")\nelse:\n print("DENIED")', 'n=int(input())\na=[int(input()) for i in range(n)]\ncount=0\nfor i in range(0,n):\n if a[i]%2==0:\n if a[i]%3==0 or a[i]%5==0:\n count=count+1\n else:\n count=count+1\nif count==n:\n print("APPROVED")\nelse:\n print("DENIED")', 'n=int(input())\na=list(map(int,input().split()))\ncount=0\nfor i in range(0,n):\n if a[i]%2==0:\n if a[i]%3==0 or a[i]%5==0:\n count=count+1\n else:\n count=count+1\nif count==n:\n print("APPROVED")\nelse:\n print("DENIED")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s059162498', 's932480432', 's167169110'] | [2940.0, 3060.0, 3060.0] | [17.0, 19.0, 18.0] | [227, 228, 226] |
p02772 | u630211216 | 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`. | ['#include <bits/stdc++.h>\nusing namespace std;\n\nint main(){\n cout<<"Hello"<<endl;\n}', 'N=int(input())\nA=list(map(int,input().split()))\n\nflag=True\nfor a in A:\n if a%2==0:\n if (a%3!=0)&(a%5!=0):\n flag=False\n break\n\nif flag:\n print("APPROVED")\nelse:\n print("DENIED")\n'] | ['Runtime Error', 'Accepted'] | ['s591061772', 's836295731'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 215] |
p02772 | u630554891 | 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()))\ntmp = 0\n\nfor i in range(n):\n if a[i] % 2 == 0 and (a[i] % 3 != 0 and a[i] % 5 != 0):\n print('DENIED')\n tmp = 1\n break\n\nif tmp == 0:\n rint('APPROVED')", "n=int(input())\na=list(map(int, input().split()))\ntmp = 0\n\nfor i in range(n):\n if a[i] % 2 == 0 and (a[i] % 3 != 0 and a[i] % 5 != 0):\n print('DENIED')\n tmp = 1\n break\n\nif tmp == 0:\n print('APPROVED')"] | ['Runtime Error', 'Accepted'] | ['s355812750', 's165254524'] | [3060.0, 3060.0] | [17.0, 17.0] | [225, 226] |
p02772 | u631579948 | 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())\nM=list(map(int,input().split()))\nS=[]\nT=[]\nfor i in range(0,len(M)-1) \n if M[i]%2==0:\n T.append(M[i])\n S.append(M[i])\nfor j in range(0,len(S)-1)\n if S[j]%3!=0 and S[j]%5!=0:\n T.remove(S[j])\nif len(S)==len(T):\n print('APPROVED')\nelse:\n pritn('DENIED')\n ", "N=int(input())\nans=0\nm=0\nfor i in range(N):\n A=int(input())\n if A%2==0:\n m=m+1\n if A%3==0 or A%5==0:\n \u3000\u3000ans=ans+1\nif m==N:\n print('APPROVED')\nelse:\n print('DENIED')", "N=int(input())\nans=0\nm=0\nfor i in range(N):\n A=int(input())\n if A%2==0:\n m=m+1\n if A%3==0 or A%5==0:\n ans=ans+1\nif m==ans:\n print('APPROVED')\nelse:\n print('DENIED')\n", "N=int(input())\nM=list(map(int,input().split()))\nS=[]\nT=[]\nfor i in range(0,len(M)) :\n if M[i]%2==0:\n T.append(M[i])\n S.append(M[i])\nfor j in range(0,len(S)):\n if S[j]%3!=0 and S[j]%5!=0:\n T.remove(S[j])\n \nif len(S)==len(T):\n print('APPROVED')\nelse:\n print('DENIED')\n \n\n \n \n\n \n\n \n\n \n \n\n \n\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s458702841', 's688751645', 's882930970', 's433764023'] | [2940.0, 2940.0, 2940.0, 3064.0] | [18.0, 18.0, 17.0, 17.0] | [284, 181, 202, 323] |
p02772 | u632757234 | 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 x in A:\n if x%2==0&(x%3!=0 and x%5!=0):\n print('DENIED')\n exit()\nprint('APPROVED')\n\n \n\n", "N = input()\nA = map(int, input().split())\n\nfor x in A:\n if x%2==0:\n if x%3!=0 and x%5!=0:\n print('DENIED')\n exit()\nprint('APPROVED')\n"] | ['Wrong Answer', 'Accepted'] | ['s407694137', 's412902268'] | [2940.0, 2940.0] | [18.0, 17.0] | [152, 155] |
p02772 | u634046173 | 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()))\nr = 'APPROVED'\nfor i in range(N):\n if a[i] % 2 ==0:\n if a[i] % 3 != 0 and a[i] % 5 != 0:\n r = 'DENIED'\n break\nprint(r)", "N = int(input())\na = list(map(int, input().split()))\nr = 'APPROVED'\nfor i in range(N):\n if a[i] % 2 ==0:\n if a[i] % 3 != 0 and a[i] % 5 != 0:\n r = 'DENIED'\n break\nprint(r)"] | ['Runtime Error', 'Accepted'] | ['s657792800', 's023589655'] | [2940.0, 2940.0] | [17.0, 18.0] | [177, 185] |
p02772 | u639343026 | 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`. | ['_=int(input())\na=list(map(int,input().split()))\nbool=True\nfor i in a:\n if i%2==0:\n if i%3==0 or i%5==0:\n bool=False\nif bool:\n print("APPROVED")\nelse:\n print("DENIED")', '_=int(input())\na=list(map(int,input().split()))\nbool=True\nfor i in a:\n if i%2==0:\n if i%3==0 or i%5==0:\n pass\n else:\n bool=False\nif bool:\n print("APPROVED")\nelse:\n print("DENIED")\n'] | ['Wrong Answer', 'Accepted'] | ['s091389806', 's216407402'] | [2940.0, 2940.0] | [17.0, 17.0] | [177, 225] |
p02772 | u642418876 | 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()))\nl=0\nfor i in range(n):\n if a[i]%2==0:\n l.append(a[i])\nfor j in range(len(l)):\n if l[j]%3==0 or l[j]%5==0:\n l.remove(l[j])\nif len(l)==0:\n print('APPROVED')\nelse:\n print('DENIED')\n \n ", "n=int(input())\na=list(map(int,input().split()))\ncount=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 count+=1\nif count==0:\n print('APPROVED')\nelse:\n print('DENIED')\n "] | ['Runtime Error', 'Accepted'] | ['s441650520', 's817249580'] | [3060.0, 2940.0] | [17.0, 17.0] | [241, 217] |
p02772 | u642909262 | 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, B, C = map(int, input().split())\nif (A == B or A == C) and (B != C):\n print(\'Yes\')\nelif (B == A or B == C) and (A != C):\n print(\'Yes\')\nelif (C == A or C == B) and (A != B):\n print(\'Yes\')\nelse:\n print(\'No\')\n\nn = int(input())\nflag = 0\nlst = [int(i) for i in input().split()][:n]\nfor i in lst:\n if i % 2 == 0 and i % 3 != 0 and i % 5 != 0:\n flag = 1\n else:\n continue\nif flag == 1:\n print("DENIED")\nelse:\n print("APPROVED")\n', 'a,b,c = map(int, input().split())\nif (a==b or a==c) and (b!=c):\n print(\'Yes\')\nelif (b==a or b==c) and (a!=c):\n print(\'Yes\')\nelif (c==a or c==b) and (a!=b):\n print(\'Yes\')\nelse:\n print(\'No\')\n\n\n\nn = int(input())\nflag=0\nlst = [int(i) for i in input().split()][:n]\nfor i in lst:\n if i%2==0 and i%3!=0 and i%5!=0:\n flag=1 \n else:\n continue\nif flag==1:\n print("DENIED")\nelse:\n print("APPROVED")', 'a,b,c = map(int, input().split())\nif (a==b or a==c) and (b!=c):\n print(\'Yes\')\nelif (b==a or b==c) and (a!=c):\n print(\'Yes\')\nelif (c==a or c==b) and (a!=b):\n print(\'Yes\')\nelse:\n print(\'No\')\n\n\n\nn = int(input())\nflag=0\nlst = [int(i) for i in input().split()][:n]\nfor i in lst:\n if i%2==0 and i%3!=0 and i%5!=0:\n flag=1 \n else:\n continue\nif flag==1:\n print("DENIED")\nelse:\n print("APPROVED")', 'n = int(input())\nflag = 0\nlst = [int(i) for i in input().split()][:n]\nfor i in lst:\n if i % 2 == 0 and i % 3 != 0 and i % 5 != 0:\n flag = 1\n else:\n continue\nif flag == 1:\n print("DENIED")\nelse:\n print("APPROVED")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s040535124', 's076939637', 's794621312', 's065162428'] | [3188.0, 3064.0, 3064.0, 2940.0] | [18.0, 17.0, 18.0, 18.0] | [461, 425, 425, 238] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.