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
u177138269
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...
['A=input().split()\n\nx = []\nprint(x[1])\nprint(A)\ntarget ="DENIED"\nfor i in x:\n if x.index[i]%2 == 0:\n if x.index[i]%3 == 0 or x.index[i]%5 == 0:\n target = "APPROVED"\n break\nprint(target)\n', 'A=input().split()\nx = input().split()\ntarget ="APPROVED"\nfor i in x:\n if int(i)%2 == 0:\n if in...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s139954875', 's645748086', 's902903189']
[2940.0, 3060.0, 2940.0]
[17.0, 19.0, 17.0]
[245, 176, 177]
p02772
u182178426
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...
["n = int(input())\na = list(map(int,input().split()))\n\nfor i in range(n):\n if a[i]%5!=0 and a[i]%3!=0:\n print('DENIED')\n break\nelse:\n print('APPROVED')", "n = int(input())\na = list(map(int,input().split()))\n\nfor i in range(n):\n if a[i]%2==0:\n if a[i]%5!=0 and a[i]%3!=0:\n ...
['Wrong Answer', 'Accepted']
['s510310909', 's956805261']
[9160.0, 9164.0]
[27.0, 25.0]
[169, 204]
p02772
u185405877
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...
['n=int(input())\nl = list(map(int, input().split())\ni= [k for k in l if l[k]%2==0 or l[k]%5==0] \nj = [k for k in i if i[k]%3==0 or i[k]%5==0] \nif len[i]==len[j]:\n print("APPROVED")\nelse:\n print("DENIED")', 'n=int(input())\nl = list(map(int, input().split()))\ncount=0\nkount=0\nfor i in r...
['Runtime Error', 'Accepted']
['s495676663', 's762903502']
[2940.0, 3060.0]
[18.0, 17.0]
[226, 283]
p02772
u187995923
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...
['n = int(input())\na = [int(e) for e in input().split()]\nflag = True\nfor i in range(0,n):\n if a[i] % 2 == 0 and (a[i] % 3 != 0 and a[i] % 5 != 0):\n flag = False\nif flag:\n print("APPROVE")\nelse:\n print("DENIED")', 'n = int(input())\na = [int(e) for e in input().split()]\nflag = True\nfor i in ra...
['Wrong Answer', 'Accepted']
['s624833788', 's141209409']
[3060.0, 3060.0]
[40.0, 17.0]
[224, 235]
p02772
u188827677
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...
["import sys\nN = int(input())\np = 'DENIED'\n\nfor i in map(int, input().split()):\n print(i)\n if i % 2 == 0:\n if i % 3 != 0 and i % 5 != 0:\n print('DENIED')\n sys.exit()\n elif i % 3 == 0 or i % 5 == 0:\n p = 'APPROVED'\nprint(p)", 'n = int(input())\na = list(map(int, input().split()))\n\nfo...
['Wrong Answer', 'Accepted']
['s286770740', 's153348621']
[3060.0, 2940.0]
[17.0, 18.0]
[243, 174]
p02772
u189487046
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...
['n = int(input())\nal = list(map(int, input().split()))\n\nans = "APPROVE"\nfor a in al:\n if a % 2 == 0:\n if a % 3 != 0 and a % 5 != 0:\n ans = "DENIED"\n\nprint(ans)\n', 'n = int(input())\nal = list(map(int, input().split()))\n\nans = "APPROVED"\nfor a in al:\n if a % 2 == 0:\n if a %...
['Wrong Answer', 'Accepted']
['s935981262', 's558537712']
[2940.0, 2940.0]
[17.0, 20.0]
[180, 199]
p02772
u194228880
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...
["line1 = input('')\nline2 = input('') \nresult = True\ncnt = int(line1)\nlist = line2.split(' ')\nif len(list) != cnt:\n result = False\nif result:\n for no_str in list:\n no = int(no_str)\n if no % 2 == 0:\n print(no)\n if no % 3 != 0 and no % 5 != 0:\n print(no)\n result = False\n\nif...
['Wrong Answer', 'Accepted']
['s412322961', 's838633611']
[3060.0, 3060.0]
[17.0, 17.0]
[357, 323]
p02772
u196291054
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...
['n = int(input())\na = list(map(int, input().split()))\nfor i in a:\n if i%2 == 0:\n if not i%3==0 or not i%5==0:\n print("DENIED")\n exit()\nprint("APPROVED")', 'n = int(input())\na = list(map(int, input().split()))\nfor i in a:\n if i%2 == 0:\n if not (i%3==0 or i%5==0):\n ...
['Wrong Answer', 'Accepted']
['s351466724', 's292498211']
[8992.0, 9132.0]
[26.0, 28.0]
[183, 181]
p02772
u201082459
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...
["n = int(input())\nl = list(int(x) for x in input().split())\na = []\nfor i in l:\n if i % 2 == 0:\n a.append(i)\nx = [i % 3 == 0 or i % 5 == 0 for i in a]\nprint(x,a,l)\nif len(a) == sum(x):\n print('APPROVED')\nelif len(a) == 0:\n print('DENIED')\nelse:\n print('DENIED')", "n = int(input())\nl = l...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s231826068', 's424291701', 's440073599', 's655595727']
[3064.0, 3064.0, 3060.0, 3064.0]
[20.0, 18.0, 17.0, 17.0]
[278, 268, 259, 266]
p02772
u201387466
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...
['N = int(input())\nA = list(map(int,input().split()))\nc = 0\nfor i in range(N):\n if A[i] % 2 == 0:\n if A[i] %3 != 0 :\n if A[i] %5 != 0:\n c = 1\n break\nif c == 0:\n print(APPROVED)\nelse:\n print(DENIED)\n \n \n\n', 'N = int(input())\nA = list...
['Runtime Error', 'Accepted']
['s815488110', 's551722004']
[3060.0, 2940.0]
[17.0, 17.0]
[272, 276]
p02772
u201928947
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...
['n = int(input())\na = list(map(int,input().split()))\nfor i in range(n):\n if a[i] % 2 == 0 and a[i] % 3 != 0 and [i] % 5 != 0:\n print("DENIED")\n exit()\nprint("APPROVED")', "n = int(input())\na = list(map(int,input().split()))\nfor i in range(n):\n if a[i] % 2 == 0:\n if a[i] % 3 != 0 and a[i] % 5 != 0:...
['Runtime Error', 'Accepted']
['s394487326', 's780340162']
[3060.0, 3060.0]
[18.0, 17.0]
[174, 190]
p02772
u204208382
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...
['n = int(input())\ninfo = list(map(int, input().split()))\n\nfor i in n:\n if i % 2 == 0:\n if i % 3 == 0 or i % 5 == 0:\n if i == n:\n print("APPROVED")\n else:\n continue\n else:\n print("DENIED")\n break', 'n = int(input())\n...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s217639320', 's491225262', 's738844953', 's013611048']
[2940.0, 3060.0, 3060.0, 2940.0]
[17.0, 17.0, 18.0, 17.0]
[284, 256, 311, 316]
p02772
u204260373
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...
["n=int(input())\n\nprint('DENIED' if any([x%2==0 and (x%3 and x%5) for x in map(int,input().split())]) else 'APPLOVED')", "N=int(input())\nprint('DENIED' if any([x%2==0 and (x%3 and x%5) for x in map(int,input().split())]) else 'APPROVED')\n"]
['Wrong Answer', 'Accepted']
['s134564672', 's900361804']
[2940.0, 2940.0]
[18.0, 18.0]
[116, 116]
p02772
u205087376
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...
["n = int(input())\na = [map(int,input().split()) for i in range(n)]\nb = [i for i in a if i%2==0]\nc = [i for i in b if i%3!=0]\nd = [i for i in c if i%5!=0]\nif len(d)==0:\n print('APPROVED')\nelse:\n print('DENIED')", "n = int(input())\na = list(map(int(input().split()) for i in range(n))\na1 = [i for i in a if i%...
['Runtime Error', 'Runtime Error', 'Accepted']
['s594895862', 's694264010', 's814287850']
[3060.0, 2940.0, 3064.0]
[18.0, 17.0, 18.0]
[210, 220, 253]
p02772
u207082620
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...
['print("APPROVED" if all([n%3==0 or n%5==0 for n in map(int,input(int(input())).split()) if not n%2]) else "DENIED") ', 'input();print("APPROVED" if all([n%3==0 or n%5==0 for n in map(int,input().split()) if not n%2]) else "DENIED") ']
['Wrong Answer', 'Accepted']
['s298965500', 's127750048']
[2940.0, 2940.0]
[17.0, 18.0]
[116, 112]
p02772
u207799478
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...
['import math\n\n\ndef readints():\n return list(map(int, input().split()))\n\n\nn = int(input())\na = readints()\n\nfor j in range(n):\n if a[j] % 2 != 0:\n exit()\n\nfor i in range(n):\n if a[i] % 2 == 0:\n # print(a[i])\n if a[i] % 3 == 0 or a[i] % 5 == 0:\n print("APPROVED")...
['Wrong Answer', 'Accepted']
['s527093456', 's955991423']
[2940.0, 3060.0]
[17.0, 19.0]
[381, 296]
p02772
u215461917
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...
['n = int(input())\narr = [int(i) for i in input().split()]\n\nfor d in arr :\n \n if d % 2 == 0 :\n \n if d % 3 == 0 :\n\n pass\n \n elif d % 5 = 0 : \n pass\n \n else :\n\n print("DENIED")\n exit()\n \nprint("APPROVED")', 'n = int(input())\narr = [int(i) for i in input().s...
['Runtime Error', 'Accepted']
['s184833054', 's629750004']
[2940.0, 3064.0]
[17.0, 17.0]
[245, 220]
p02772
u218216885
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...
['n = int(input())\na = [int(i) for i in input().split()]\nflag = True\nfor i in a:\n if i%3 != 0 and i%5 != 0:\n flag = False\n\nprint("APPROVED" if flag else "DENIED")', 'n = int(input())\na = [int(i) for i in input().split()]\nflag = True\nfor i in a:\n if i%3 != 0 and i%5 != 0 and i%2 == 0:\n fl...
['Wrong Answer', 'Accepted']
['s321011064', 's011435889']
[3060.0, 2940.0]
[19.0, 17.0]
[170, 183]
p02772
u220231854
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...
['amount = int(input())\ninputl = input().split()\n\nflag = True\n\nfor i in range(0, amount-1):\n a = int(inputl[i])\n print(a)\n if a % 2 == 0:\n if a % 3 != 0 and a % 5 != 0:\n flag = False\n\nif flag:\n print("APPROVED")\nelse:\n print("DENIED")\n', 'amount = int(input())\ninputl = ...
['Wrong Answer', 'Accepted']
['s100384979', 's229576730']
[3060.0, 3064.0]
[17.0, 18.0]
[266, 248]
p02772
u223555291
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...
["a=int(input())\nc=0\nd=0\nb=list(map(int,input().split()))\nfor i in range(a):\n if b[i]%2==0:\n \n if b[i]%3==0 or b[i]%5==0:\n \n else:\n print('DENINED')\n else:\n pass\nprint('APPROVED')\n ", "n=int(input())\na=list(map(int,input().split()))\nimport sys\nfor i in range(n):\n if a[i]%...
['Runtime Error', 'Accepted']
['s869553578', 's991068363']
[2940.0, 3060.0]
[18.0, 17.0]
[206, 230]
p02772
u224522483
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...
['N = int(input())\narray = map(int, input().split())\nfor a in array:\n if a % 3 != 0 and a % 5 != 0:\n print("DENIED")\n break\nelse:\n print("APPROVED")', 'N = int(input())\narray = map(int, input().split())\nfor a in array:\n if a % 2 == 0:\n if a % 3 != 0 and a % 5 != 0:\n ...
['Wrong Answer', 'Accepted']
['s857170700', 's196831313']
[2940.0, 2940.0]
[18.0, 18.0]
[166, 197]
p02772
u226400521
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...
["input()\nA = 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 exit()\nprint('APPROVED')", "input()\nA = 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 exit()\nprint('APPR...
['Runtime Error', 'Accepted']
['s791544196', 's291440293']
[2940.0, 3064.0]
[18.0, 18.0]
[153, 153]
p02772
u227082700
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...
['n=int(input())\na=list(map(int,input().split()))\nans="APPROVED"\nfor i in a:\n if i%2==0:\n if i%3==0 or i%5==0:ans="DENIED"\nprint(ans)', 'n=int(input())\nans="APPROVED"\nfor i in list(map(int,input().split())):\n if a%2==0:\n if a%3!=0 and a%5!=0:ans="DENIED"\nprint(ans)', 'n=int(input())\nans="APPROVED"\n...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s467343295', 's728524590', 's241918472']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[135, 132, 133]
p02772
u227476288
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...
["import numpy as np\n \nstdin = open(0)\ndata = np.fromstring(stdin.read(), np.int32, sep=' ')\nN = data[0]\nA = data[1]\n\nflag = True\nfor a in A:\n if a%2 == 0:\n if a%3 != 0 or a%5 != 0:\n flag = False\n\nif flag:\n print('APPROVED')\nelse:\n print('DENIED') ", "import numpy as np\n\nN = int(input())\n...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s085935606', 's562192700', 's171765390']
[12424.0, 20644.0, 2940.0]
[151.0, 253.0, 17.0]
[258, 219, 201]
p02772
u231038326
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...
['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 print("APPROVED")\n else:\n print("DENIED")\n break\nelse:\n print("APPROVED")\n', 'n = int(input())\na = list(map(int,input().split()))\n\nfor i in a:\n if i % 2 ==0:...
['Wrong Answer', 'Accepted']
['s092777288', 's064421724']
[2940.0, 2940.0]
[17.0, 17.0]
[216, 207]
p02772
u231657083
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...
['input()\nA=list(map(int,input().split()))\nprint("APPROVED" if all(a%2==0 and (a%3==0 or a%5==0) for a in A) else "DENIED")\n', 'input()\nA=list(map(int,input().split()))\nprint("APPROVED" if all(a%2==0 or a%3==0 or a%5==0 for a in A) else "DENIED")', "N = int(input())\nA = list(map(int,input().split()))\nC1 = 0\nC2 ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s522348843', 's605102968', 's445963863']
[2940.0, 2940.0, 3060.0]
[17.0, 18.0, 17.0]
[122, 118, 247]
p02772
u232873434
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...
["import numpy as np\nN = input()\nlist = list(map(int,input().split(' ')))\n\nlist = np.array(list)\nA = list[list%2 == 0]\nB = np.unique(np.append(list[list%6 == 0],(list[list%10 == 0])))\nprint(A)\nprint(B)\n\nif (A == B).any() :\n print('APPROVED')\nelse:\n print('DENIED')\n", "import numpy as np\nN = input()...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s060237643', 's073700049', 's246961593', 's722682483', 's897242292', 's105440460']
[12504.0, 20876.0, 12484.0, 21388.0, 3060.0, 22292.0]
[151.0, 322.0, 149.0, 299.0, 19.0, 346.0]
[269, 204, 242, 199, 349, 364]
p02772
u235274878
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...
["#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nN=int(input())\ni = list(map(int, input().split()))\nc=0\n\nfor k in range(0,N):\n if i[k]%2==0:\n if (i[k]%3!=0) or (i[k]%5!=0):\n c=c+1\n\nif c==0:\n print('APPROVED')\nelse:\n print('DENIED')", "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nN=int(input()...
['Wrong Answer', 'Accepted']
['s926394161', 's271155166']
[3188.0, 3060.0]
[20.0, 17.0]
[239, 240]
p02772
u241544828
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...
['N = input()\nA = [int(x) for x in input().split()]\nx=0\nfor i in A:\n if A%2==0:\n if not A%3==0 or A%5==0:\n print("DENIED")\n x=1\n break\n \n else:\n \tcontinue\n break\nif x !=0:\n\tprint("APPROVED")\n ', 'N = int(input())\nA = [int(x) for x in input().split()]\n\nx=0\nfor i in A:\n p...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s008403582', 's188092037', 's562498089']
[2940.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0]
[217, 261, 252]
p02772
u243061947
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...
["def ApproveOrDeny(number_list):\n for num in number_list:\n if num % 2 == 0:\n if num % 3 != 0:\n return 'DENIED'\n if num % 5 != 0:\n return 'DENIED'\n return 'APPROVED'\n\nN = int(input())\nnumber_list = list(map(int, input().split()))\nprint (ApproveOrDeny(number_list))", "def ApproveO...
['Wrong Answer', 'Accepted']
['s625608309', 's997213239']
[2940.0, 2940.0]
[17.0, 17.0]
[291, 262]
p02772
u243572357
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...
["a = [ int(input()) for i in range(int(input()))]\nflag = True\nfor i in a:\n if i % 2 == 0:\n if i%3 != 0 and i%5 != 0:\n flag = False\n break\nprint('APPROVED' if flag else 'DENIED')", "input()\na = list(map(int, input().split()))\nflag = True\nfor i in a:\n if i % 2 == 0:\n if i%3 != 0 and i%5 != ...
['Runtime Error', 'Accepted']
['s373647661', 's414163785']
[3572.0, 3060.0]
[23.0, 17.0]
[190, 185]
p02772
u244656600
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...
['n = input()\nlist = input().split(" ")\nfor number in list:\n int_number = int(number)\n if (int_number % 2) == 0:\n if int_number %3 != 0:\n if int_number %5 != 0:\n \tprint("DENIED")\n \texit()\nprint("ACCEPTED")\n', 'n = input()\nlist = input().split(" ")\nfor number in list:\n int_number = in...
['Wrong Answer', 'Accepted']
['s161278853', 's530120386']
[2940.0, 2940.0]
[17.0, 17.0]
[224, 224]
p02772
u244836567
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...
['a=int(input())\nb=list(map(int,input().split()))\nc=0\nfor i in range(a):\n if b[i]%2==0:\n if b[i]%3==0 or b[i]%5==0:\n c=c+1\nif c==a:\n print("APPROVED")\nelse:\n print("DENIED")', 'a=int(input())\nb=list(map(int,input().split()))\nc=0\nfor i in range(a):\n if b[i]%2==0:\n if b[i]%3==0 or b[i]%5==0:...
['Wrong Answer', 'Accepted']
['s655053794', 's282194933']
[9016.0, 9092.0]
[28.0, 28.0]
[182, 200]
p02772
u247114740
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...
["N = int(input())\nnum_list = list(map(int, input().split()))\n \na=0\nfor i in num_list:\n if i%2==0 and (i%3!=0 and i%5!=0):\n \tprint('DENIED')\n exit()\n \nprint('APPROVED')", "N = int(input())\nnum_list = list(map(int, input().split()))\n \na=0\nfor i in num_list:\n if i%2==0 and (i%3!=0 and i%5!=0):\n \tp...
['Runtime Error', 'Runtime Error', 'Accepted']
['s506573397', 's543121733', 's696068478']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[171, 169, 249]
p02772
u252828980
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...
['n = int(input())\nL = list(map(int,input().split()))\n\nfor i in range(n):\n if L[i]%2 == 0:\n if L[i]%3 == 0 or L[i]%5== 0:\n continue\n else:\n print("DENIED")\n exit()\n\nprint("APPROVRD")', 'n = int(input())\nL = list(map(int,input().split()))\n\nfor i in range(n)...
['Wrong Answer', 'Accepted']
['s375402974', 's852997769']
[3060.0, 3060.0]
[17.0, 17.0]
[230, 230]
p02772
u252964975
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...
['N=int(input())\nAs=list(map(int, input().split()))\nrejected=false\nfor A in As:\n if A%2==0:\n if A%3*(A%5)!=0:\n rejected=true\nif rejected:\n print("DENIED")\nelse:\n print("APPROVED")', 'N=int(input())\nAs=list(map(int, input().split()))\nrejected=False\nfor A in As:\n if A%2==0:\n if A%3*(A%5)!=0:...
['Runtime Error', 'Accepted']
['s235597781', 's339690511']
[3060.0, 3064.0]
[18.0, 17.0]
[188, 188]
p02772
u256247307
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...
['n = int(input())\nA = []\nfor i in range(0, n) :\n\ttemp = int(input())\n\tA.append(temp)\nflag = True\nfor i in range(0, n) :\n\tif A[i] % 2 != 0 :\n\t\tcontinue\n\telif A[i] % 2 == 0 and (A[i]%3 == 0 or A[i]%5 == 0) :\n\t\tcontinue\n\telse :\n\t\tflag = False\n\t\tbreak\nif flag :\n\tprint ("APPROVED")\nelse :\n\tp...
['Runtime Error', 'Accepted']
['s704221427', 's481086586']
[3064.0, 3060.0]
[17.0, 17.0]
[301, 272]
p02772
u256363575
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...
['from fractions import gcd\nA,B,C,D = map(int, input().split())\nX = B//C - (A-1)//C\nY = B//D - (A-1)//D\nlcm = round(C*D//gcd(C,D))\nZ = B//lcm - (A-1)//lcm\nprint(B-A+1-X-Y+Z)', 'N=int(input())\nA = list(map(int, input().split()))\noutflag = 0\nfor i in range(N):\n if A[i]%2==0:\n if A[i]%3==0 or A[i]%5==...
['Runtime Error', 'Accepted']
['s187984671', 's379748961']
[5304.0, 3064.0]
[38.0, 19.0]
[171, 271]
p02772
u267035391
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...
['N = int(input())\nA = [int(s) for s in input().rstrip().split(\' \')]\nk = 1\nfor i in range(N):\n if A[i] % 2 == 0:\n if A[i] % 3 != 0 or A[i] % 5 != 0:\n k = 0\nif k == 1:\n print("APPROVED")\nelif k == 0:\n print("DENIED")', 'N = int(input())\nA = [int(s) for s in input().rstrip().split(\' \')]\nk = 1\n...
['Wrong Answer', 'Accepted']
['s354497085', 's388634888']
[3060.0, 3060.0]
[17.0, 18.0]
[224, 225]
p02772
u272279638
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...
["N=int(input())\nli=map(int,input().split())\na=0\nfor k in li:\n if k %2==0:\n if k%3==0 or k%5==0:\n continue\n else:\n print('DENIED')\n a=1\n break\nif a==0:\n print('APPROVE')\n\n", "N=int(input())\nli=map(int,input().split())\nfor k in li:\n if k %2=0:\n if k%3=0 or k%5=0:\n ...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s748811564', 's957418223', 's125729782']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[197, 191, 198]
p02772
u273010357
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...
["N = int(input())\nA = list(map(int, input().split()))\nfl = True\nfor i in A:\n if i&1:\n continue\n else:\n if i%3!=0 or i%5!=0:\n fl = False\n break\n\nprint('APPROVED') if fl else print('DENIED')", "N = int(input())\nA = list(map(int, input().split()))\n\nif all(a%3==0 or ...
['Wrong Answer', 'Accepted']
['s898612235', 's498372415']
[3060.0, 2940.0]
[18.0, 17.0]
[229, 148]
p02772
u275145490
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...
["read = lambda: map(int, input().split())\nn = int(input())\na = list(read())\nprint('APPROVED' if sum(i%3 and i%5 for i in a) ==0 else 'DENIED')", "read = lambda: map(int, input().split())\nn = int(input())\na = list(read())\nprint('APPROVED' if sum(i%3 and i%5 for i in a if i%2==0) ==0 else 'DENIED')\n"]
['Wrong Answer', 'Accepted']
['s591759096', 's131206716']
[2940.0, 2940.0]
[18.0, 17.0]
[141, 152]
p02772
u278057806
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...
['N = int(input())\nA = list(map(int, input().split()))\n\ns = "APPRPVED"\n\nfor i in A:\n if i % 2 == 0:\n if i % 3 != 0 and i % 5 != 0:\n s = "DENIED"\n\nprint(s)\n', 'N = int(input())\nA = list(map(int, input().split()))\n\ns = "APPROVED"\n\nfor i in A:\n if i % 2 == 0:\n if i % 3 != 0...
['Wrong Answer', 'Accepted']
['s762002178', 's866725805']
[2940.0, 2940.0]
[19.0, 18.0]
[174, 174]
p02772
u278761160
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...
['N = int(input())\nA = list(map(int, input().split()))\n\nresult = "APPROVED"\n\nfor i in range(N):\n if (A[i] % 2 == 1) or ((A[i] % 2 == 0) and (A[i] % 3 == 0 or A[i] % 5 == 0)):\n else:\n result ="DENIED"\n break\n\n\nprint(result)', 'N = int(input())\nA = list(map(int, input().split()))\n\nresul...
['Runtime Error', 'Accepted']
['s436198855', 's408620110']
[2940.0, 3060.0]
[17.0, 17.0]
[260, 257]
p02772
u279266699
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...
["def main():\n n = int(input())\n A = list(map(int, input().split()))\n\n for a in A:\n if a % 2 == 0:\n if not a % 3 == 0 or a % 5 == 0:\n print('DENIED')\n return\n print('APPROVED')\n\n\nif __name__ == '__main__':\n main()\n", "def main():\n n = int(...
['Wrong Answer', 'Accepted']
['s563936459', 's105334920']
[9140.0, 9080.0]
[25.0, 26.0]
[275, 277]
p02772
u281796054
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...
['n = int(input())\nList = list(map(int,input().split()))\nk=0\nfor s in List:\n if s%2==1 or s%3==0 or s%5==0:\n k+=1\nif k==n:\n print("APPPROVED")\nelse:\n print("DENIED")', 'n = input()\nList = list(map(int,input().split()))\nk=0\nfor s in List:\n if s%2==1 or s%3==0 or s%5==0:\n k+=1\nif k==n:\n print("...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s224134391', 's986789132', 's281703805']
[3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[169, 164, 152]
p02772
u283853418
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...
['N = input()\nN = int(N)\nA = list(map(int,input().split()))\nB = [ i for i in A if i % 2 == 0 or ]\nC = [ d for d in B if i % 3 == 0 or i % 5 == 0]\nR = len(C)\nif R == 0:\n print("APPROVED")\nelse:\n print("DENIED")', 'N = input()\nN = int(N)\nA = list(map(int,input().split()))\nB = [ i for i in A if i % 2 ==0]\nC...
['Runtime Error', 'Accepted']
['s586288266', 's076560346']
[2940.0, 3060.0]
[17.0, 24.0]
[209, 221]
p02772
u284363684
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...
['# input\nN = int(input())\nA = list(map(int, input().split()))\n\n\napp_fl = True\nfor Ai in A:\n if Ai % 3 != 0 or Ai % 5 != 0:\n app_fl = False\n break\n\nif app_fl is True:\n print("APPROVED")\nelse:\n print("DENIED")', '# input\nN = int(input())\nA = list(map(int, input().split()))\n\n\napp...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s071749873', 's870174137', 's879404953']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[236, 254, 264]
p02772
u284744415
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...
['print("APPROVED" if int(input()) == xsum([1 for e in [int(a) for a in input().split(" ")] if not(e % 2 == 0 and e % 3 != 0 and e % 5 != 0)]) else "DENIED")', 'print("APPROVED"if int(input())==sum([1 for e in[int(a)for a in input().split(" ")]if not(e%2==0 and e%3!=0 and e%5!=0)])else"DENIED")']
['Runtime Error', 'Accepted']
['s281371443', 's113363428']
[2940.0, 2940.0]
[17.0, 17.0]
[155, 134]
p02772
u288001809
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...
['cnt = int(input())\ntar_list = list(map(int, input().split()))\nflg = False\nfor i in range(cnt):\n\n if tar_list[i] % 2 == 0:\n if tar_list[i] % 3 == 0 or if tar_list[i] % 5 == 0:\n else:\n flg = True\n print("DENIED")\n break\n \nif flg == False:\n print("APPROVED")', 'cnt = int(input())...
['Runtime Error', 'Accepted']
['s786693852', 's645866513']
[2940.0, 3060.0]
[17.0, 17.0]
[283, 298]
p02772
u290754584
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...
['# -*- coding: utf-8 -*-\nN = int(input())\nA = map(int, input().split())\n\nsuccess =\nfor a in A:\n if a % 2 == 0 and (a % 3 == 0 or a % 5 ==0):\n print("DENIED")\n\nprint("APPROVED")', '# -*- coding: utf-8 -*-\nN = int(input())\nA = map(int, input().split())\n\nfor a in A:\n if a % 2 == 0:\n if...
['Runtime Error', 'Accepted']
['s678889664', 's919464161']
[8952.0, 9052.0]
[24.0, 31.0]
[186, 218]
p02772
u295361373
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...
['\'\'\'\n Auther: ghoshashis545 Ashis Ghosh\n College: jalpaiguri Govt Enggineerin College\n Date:24/03/2020\n\'\'\'\n\ndef main():\n \n # for _ in range(ii()):\n n=int(input())\n a=list(map(int,input().split()))\n f=0\n for i in a:\n if(i%2==0);\n if(i%3!=0 or i%5!=0):\n ...
['Runtime Error', 'Accepted']
['s163136362', 's610439375']
[2940.0, 3064.0]
[17.0, 18.0]
[479, 480]
p02772
u295792161
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...
["num=int(input())\nyouso_list=input().split(' ')\nboolean=True\n\nfor youso in youso_list:\n magic_num=0\n youso=int(youso)\n if youso%2!=0:\n continue\n \n if youso%3!=0:\n magic_num+=1\n \n if youso%5!=0:\n magic_num+=1\n \n if magic_num==2:\n boolean==False...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s353712493', 's617145991', 's355203406']
[3064.0, 3060.0, 3064.0]
[19.0, 18.0, 17.0]
[415, 419, 431]
p02772
u297103202
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...
['N = int(input())\nA = list(map(int,input().split()))\n\nA_even =list()\n\nfor i in range(len(A)):\n if A[i] % 2 == 0:\n A_even.append(A[i])\n\nmiss = True\n\n\nfor i in range(len(A_even)):\n if A_even[i]%3 == 0 or A_even[i]%5 == 0:\n pass\n else:\n miss = False\n break\nif miss:\n...
['Wrong Answer', 'Accepted']
['s214802616', 's521256842']
[3064.0, 3060.0]
[17.0, 17.0]
[347, 347]
p02772
u301257907
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...
['inputs = map(int, input().split(" "))\n\nis_denied = False\nfor i in inputs:\n if i % 2 ==0:\n if i % 3 != 3 or i % 5 != 5\n \tis_denied = True\n \nif is_denied:\n print("DENIED")\nelse:\n print("APPROVED")', 'inputs = map(int, input.split(" "))\n\nis_denied = False\n\nfor i in inputs:\n if i % 2 ==0:\...
['Runtime Error', 'Runtime Error', 'Accepted']
['s539182415', 's761461185', 's328557414']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[208, 210, 221]
p02772
u302084097
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...
["N=int(input())\nA=list(map(int,input().split()))\nB=[]\nfor i in range (N):\n if A[i]%2==0:\n B.append(A[i])\n\nx=len(B)\nhantei=0\nfor i in range(x):\n if B[i]%3==0:\n hantei=hantei+1\n elif B[i]%5==0:\n hantei=hantei+1\n else:\n pass\n\nif hantei>=2:\n print('APPROVED')\ne...
['Wrong Answer', 'Accepted']
['s228302877', 's315855549']
[3064.0, 3188.0]
[17.0, 20.0]
[339, 323]
p02772
u303739137
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...
['n = int(input())\nnums = [int(i) for i in input().split(" ")]\n\napproved = True\nfor num in nums:\n if num%2 == 0:\n approved = (num%3 == 0) & (num%5 == 0)\nif approved:\n print(\'APPROVED\')\nelse:\n print(\'DENIED\')\n ', 'n = int(input())\nnums = [int(i) for i in input().split(" ")]\n\napproved = True\nfor...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s680872689', 's846612198', 's952667562']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[214, 214, 228]
p02772
u309120194
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...
["N = int(input())\nA = list(map(int, input().split()))\n\nans = 'APPROVED'\nfor i in range(N):\n if N[i] % 2 == 0:\n if N[i] % 3 != 0 or N[i] % 5 != 0:\n ans = 'DENIED'\n break\n \nprint(ans)", "N = int(input())\nA = list(map(int, input().split()))\n\nans = 'APPROVED'\nfor i in range(N):\n if A[i] ...
['Runtime Error', 'Accepted']
['s848902677', 's609472976']
[9172.0, 9176.0]
[23.0, 29.0]
[199, 192]
p02772
u309423187
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...
["n = int(input())\na = list(map(int, input().split()))\n\nfor i in range(n):\n if a[i] % 2 == 0:\n if a[i] != 0 or a[i] != 0:\n print('DENIED')\n break\n\nelse:\n print('APROVED')\n", "n = int(input())\na = list(map(int, input().split()))\n\nfor i in range(n):\n if a[i] % 2 == 0:\...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s379294808', 's630492678', 's946156656', 's622252438']
[3064.0, 3060.0, 3064.0, 2940.0]
[18.0, 17.0, 17.0, 18.0]
[204, 204, 162, 239]
p02772
u313238134
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...
['n = input()\nl = input().split() \nl = [int(x) for x in l]\nfor i in range(len(l)):\n if l[i] % 2 == 0 and (l[i]%3 ==0 or l[i]%5==0):\n print("APPROVED")\n else:\n print("DENIED") ', 'n = input()\nl = input().split() \nl = [int(x) for x in l]\ne =[]\nf =[int(x) for x in l if x%2==0]\nfor i in rang...
['Wrong Answer', 'Accepted']
['s526644185', 's827486869']
[3060.0, 3064.0]
[19.0, 18.0]
[193, 263]
p02772
u318150500
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...
["def judge(N, A):\n cnt = 0\n odd = 0\n for i in range(N):\n if A[i] % 2 != 0:\n odd += 1\n continue\n else:\n if (A[i] % 3 == 0) or (A[i] % 5 == 0):\n cnt += 1\n even = N - odd\n if cnt == even:\n print('APROVED')\n else:\n print('DENIED')\n \nN = int(input())\nA = list(map(...
['Wrong Answer', 'Accepted']
['s267093043', 's971365777']
[3064.0, 3064.0]
[17.0, 17.0]
[335, 321]
p02772
u318859025
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...
['n=int(input())\nli=list(map(int,input().split()))\neven=[]\nans="APPRIVED"\n\nfor i in li: \n if i%2==0:\n even.append(i)\n \nfor j in even:\n if j%3!=0 and j%5!=0:\n ans="DENIED"\nprint(ans)', 'n=int(input())\nli=list(map(int,input().split()))\neven=[]\nans="APPROVED"\n\nfor i in li: \n if i%2==0:\...
['Wrong Answer', 'Accepted']
['s876488651', 's631899249']
[3060.0, 3060.0]
[17.0, 18.0]
[193, 193]
p02772
u318909153
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...
['N = input()\nA = list(map(str, input().split()))\nB=[]\nC=[]\nl=[]\nm=[]\ni=0\nfor a in range(int(N)):\n if int(A[a])%2==0:\n B.append(A[a])\n i=i+1\nprint(B)\nfor a in range(int(i)):\n if not int(B[a])%3==0 or int(B[a])%5==0:\n C=1\n else:\n C=0\nprint(C)\nif C==1:\n print("DENIED"...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s105134981', 's327892659', 's463832248', 's341929106']
[3064.0, 3064.0, 3064.0, 3064.0]
[18.0, 18.0, 17.0, 17.0]
[327, 309, 311, 291]
p02772
u321096814
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...
["# -*- coding: utf-8 -*-\n\n\n\nn = input() # 2 ~ 99\nan = []\nan = input().split() 1 ~ 1000\n\nocunt = 0\nfor i in an:\n if i % 2 == 0:\n if i % 3 == 0 or i % 5 == 0:\n count += 1\n break:\nif count == 1:\n print('APPROVED')\nelse:\n print('DENIED')", "# -*- coding: utf-8 -*-\nn = input() # 2 ~ 99\nan...
['Runtime Error', 'Accepted']
['s714612830', 's674965331']
[2940.0, 3060.0]
[17.0, 17.0]
[398, 287]
p02772
u321605735
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...
['N=int(input())\nS=[int(s) for s in input().split()]\nfor i in range(N):\n if S[i]%2==0 and S[i]%15!=0:\n print("DENIED")\n elif i==N-1:\n print("APPROVED")', 'N=int(input())\nS=[int(s) for s in input().split()]\nfor i in range(N):\n if S[i]%2==0 and S[i]%5!=0 and S[i]%3!=0:\n print("DENI...
['Wrong Answer', 'Accepted']
['s984998564', 's209507476']
[9084.0, 9112.0]
[27.0, 29.0]
[169, 196]
p02772
u327240208
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...
['n = int(input())\nA = list(map(int, input().split()))\n\nbad = 0\nfor i in range(n):\n if(A[i] % 2):\n if(A[i] % 3 != 0 or A[i] % 5 != 0):\n bad += 1\n\nif(bad >= 1):\n print("DENIED")\nelse:\n print("APPROVED")\n', 'n = int(input())\nA = list(map(int, input().split()))\n\ncount = 0\nfor i ...
['Wrong Answer', 'Accepted']
['s868526867', 's899374458']
[9124.0, 9144.0]
[30.0, 27.0]
[227, 239]
p02772
u328755070
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...
['N = int(input())\nA = list(map(int, input().split()))\n\nfor x in A:\n if x % 2 == 0:\n if not (x%3 and x%5):\n print("DENIED")\n break\n \nelse:\n print("APPROVED")', 'N = int(input())\nA = list(map(int, input().split()))\n\nflag = 0\n\nfor i in A:\n if i%2==0 and (i%3 != 0 and i%5 != 0):\n f...
['Wrong Answer', 'Accepted']
['s144666981', 's063786311']
[2940.0, 2940.0]
[17.0, 19.0]
[175, 195]
p02772
u330728443
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...
['N=int(input())\nA=[int(x) for x in input().split()]\nguu=[]\n\nresult="APPROVED"\nfor i in range(N):\n if A[i]%2==0:\n guu.append(A[i])\nfor i in range(len(guu)):\n if (guu[i]%3!=0)and(A[i]%5!=0):\n result="DENIED"\n break\n\nprint(result)', 'N=int(input())\nA=[int(x) for x in input...
['Wrong Answer', 'Accepted']
['s872930213', 's191480489']
[3064.0, 3064.0]
[18.0, 18.0]
[261, 263]
p02772
u334365640
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...
['n = int(input())\nl = list(map(int, input().split()))\ndef test():\n for i in l:\n if i%2 != 0 and i%3!=0 and i%5!=0:\n return "DENIED"\n return "APPROVED"\nprint(test())', 'n = int(input())\nl = list(map(int, input().split()))\ndef test():\n for i in l:\n if i%2 != 0 and i%3!=0 and i%5!=0:\n retur...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s061845637', 's140993985', 's787577616', 's799604785', 's947958143', 's761418020']
[2940.0, 2940.0, 2940.0, 2940.0, 3068.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[173, 177, 160, 205, 177, 173]
p02772
u337713602
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...
['n = int(input())\ns = [int(x) for x in list(input().split()) if x%2 == 0]\nans = "APPROVED"\nfor i in s:\n if not i%5 != 0 && i%3 != 0:\n ans = "DENIED"\n pass\nprint(ans)\n', 'n = int(input())\ns = [int(x) for x in list(input().split()) if int(x)%2 == 0]\nans = "APPROVED"\nfor i in s:\n if not i%5 != 0:\n ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s617579833', 's625839194', 's285036241']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[172, 212, 173]
p02772
u338488254
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...
["N=int(input())\nli = list(map(int,input().split()))\n\nfor i in li:\n if i%2 ==0:\n if i%3 != 0 and i%5 != 0:\n print('DENIED')\n break\n continue\n print('APPROVED')", "N=int(input())\nli = list(map(int,input().split()))\n\nfor i in li:\n if i%2 ==0:\n if i%3 != 0 and i%5 != 0:\n print('DENI...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s036343704', 's224380820', 's285403379', 's441880761', 's784832948', 's830269673', 's914005356', 's031558082']
[2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[173, 187, 170, 232, 173, 198, 172, 233]
p02772
u340494803
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...
['import sys\nn=int(input())\na=map(int, input().split())\nfor i in a:\n if i%2==0 and i%3!=0 and i%5!=0:\n print("DEINED")\n sys.exit()\n', 'import sys\nn=int(input())\na=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 sys.exit()\n\nprint(...
['Wrong Answer', 'Accepted']
['s286377963', 's054553098']
[2940.0, 2940.0]
[18.0, 17.0]
[146, 164]
p02772
u345483150
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...
["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 \tbreak\n else:\n print('APPROVED')", "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 \texit()\n else:\n print(...
['Runtime Error', 'Runtime Error', 'Accepted']
['s635421542', 's835394752', 's538799552']
[3064.0, 2940.0, 2940.0]
[18.0, 17.0, 18.0]
[154, 155, 158]
p02772
u350093546
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...
["n=int(input())\na=list(map(int,input().split()))\nx=[]\nfor i in a:\n if i%2==0:\n x+=i\nfor y in x:\n if y%3!=0 and y%5!=0:\n print('DENIED')\n else:\n print('APPROVED')\n\n ", "n=int(input())\na=list(map(int,input().split()))\nx=[]\nfor i in a:\n if i%2==0:\n x+=i\nfor y in x:\n if x=[]:\n pr...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s104361899', 's225460630', 's792087738', 's862729577', 's494099631']
[2940.0, 2940.0, 9088.0, 2940.0, 9080.0]
[17.0, 17.0, 25.0, 17.0, 28.0]
[178, 214, 146, 211, 156]
p02772
u350667455
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...
["N = int(input())\nA = list(map(int, input().split()))\nfor i in A:\n if (i%3==0 or i%5==0) and i%2==0:\n print('APPROVED')\n else:\n print('DENIED')", "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 ans=('DENIED')\n break\n ...
['Wrong Answer', 'Accepted']
['s430102582', 's215463255']
[9104.0, 9172.0]
[27.0, 26.0]
[162, 184]
p02772
u351480677
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...
['n = int(input())\na = list(map(int,input().split()))\nb = []\nfor i in a:\n if i%2==0:\n b.append(i)\nc = 0\nfor i in b:\n if i%3!=0 or i%5!=0:\n c = c+1\n else:\n pass\nif c==0:\n print("APPROVED")\nelse:\n print("DENIED")', 'n = int(input())\na = list(map(int,input().split()))\ncnt=0\nfor i in range(n...
['Wrong Answer', 'Accepted']
['s653067848', 's890347152']
[3060.0, 9152.0]
[17.0, 30.0]
[222, 282]
p02772
u351654473
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...
[' N = int(input())\n A = list(map(int, input().split(\' \')))\n\n flag = True\n for 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\n if flag:\n print("APPROVED")\n else:\n pr...
['Runtime Error', 'Runtime Error', 'Accepted']
['s842177237', 's915944767', 's280670770']
[2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[315, 252, 266]
p02772
u355853184
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...
['N = int(input())\n\nA_list = list(map(int, input().split()))\n\nfor i in range(N):\n print(i)\n if A_list[i] % 2 == 0:\n if A_list[i] % 3 == 0 or A_list[i] % 5 == 0:\n if i == N-1:\n print("APPROVED")\n continue\n else:\n print("DENIED")\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s273240357', 's395751790', 's141949092']
[9160.0, 9060.0, 9172.0]
[28.0, 26.0, 30.0]
[313, 300, 277]
p02772
u369796672
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...
['N = int(input())\nl = list(map(int, input().split())\n \nL = [i for i in l if i % 2 == 0]\n\nK = [i for i in L if i % 3 != 0]\n\nJ = [i for i in K if i % 5 != 0]\n \nif len(J) == 0:\n print("APPROVED")\nelse:\n print("DENIED")', 'N = int(input())\nl = list(map(int, input().split())\n ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s272361423', 's908142875', 's181157762']
[2940.0, 2940.0, 3060.0]
[17.0, 19.0, 17.0]
[246, 238, 219]
p02772
u370429695
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...
['n = int(input())\nli = list(map(int,input().split()))\nflag = False\nfor i in li:\n if i % 6 == 0 or i % 10 == 0:\n continue\n else:\n print("DENIED")\n flag = True\nif not flag:\n print("APPROVED")', "n = int(input())\nl = list(map(int,input().split()))\nflag = False\nfor i in l:\n if i%2==0:\n if i%...
['Wrong Answer', 'Accepted']
['s308664608', 's345065351']
[3060.0, 2940.0]
[17.0, 17.0]
[200, 201]
p02772
u370721525
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...
["N = int(input())\nA = list(map(int, input().split()))\n\nfor i in range(N):\n if A[i] % 2 == 0:\n if A[i] % 3 != 0 and A[i] % 5 != 0:\n print('DENIED')\n break\n elif i != N:\n continue\n else:\n print('APPROVED')", "N = int(input())\nA = list(map(int, input().split()))\n\nfor i in range...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s074145472', 's566935236', 's140188865']
[3060.0, 2940.0, 3060.0]
[17.0, 17.0, 18.0]
[232, 193, 316]
p02772
u374146618
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...
['n = int(input())\na = [int(x) for x in input().split()]\n\na_even = []\nfor ai in a:\n if ai%2 == 0:\n a_even += [ai]\n\nfor a_eveni in a_even:\n if a_eveni%3 != 0 or a_eveni%5 != 0:\n ans = "DENIED"\n else:\n ans = "APPROVED"\nprint(ans)', 'import numpy as np\n\nn = int(input())\na = np...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s033718650', 's488954903', 's939677394', 's280779282']
[3060.0, 3064.0, 3060.0, 12444.0]
[17.0, 17.0, 17.0, 148.0]
[255, 343, 252, 188]
p02772
u375432485
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...
["N = list[int(i) for i in input().split]\nA = list[int(i) for i in input().split]\nif all([i%2==1 for i in A]):\n print('APPROVED')\nelse:\n even = [i for i in A if i%2==0]\n even = [0 if i%3==0 or i%5==0 else 1 for i in even]\n if max(even)==1:\n print('DENIED')\n else:\n print('APPROVED'...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s119417472', 's353106399', 's383605569', 's756450517', 's954065174']
[2940.0, 3060.0, 2940.0, 3064.0, 3060.0]
[17.0, 18.0, 18.0, 18.0, 18.0]
[309, 301, 325, 296, 305]
p02772
u375616706
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...
['N = int(input())\nA = list(map(int,input().split()))\nif all(v%2==1 or v%3==0 or v%5==0):\n print("APPROVED")\nelse:\n print("DENIED")\n', 'N = int(input())\nA = list(map(int,input().split()))\nif all(v%2==1 or v%3==0 or v%5==0 for v in A):\n print("APPROVED")\nelse:\n print("DENIED")\n']
['Runtime Error', 'Accepted']
['s476951780', 's165045414']
[2940.0, 2940.0]
[17.0, 17.0]
[136, 147]
p02772
u383450070
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...
['num = int(input())\nlst = list(map(int,input().split()))\ncount = 0\ncounta == 0\nfor i in range(num):\n if lst[i] % 2 == 0:\n count += 1\n if lst[i] % 3 == 0 or lst[i] % 5 == 0:\n counta += 1\nif count == counta:\n print("APPROVED")\nelse:\n print("DENIED")', 'num = int(input())\nlst = list(map(int,inp...
['Runtime Error', 'Accepted']
['s252392752', 's090990631']
[3060.0, 3060.0]
[17.0, 17.0]
[260, 259]
p02772
u385244248
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...
['#!usr/bin/env python3\nimport sys\nimport math\nimport string\nimport collections\nimport fractions\nimport random\nfrom operator import itemgetter\nimport itertools\nfrom collections import deque\nimport copy\nimport heapq\nimport bisect\n\nMOD = 10 ** 9 + 7\nINF = float(\'inf\')\ninput = lambda: sys.stdin.readline(...
['Wrong Answer', 'Accepted']
['s185414441', 's767743113']
[6352.0, 6480.0]
[55.0, 57.0]
[510, 518]
p02772
u388463553
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...
["N=int(input())\na1=input().split()\na2=[int(i) for i in a1]\nfor i in a2:\n if i%2==0 and i%3!=0 and 1%5!=0:\n print('DENIED')\n break\nelse:\n print('APPROVED')", "N=int(input())\na1=input().split()\na2=[int(i) for i in a1]\nfor i in a2:\n if i%2==0 and i%3!=0 and i%5!=0:\n print('DENIE...
['Wrong Answer', 'Accepted']
['s533363966', 's904385324']
[9176.0, 9120.0]
[29.0, 30.0]
[173, 173]
p02772
u393881437
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...
['\n\nN = 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(0)\nprint("APPROVED")\n', 'N = int(input())\na = list(map(int,input().split()))\nresult = "APPROVED"\nfor i in range(N):\n ...
['Runtime Error', 'Accepted']
['s817582230', 's015853714']
[2940.0, 2940.0]
[17.0, 17.0]
[249, 219]
p02772
u394352233
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...
["A = list(map(int, input().split()))\ncount = 0\nfor a in A:\n if (a % 2 == 0 and a % 3 != 0) and (a % 2 == 0 and a % 5 != 0):\n count = count + 1\n\nif count => 1 :\n print('DENIED')\nelse:\n print('APPROVED')", "A = list(map(int, input().split()))\nN = int(input())\ncount = 0\nfor a in A:\n if (a % 2 == 0 and...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s375294325', 's453251540', 's646847567', 's315995712']
[2940.0, 3060.0, 3060.0, 2940.0]
[17.0, 20.0, 17.0, 17.0]
[206, 223, 219, 195]
p02772
u394721319
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...
["N = int(input())\nA = [int(zz) for zz in input().split()]\n\nfor i in A:\n if i%2 == 0:\n if i%3 != 0 or i%5 != 0:\n print('DENIED')\n exit()\n\nprint('APPROVED')\n", "N = int(input())\nA = [int(zz) for zz in input().split()]\nli = []\nli2 = []\nn = 0\nfor i in A:\n if i%2 == 0:\n ...
['Wrong Answer', 'Accepted']
['s295153507', 's031208403']
[2940.0, 3060.0]
[17.0, 19.0]
[186, 274]
p02772
u395010524
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...
["n = int(input())\nm = list(map(int, input().split()))\nm = set(m)\n\nfor i int range(len(m))\n if i % 2 == 0:\n if i % 5 == 0 or i % 3 == 0:\n ans = 'APPROVED'\n else:\n ans = 'DENIED'\n\nprint(ans)", 'n = int(input())\nm = list(map(int, input().split()))\n\nans = "APPROVED"\n\n...
['Runtime Error', 'Accepted']
['s513094361', 's056806008']
[2940.0, 3060.0]
[17.0, 17.0]
[226, 300]
p02772
u406405116
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...
["n = input()\nl = list(map(int, input().split()))\nresult = 'APPROVED'\nfor i in l:\n if i % 2 == 0:\n if i % 3 != 0 or i % 5 != 0:\n result = 'DENIED'\n break\nprint(result)\n\n ", "n = input()\nl = list(map(int, input().split()))\nresult = 'APPROVED'\nfor i in l:\n if i % 2 == 0:\n if i % 3 != 0...
['Wrong Answer', 'Accepted']
['s534919398', 's092230867']
[2940.0, 2940.0]
[17.0, 18.0]
[185, 180]
p02772
u408071652
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...
['N = int(input())\nA = list(map(int,input().split()))\n\nflag =0\nfor i in A:\n if (i %2 ==1) or ((i%3)==0 or (i%5) == 0):\n pass\n else:\n flag =1\n\nif flag== 1:\n print("DENIED")\nelse:\n print("APPROED")\n ', 'N = int(input())\nA = list(map(int,input().split()))\n\nflag =0\ncounter =0\...
['Wrong Answer', 'Accepted']
['s351816486', 's174813649']
[2940.0, 3064.0]
[18.0, 17.0]
[224, 249]
p02772
u408958033
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...
["n = int(input())\nl = list(map(int,input().split()))\nflag = False\nfor i in l:\n if i%2==0:\n if i%3!=0 or i%5!=0:\n flag=True\n break\nif not flag:\n print('APPROVED')\nelse:\n print('DENIED')", "n = int(input())\nl = list(map(int,input().split()))\nflag = False\nfor i in l:\n if i%2==0:\n if i%...
['Wrong Answer', 'Accepted']
['s246371600', 's620444624']
[3064.0, 2940.0]
[18.0, 17.0]
[199, 200]
p02772
u411302151
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...
['N = int(input())\narr = list(map(int, input().split()))\n\nfor x in arr:\n if ((x % 2) == 0) and (x % 3 or x % 5):\n break\nelse:\n print("APPROVED")\n\nprint("DENIED")\n', 'N = int(input())\narr = list(map(int, input().split()))\n\nfor x in arr:\n if ((x % 2) == 0) and (x % 3 or x % 5):\n prin...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s015983275', 's786851796', 's758764926']
[2940.0, 2940.0, 3060.0]
[17.0, 20.0, 19.0]
[173, 181, 180]
p02772
u411858517
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...
['N = int(input())\nL = list(map(int, input().split()))\n\nans = "APPROVED"\nfor i in range(N):\n if L[i]%2 == 0:\n if L[i]%3 == 0 and L[i]%5 == 0:\n pass\n else:\n ans = "DENIED"\n break\n \nprint(ans)\n ', 'N = int(input())\nL = list(map(int, input().split()))\n\nans = "APPROVED"\nfor ...
['Wrong Answer', 'Accepted']
['s178216592', 's125334242']
[2940.0, 2940.0]
[17.0, 17.0]
[222, 222]
p02772
u427690532
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...
['S_list = [input() for i in range(2)]\nS_list_1 = S_list[1].split()\n\nfor i in S_list_1: \n if int(i) % 2 == 0 :\n if i % 3 !=0 and i % 5 !=0 :\n result="DENIED"\n break\n else:\n result="APPROVED" \nprint(result)', 'S_list = [input() for i in range(2)]\nS_list_1 = S...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s362000969', 's895424000', 's953942728', 's710019459']
[9088.0, 9108.0, 8852.0, 9052.0]
[26.0, 28.0, 29.0, 32.0]
[254, 358, 219, 264]
p02772
u428246454
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...
['n = int(input())\narr = [input() for _ in range(n)]\ndic = {}\nfor i in range(n):\n if arr[i] not in dic:\n dic[arr[i]] = 1\n else:\n dic[arr[i]] += 1\nlargest = max(dic.values())\nans = []\nfor keys in dic.keys():\n if dic[keys] == largest:\n ans.append(keys)\nans = sorted(ans)\nfor wor...
['Runtime Error', 'Accepted']
['s663457315', 's501973296']
[3064.0, 2940.0]
[20.0, 17.0]
[332, 200]
p02772
u434872492
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...
['N=int(input())\nA=list(map(int,input().split()))\nl=[]\nfor i in range(N):\n if A[i]%2==0:\n l.append(A[i])\nflag=True\nfor i in range(N):\n if l[i]%3==0 or l[i]%5==0:\n pass\n else:\n flag=False\nif flag:\n print("APPROVED")\nelse:\n print("DENIED")', 'N=int(input())\nA=list(map(i...
['Runtime Error', 'Accepted']
['s931937786', 's844495484']
[3064.0, 3064.0]
[20.0, 17.0]
[271, 276]
p02772
u435001241
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...
['N = input()\nA = map(int, input().split())\neven = []\ncount = 0\nfor x in A:\n if x % 2 == 0:\n even.append(x)\nfor x in even:\n if x%3 == 0 or x%5 == 0:\n count += 1\nif count == len(even):\n print("Approved")\nelse:\n print("Denied")', 'N = input()\nA = map(int, input().split())\neven = [...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s190714850', 's194918592', 's754628397', 's907947201', 's193431877']
[3064.0, 3060.0, 3060.0, 3064.0, 3064.0]
[18.0, 18.0, 17.0, 17.0, 18.0]
[249, 233, 251, 278, 272]