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 | u652445326 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nlis = list(map(int,input().split()))\nresult = "APPROVED"\nfor i in lis:\n if i %2 ==0:\n if i %3 !=0 or i%5 !=0:\n result = "DENIED"\n break\nprint(result)', 'N = int(input())\nlis = list(map(int,input().split()))\nresult = "DENIED"\nfor i in range(N):\n if i %2 =... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s474835040', 's477059102', 's410094993'] | [3060.0, 3064.0, 2940.0] | [18.0, 18.0, 18.0] | [198, 248, 199] |
p02772 | u652522621 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = list(map(int, input().split(' ')))\nflag = False\n\nfor i in range(N):\n if nums[i]%2 == 0 :\n \n if (nums[i]%3 != 0) | (nums[i]%5 != 0):\n flag = True\n print('DENIED')\n break\n else:\n continue\n else:\n continue\n \nif flag == False:\n print('APPROVED... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s218302099', 's585198553', 's856310781'] | [3060.0, 3060.0, 3060.0] | [17.0, 18.0, 18.0] | [303, 289, 297] |
p02772 | u652656291 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = 0\nfor a in A:\n if a % 2 == 0:\n if a % 3 == 0 or a % 5 == 0:\n ans = 1\n break()\n \nif ans == 1:\n print(APPROVED)\nelse:\n print(DENIED)\n \n\n', 'n = int(input())\nA = list(map(int,input().split()))\nans = 1\nfor a in A:\n if a % ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s213650253', 's448372615', 's665318370'] | [8936.0, 8900.0, 9108.0] | [25.0, 23.0, 30.0] | [214, 209, 222] |
p02772 | u654035739 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\ncount = 0\ncount2 = 0\nfor i in range(0, N):\n if L[i]%2==0:\n count = count + 1\n if L[i]%3==0 or L[i]%5==0:\n count2 = count2 + 1\n\nif count == count2:\n prin("APPROVED")\nelse:\n print("DENIED")\n', 'N = int(input())\nL = list(map(int, input().s... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s459715979', 's537618688', 's638151063', 's945282486', 's658442084'] | [3060.0, 3060.0, 2940.0, 3060.0, 3060.0] | [18.0, 17.0, 17.0, 19.0, 18.0] | [255, 205, 234, 232, 256] |
p02772 | u655048024 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = "APPOROVED"\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 break\n else:\n None\nprint(ans)\n', 'n = int(input())\na = list(map(int,input().split()))\nans = "APPOROVED"\nfor i in range(n):\n if(a[i]%... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s439174999', 's680984656', 's385679350'] | [9072.0, 9072.0, 9124.0] | [28.0, 29.0, 28.0] | [200, 219, 179] |
p02772 | u666195238 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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().splitlines()\na = list(map(int, (input().splitlines())[0].split()))\nb = []\nfor i in range(len(a)):\n if (a[i] % 2) == 0:\n if (((a[i] % 3) == 0) or ((a[i] % 5) == 0)):\n b.append(True)\n else: \n b.append(False)\nif (len(b) == 0) or (False in b):\n print("APPROVED")\nelse:\n print("DENIED... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s191883519', 's226023761', 's393845047', 's916457006', 's371381979'] | [3064.0, 3060.0, 3064.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [308, 277, 305, 277, 260] |
p02772 | u672475305 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nlst = list(map(int,input().split()))\n\nflg = True\nfor i in range(n):\n if lst[i]%2!=0:\n continue\n if lst[i]%3!=0 or lst[i]%5!=0:\n flg = False\n break\nprint('APPROVED' if flg else 'DENIED')", "n = int(input())\nlst = list(map(int,input().split()))\n\nflg = True\nfor i... | ['Wrong Answer', 'Accepted'] | ['s978340071', 's931263914'] | [3060.0, 3060.0] | [17.0, 18.0] | [229, 254] |
p02772 | u674052742 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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"""\nCreated on Tue Mar 3 23:44:02 2020\n\n@author: Kanaru Sato\n"""\n\nN=int(input())\nA = list(map(int, input().split()))\n\ndeny = 0\n\nfor i in range(0,N):\n if A[i]%2 == 0 and (A[i]%3 != 0 and A[i]%5 != 0):\n deny = 1\n\nif deny == 1:\n print("DENIED")\nelse:\n print("AP... | ['Wrong Answer', 'Accepted'] | ['s788246704', 's745614889'] | [3060.0, 3060.0] | [17.0, 17.0] | [309, 309] |
p02772 | u674347990 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()\nnums = [int(n_str) for n_str in input().split(\' \')]\n\nfor num in nums:\n if num % 2 == 0:\n if num % 3 != 0 and num % 5 != 0:\n print("DENIED")\n\t exit()\n\nprint("APPROVED")', 'input()\nnums = [int(n_str) for n_str in input().split(\' \')]\n\nfor num in nums:\n if num % 2 == 0:\n if num % ... | ['Runtime Error', 'Accepted'] | ['s489350585', 's256922820'] | [2940.0, 2940.0] | [17.0, 17.0] | [185, 189] |
p02772 | u674588203 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\narr=[]\nfor A in a:\n if A%2==0:\n arr.append(A)\n else:\n pass\n\nfor n in arr:\n if n%3==0 or n%%==0:\n pass\n else:\n print('DENIED')\n exit()\nprint('APPROVED')", "N=int(input())\na=list(map(int,input().split()))\narr... | ['Runtime Error', 'Accepted'] | ['s067353028', 's431501444'] | [2940.0, 3060.0] | [17.0, 17.0] | [246, 246] |
p02772 | u681502232 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nx = map(int, input().split())\n\nfor i in x :\n if i % 2 == 0 :\n if i % 3!=0 or i % 5 !=0:\n print('DENIED')\n exit()\n\nprint('APPROVED')\n\n\n", "n=int(input())\nx = map(int, input().split())\n\nfor i in x :\n if i % 2 == 0 :\n if i % 3!=0 and i % 5 !=0:\n pri... | ['Wrong Answer', 'Accepted'] | ['s485743334', 's978856060'] | [9132.0, 9020.0] | [27.0, 29.0] | [172, 173] |
p02772 | u681811488 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = 3\nb = [1,2,3]\nx = 0\n\nif (a==0) :\n\tprint('DENIED')\nelif (b.count(0) > 0):\n\tprint('DENIED')\nelse:\n for i in b:\n if i % a == 0:\n x += 1\n if x == len(b):\n print('APPROVED')\n else:\n print('DENIED')\n", "a = int(input())\n \nb=list(map(int, input().split())) \nx = 0\n \nif (a... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s032653372', 's241217557', 's386952691', 's433252309', 's544538343', 's647896688', 's717115924', 's719493338', 's728137418', 's772876508', 's775603176', 's846605902', 's940815840', 's960015643', 's818504856'] | [2940.0, 2940.0, 3064.0, 3060.0, 3064.0, 3064.0, 2940.0, 3064.0, 3060.0, 3060.0, 3060.0, 3064.0, 3064.0, 3060.0, 3064.0] | [17.0, 18.0, 18.0, 17.0, 18.0, 20.0, 18.0, 19.0, 18.0, 18.0, 17.0, 17.0, 17.0, 18.0, 18.0] | [224, 188, 308, 228, 340, 242, 229, 259, 148, 253, 249, 268, 234, 240, 244] |
p02772 | u684435505 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()\nnums = map(int, input())\nprint(nums)', 'N = input()\nnums = list(map(int, input().split()))\n\ndef main():\n for n in nums:\n if n%2==0 and n%3!=0 and n%5!=0:\n print("DENIED")\n return\n print("APPROVED")\n return\n\nif __name__ == "__main__":\n main()'] | ['Wrong Answer', 'Accepted'] | ['s021423807', 's228601758'] | [2940.0, 2940.0] | [17.0, 17.0] | [48, 242] |
p02772 | u686713618 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\narray = list(map(int, input().split())) \nans = "APPROVED"\nnu = 0\nfor i in range a:\n nu = array[i]\n if nu % 2 == 0:\n if nu % 3 == 0 or nu % 5 == 0:\n pass\n else:\n ans = "DENIED"\nprint(ans)', 'a = int(input())\narray = list(map(int, input().split())) \nans = "APPROVED"\nnu =... | ['Runtime Error', 'Accepted'] | ['s293944092', 's559612467'] | [2940.0, 2940.0] | [17.0, 17.0] | [221, 224] |
p02772 | u690442716 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 range(len(A)):\n flag = 1\n if A[i]%2 == 0:\n if A[i]%3 != 0:\n flag = flag - 1\n if A[i]%5 != 0:\n flag = flag - 1 \n if flag < 0: \n ans = "DENIED"\n print(flag)\nprin... | ['Wrong Answer', 'Accepted'] | ['s824689745', 's703114648'] | [3064.0, 3060.0] | [17.0, 17.0] | [311, 291] |
p02772 | u692498898 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\ns=0\nfor i in a:\n if a%2==0:\n if a%3!=0 and a%5!=0:\n s=s+1\nprint('DENIED' if s>0 else 'APPROVED')", "n=int(input())\na=list(map(int,input().split()))\ns=0\nfor i in a:\n if i%2==0:\n if i%3!=0 and i%5!=0:\n s=s+1\nprint('DENIED' if s>0 else 'APPR... | ['Runtime Error', 'Accepted'] | ['s832717804', 's684690644'] | [2940.0, 3060.0] | [18.0, 18.0] | [153, 153] |
p02772 | u697502900 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = map(int, input().split())\nb = all([i%3==0 and i%5==0 for i in l if i%2 == 0])\nprint('APPROVED' if b else 'DENIED')", "n = int(input())\nl = map(int, input().split())\nb = all([i%3==0 or i%5==0 for i in l if i%2 == 0])\nprint('APPROVED' if b else 'DENIED')\n"] | ['Wrong Answer', 'Accepted'] | ['s973429221', 's364236016'] | [2940.0, 2940.0] | [17.0, 18.0] | [135, 135] |
p02772 | u697559326 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = 1\nfor i in range(N):\n if(A[i] % 2 == 0):\n print(flag)\n if(A[i] % 3 != 0 and A[i] % 5 != 0):\n flag = 0\n\nif(flag == 0):\n print("DENIED")\nelse:\n print("APPROVED")', 'N = int(input())\nA = list(map(int, input().spl... | ['Wrong Answer', 'Accepted'] | ['s562105626', 's802776494'] | [3064.0, 3060.0] | [17.0, 18.0] | [254, 234] |
p02772 | u699696451 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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(map(int,input().split()))\n\neven = 0\nbai = 0\nfor i in range(N):\n if A[i] % 2 == 0:\n even = even + 1\n print(even)\n if A[i] % 3 == 0 or A[i] % 5 == 0:\n bai = bai + 1\n i = i + 1\n \nif even == bai:\n print("APPROVED")\nelse:\n print("DE... | ['Wrong Answer', 'Accepted'] | ['s556906427', 's282321568'] | [3060.0, 3064.0] | [17.0, 17.0] | [333, 300] |
p02772 | u699944218 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 N:\n if A[i] % 2 == 0:\n if A[i] % 3 == 0 or A[i] % 5 == 0:\nprint('APPROVED')\n else:\nprint('DENIED')\n else:\nprint('DENIED')", 'N = int(input())\nA = (input().split())\ni_count = 0\ntest = []\n for i in A:\n num = int(i) % 2\n if num == 0 :... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s608656915', 's830252451', 's216003731'] | [2940.0, 2940.0, 3064.0] | [17.0, 17.0, 18.0] | [191, 302, 680] |
p02772 | u706433263 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nPaper=list(map(int,input().split()))\nm=0\nfor i in range (a):\n if Paper[i]%2==0:\n if not Paper[i]%3==0 or Paper[i]%5==0:\n m=m+1\nreturn m\n\nif not m=0:\n print("DENIED")\nelse:\n print("APPROVED")\n', 'a=int(input())\nPapers=list(map(int,input().split()))\nm=0\nfor i in range (a):\n i... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s148001121', 's163940300', 's713594059', 's459928533'] | [2940.0, 3064.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0, 17.0] | [217, 217, 218, 218] |
p02772 | u706811704 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\nbr=0\nfor i in range (n):\n if l[i]%2==0 and l[i]%5==0 or l[i]%3==0:\n br+=1\nif br==n:\n print("APPROVED")\nelse:\n print("DENITED")\n', 'n=int(input())\nl=list(map(int, input().split()))\nbr=0\nfor i in range (n):\n if l[i]%2==0 and l[i]%5==0 or ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s067189725', 's126469589', 's283019551', 's348314535'] | [2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 18.0, 18.0, 18.0] | [192, 192, 191, 223] |
p02772 | u707659359 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = [int(x) for x in input().split(' ')]\na_list = list(filter(lambda x:x%2 == 0 and (x%3 != 0 and x%5 != 0), a_list))\nprint(a_list)\n\nif not a_list:\n print('APPROVED')\nelse:\n print('DENIED')", "N = int(input())\na_list = [int(x) for x in input().split(' ')]\na_list = list(filter(lam... | ['Wrong Answer', 'Accepted'] | ['s375522119', 's664220100'] | [3060.0, 3060.0] | [17.0, 18.0] | [217, 203] |
p02772 | u714732628 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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(len(A)):\n if i%2 == 0:\n if i%3 != 0 and i%5 != 0:\n A[i] = 0\nif 0 in A:\n print('DENIED')\nelse:\n print('APPROVED')", "N = int(input())\nA = list(map(int, input().split()))\nfor i in range(len(A)):\n if A[i]%2 == 0:\n if A[i]%3 !... | ['Wrong Answer', 'Accepted'] | ['s056425014', 's998054081'] | [3060.0, 3060.0] | [17.0, 19.0] | [191, 200] |
p02772 | u718706790 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 x % 3 == 0 and x % 5 == 0:\n print('APPROVED')\n exit()\n\nprint('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 and x % 5 != 0:\n ... | ['Wrong Answer', 'Accepted'] | ['s284176604', 's643932939'] | [2940.0, 2940.0] | [17.0, 17.0] | [172, 188] |
p02772 | u723612973 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\nf=0\nfor i in range(n):\n if(a[i]%2==0):\n if(a[i]%3==0 or a[i]%5==0):\n f=0\n else:\n f=1\n break\nif(f==0):\n print("APROVED")\nelse:\n print("DENIED")', 'n=int(input())\na=list(map(int,input().split()))\nf=0\n... | ['Wrong Answer', 'Accepted'] | ['s619028717', 's501070150'] | [3060.0, 3064.0] | [19.0, 17.0] | [246, 247] |
p02772 | u725324053 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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\ncount = 0\nfor i in range (1,N+1):\n if i % 3 == 0 or i % 5 == 0:\n count += i\n print(count)', "N = int(input())\nA = list(map(int, input().split()))\nfor i in A:\n if i % 2 ==0:\n if (i % 3 != 0) and ( i % 5 != 0):\n print('DENIED')\n exit()\nprint ... | ['Runtime Error', 'Accepted'] | ['s667849659', 's936894886'] | [9032.0, 9120.0] | [23.0, 27.0] | [111, 202] |
p02772 | u728318205 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = map(int,input().split())\n\nlist2=[]\nfor i in list:\n if i%2==0:\n list2.append(i)\n\nif list2:\n while all(i%3==0 or i%5==0 for i in list2):\n print('APPROVED')\n else:\n print('DENIED')\nelse:\n print('DENIED')\n \n ", "n = int(input())\nlist = ... | ['Wrong Answer', 'Accepted'] | ['s564437139', 's790496703'] | [19428.0, 2940.0] | [2104.0, 17.0] | [273, 275] |
p02772 | u731322489 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\nA = [a for a in A if a % 2 == 0]\nprint(A)\n\nans = "APPROVED"\nfor a in A:\n if (a % 3 != 0) and (a % 5 != 0):\n ans = "DENIED"\n break\nprint(ans)', 'n = int(input())\nA = list(map(int, input().split()))\nA = [a for a in A if a % 2 == 0]\n\nans... | ['Wrong Answer', 'Accepted'] | ['s660329665', 's756961765'] | [3060.0, 3060.0] | [17.0, 18.0] | [210, 201] |
p02772 | u731368968 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is... | ["i=input;N=i();print('ADPEPNRIOEVDE'[True in[a%3and a%5and a%2==0for a in list(map(int,i().split()))]::2])", "N = int(input())\nA = list(map(int, input().split()))\n\n\nfor i in range(N):\n a = A[i]\n if a % 2 == 0:\n if a % 3 != 0 and a % 5 != 0:\n print('DENIED')\n exit()\nprint('A... | ['Wrong Answer', 'Accepted'] | ['s000148607', 's517645271'] | [2940.0, 2940.0] | [17.0, 18.0] | [105, 209] |
p02772 | u731627862 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 count in A :\n if count % 2 == 0:\n if count % 3 != 0 and count %5 != 0:\n print("DENIED")\n\n else:\n print("APPROVED")\n', 'N = int(input())\nA = list(map(int,input().split()))\nf = 0\nt = 0\n\nfor count in A :\n i... | ['Wrong Answer', 'Accepted'] | ['s921012803', 's178687089'] | [2940.0, 3060.0] | [18.0, 17.0] | [211, 316] |
p02772 | u732870425 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 a in A:\n if (a % 2 == 0) and (a & 3 != 0) and (a % 5 != 0):\n ans = "DENIED"\n break\n\nprint(ans)', 'N = int(input())\nA = list(map(int, input().split()))\n\nans = "APPROVED"\nfor a in A:\n if (a % 2 == 0) and (a % 3 ... | ['Wrong Answer', 'Accepted'] | ['s496998587', 's340488137'] | [3060.0, 2940.0] | [18.0, 17.0] | [186, 186] |
p02772 | u734195782 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\nf=0\nfor i in range(n):\n if a[i]%2==0 and (a[i]%3==0 or a[i]%5==0):\n f=1\n if a[i]%2==0:\n f=0\n break\n else:\n f=1\nif f==1:\n print("APPROVED")\nelse:\n print("DENIED")', 'n=int(input())\na=list(map(int,input().split()))... | ['Wrong Answer', 'Accepted'] | ['s089763009', 's037670119'] | [3064.0, 3060.0] | [18.0, 17.0] | [252, 199] |
p02772 | u735315224 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = []\narr = input().split() \narr = [int(l) for l in arr]\neven = [l for l in arr if l % 2 == 0] \ncount = 0\nfor i in even: \n if i % 3 == 0 or i % 5 == 0:\n count += 1\nif count == 1: \n print("APPROVED")\nelse: \n print("DENIED")', 'n = int(input())\narr = []\narr = input... | ['Wrong Answer', 'Accepted'] | ['s460944006', 's702320588'] | [3064.0, 3064.0] | [17.0, 17.0] | [263, 288] |
p02772 | u740047492 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()]\ncount=0\nfor i in a:\n if i%2==0:\n if i%3!=0 or i%5!=0:\n count+=1\n break\nif count==0:\n print("APPROVED")\nelse:\n print("DENIED")\n \n\n', 'n=int(input())\na=[int(i) for i in input().split()]\ncount=0\nfor i in ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s039399748', 's059569614', 's795145541', 's719959023'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [229, 231, 228, 230] |
p02772 | u740267532 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nn = list(map(int, input().split()))\n\nfor a in n:\n if a % 2 == 0:\n ans = all(a%3==0 or a%5==0)\nif ans:\n print("APPROVED")\nelse:\n print("DENIED")\n', 'N = int(input())\nA = list(map(int, input().split()))\n\nans = all(a%3==0 or a%5==0 for a in A if a%2==0)\nif ans:\n print("... | ['Runtime Error', 'Accepted'] | ['s441998671', 's878344472'] | [3064.0, 2940.0] | [18.0, 17.0] | [177, 159] |
p02772 | u748311048 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nfor i in range(N):\n if A[i]%2==0:\n if A[i]%3==0 or A[i]%5==0:\n print('APPROVED')\n exit()\n\nprint('DENIED') ", "N=int(input())\nA=list(map(int, input().split()))\nfor i in range(N):\n if A[i]%2==0:\n if A[i]%3!=0 and A[i]%5!=0:\n print('DENIED... | ['Runtime Error', 'Accepted'] | ['s734014331', 's818055514'] | [2940.0, 3060.0] | [18.0, 17.0] | [166, 169] |
p02772 | u751539777 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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\n\nfor i in range(N):\n if A[i] % 2 == 0:\n if A[i] % 3 == 0 or if A[i] % 5 == 0:\n pass\n else:\n flag = 1\n break\n \n if flag = 0:\n print("PASS")\n else:\n print("DENIED")', 'N = int(in... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s737354625', 's944030853', 's636665188'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 18.0] | [288, 293, 245] |
p02772 | u752522099 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is... | ['admission = []\nn = int(input())\nadmission.append(map,int(input().split()))\n\nfor i in range(n):\n if admission[n] % 2 == 0:\n if admission[n] % 3 == 0 or admission[n] % 5 == 0:\n print("APPROVE")\n else:\n print("DENIED")', 'admission = []\nn = int(input())\nadmission.append(... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s004699152', 's165641187', 's205065519', 's264985645', 's373841929', 's477552593', 's621375305', 's660576015', 's859812832', 's928912301', 's957964973', 's105756732'] | [3316.0, 3316.0, 3060.0, 3316.0, 3316.0, 2940.0, 2940.0, 3060.0, 2940.0, 3060.0, 2940.0, 3060.0] | [20.0, 21.0, 17.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 22.0] | [254, 256, 262, 255, 256, 262, 240, 261, 262, 263, 205, 284] |
p02772 | u753092134 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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.split()\nden=0\napp=0\nfor i in arr:\n i=int(i)\n if (i%2):\n if i%3==0 or i%5==0:\n app+=1\n else:\n den+=1\nif den>0:\n print("DENIED")\nelse:\n print("APPROVED")', 'n = int(input()) \n \n# input the array \n# arr = []\narr = list(map(int, input().split()))\nden=0\napp... | ['Runtime Error', 'Accepted'] | ['s046446436', 's099402329'] | [3064.0, 3060.0] | [17.0, 17.0] | [196, 298] |
p02772 | u757030836 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = [int(i) for i in range(N)]\n\nx=[]\nfor i in range(N):\n\n if a[i] %2 ==0:\n x.append(a[i])\n \nfor i in x:\n if x[i] %3 ==0 or x[i] %5 ==0:\n print("APPROVED")\n else:\n print("DENIED")\n\n\n', 'N = int(input())\n\na = [int(i) for i in input().split()]\n\nx=[]\nj=0\nfor i in rang... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s581808335', 's757153647', 's203336786'] | [3060.0, 3060.0, 3060.0] | [18.0, 18.0, 17.0] | [212, 240, 263] |
p02772 | u757274384 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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(len(A)):\n if A[i] %2 == 0:\n if A[i] != 3 and A[i] != 5:\n print("DENIED")\n exit()\n else:\n pass\n else:\n pass\n \nprint("APPROVED")', 'n = int(input())\nA = list(map(int, input().split()))\n\nfor i in range(len(A))... | ['Wrong Answer', 'Accepted'] | ['s586433514', 's800433707'] | [3064.0, 3060.0] | [18.0, 18.0] | [222, 228] |
p02772 | u758475901 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 a in A:\n if a % 2 == 0:\n if a % 3 != 0 and a % 3 != 0:\n print("DENIED")\n break\nelse:\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(... | ['Wrong Answer', 'Accepted'] | ['s485240648', 's656566905'] | [2940.0, 2940.0] | [19.0, 18.0] | [174, 178] |
p02772 | u760831084 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 or a[i] % 5:\n continue\n else:\n print('DENIED')\n exit()\nprint('APPROVED')", "n = int(input())\na = list(map(int, input().split()))\n\nfor i in range(... | ['Wrong Answer', 'Accepted'] | ['s614444801', 's852603699'] | [3060.0, 3060.0] | [18.0, 18.0] | [232, 237] |
p02772 | u763963344 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 and i % 5:\n print('DENIED')\n break\nelse:\n print('APPROVE')", 'n = int(input())\na = list(map(int, input().split()))\n\nfor i in a:\n if not i%2 and i%3 and i%5... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s152494625', 's375613430', 's712788316', 's806256193', 's906919744'] | [9168.0, 9064.0, 9156.0, 9172.0, 9172.0] | [29.0, 30.0, 31.0, 29.0, 26.0] | [205, 171, 230, 207, 180] |
p02772 | u766393261 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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=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:\n flag=False\nif flag==True:\n print('APPROVED')\nelse:\n print('DENIED')", "import sys\nN=int(input())\nA=list(map(int,input().split()))\nflag=True\nfor ... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s297513101', 's560203075', 's915664882', 's677104654'] | [3060.0, 2940.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0, 18.0] | [226, 225, 260, 227] |
p02772 | u771383254 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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\nflg = True\nfor i in range(n):\n if a[i]%2 == 0:\n cnt += 1\n if a[i]%3 == 0 or a[i]%5 == 0:\n pass\n else:\n flg = False\nif flg: print("APPROVED")\nelse: print("DENIED")', 'n = int(input())\na = list(map(int, input().split()))\n\nflg = Tru... | ['Runtime Error', 'Accepted'] | ['s039395621', 's183883335'] | [9128.0, 9180.0] | [27.0, 30.0] | [236, 223] |
p02772 | u773440446 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nq = list(map(int,input().split()))\nalm = 0\nfor i in q:\n if i%2 == 0:\n alm = i\n \tif alm%3 != 0 or alm%5 != 0:\n \tprint("DENIED")\n exit()\n\nprint("APPROVED")\n \n', 'n = int(input())\nq = list(map(int,input().split()))\nalm = 0\nfor i in q:\n ans = []\n if i%2 == 0:\n ans... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s637760075', 's809081333', 's042382168'] | [9020.0, 8804.0, 9128.0] | [24.0, 20.0, 30.0] | [189, 226, 256] |
p02772 | u774985302 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = [int(i) for i in input().split()]\nfor i in A:\n if not i%3 == 0 or not i % 5 == 0:\n print("DENIED")\n sys.exit()\n else :\n continue\nprint("APPROVED")', 'import sys\nN = int(input())\nA = [int(i) for i in input().split()]\nfor i in A:\n if i%2 == 0 and (not i%3 == 0 or... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s096458759', 's108475259', 's144713138', 's299064764', 's691319918', 's786241868', 's794719023', 's913725427', 's412829438'] | [2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 18.0, 18.0, 17.0, 17.0, 18.0, 18.0, 18.0, 18.0] | [189, 204, 103, 111, 178, 174, 178, 221, 105] |
p02772 | u780698286 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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\n\nn = int(input())\na = list(map(int, input().split()))\nfor i in a:\n if a % 2 == 0 and (a % 3 != 0 and a % 5 != 0):\n print("DENIED")\n sys.exit()\nprint("APPROVED") ', 'import sys\n\nn = int(input())\na = list(map(int, input().split()))\nfor i in a:\n if i % 2 == 0 and (i % 3 != 0 and i % 5 ... | ['Runtime Error', 'Accepted'] | ['s093434533', 's019405817'] | [9152.0, 9072.0] | [25.0, 29.0] | [182, 183] |
p02772 | u793666115 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\nk = 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 print("DENIED")\n k += 1\n break\n else:\n continue\n else:\n continue\n\nif k == 0:\n print("APPROVED")', 'n... | ['Wrong Answer', 'Accepted'] | ['s599019686', 's473860478'] | [3060.0, 3060.0] | [18.0, 19.0] | [297, 276] |
p02772 | u795928154 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nAi = input()\nAi = Ai.split(' ')\nans = 'APPROVED'\nfor moji in Ai:\n if moji % 2 != 0:\n pass\n else:\n if (moji % 3 == 0) or (moji % 5 == 0):\n pass\n else:\n ans = 'DENIED'\n break\nprint(ans)\n", "N = int(input())\nAi = input()\nAi = Ai... | ['Runtime Error', 'Accepted'] | ['s507255714', 's213489252'] | [2940.0, 2940.0] | [20.0, 19.0] | [261, 282] |
p02772 | u796842765 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 a in A:\n if a % 2 == 1:\n continue\n if a / 3 == 0 or a / 5 == 0:\n continue\n print("DENIED")\n exit()\nprint("APPROVED")\n', 'N = int(input())\nA = list(map(int, input().split())\n \nfor a in A:\n if a % 2 == 1:\n continue\n ... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s059001966', 's572609990', 's094120428'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [184, 259, 244] |
p02772 | u798260206 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = 0\n\nfor i in a:\n if i%2 ==0 and (i%3 !=0 or i%5 != 0):\n ans += 1\n else:\n pass\n \nif ans >0:\n print("DENIED")\nelse:\n print("APPROVED")', 'n = int(input())\na = list(map(int,input().split()))\nans = 0\n\nfor i in a:\n if i%2 ==0 and (i%3 !... | ['Wrong Answer', 'Accepted'] | ['s777060413', 's902270976'] | [2940.0, 2940.0] | [17.0, 17.0] | [200, 201] |
p02772 | u803865203 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nX = map(int,input().split())\ndef check():\n for i in range(N):\n if(i%2 == 0):\n if(i%3 == 0 & i%5 == 0):\n continue\n else:\n print("DENIED")\n return 0\n\n else:\n continue\n print("APPROVED")\ncheck... | ['Wrong Answer', 'Accepted'] | ['s409817521', 's775095166'] | [2940.0, 2940.0] | [17.0, 17.0] | [307, 301] |
p02772 | u811000506 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\nflag = 1\nfor i in A:\n if i%3!=0 or i%5!=0:\n flag = 0\n break\nif flag==1:\n print("APPROVED")\nelse:\n print("DENIED")', 'N = int(input())\nA = list(map(int,input().split()))\nflag = 1\nfor i in A:\n if i%2==0 and i%3!=0 and i%5!=0:\n ... | ['Wrong Answer', 'Accepted'] | ['s425062298', 's778262394'] | [2940.0, 3068.0] | [17.0, 17.0] | [188, 200] |
p02772 | u812867074 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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\nflag = True\nfor i in l:\n if (i%3 != 0 and i%2 == 0) or (i%5 != 0 and i%2 == 0):\n flag = False\n break\n \nif flag:\n print("APPROVED")\n \nelse:\n print("DENIED")', 'n = int(input())\nl = list(map(int,input().split()))\n\nflag = True\nfor i in l:... | ['Wrong Answer', 'Accepted'] | ['s471595701', 's981106070'] | [3060.0, 2940.0] | [17.0, 19.0] | [221, 223] |
p02772 | u813125722 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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(input().split())\nfor i in range(N):\n print(i)\n print(A[i])\n if A[i]%2==0:\n if A[i]%15!=0:\n print("DENIED")\n else:\n print("APPROVED")\n ', 'N = int(input())\nA = int(input().split())\nfor i in range(N):\n if A[i]%2==0:\n if... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s215238434', 's815635250', 's931705668', 's987158491', 's797056951'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [211, 189, 173, 177, 194] |
p02772 | u813174766 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()\ns=list(map(int,input().split()))\nfor i in s:\n if i%2==0:\n if i%3>0 or i%5>0:\n n=0\nprint(["APPROVED","DENIED"][n==0])', 'n=input()\ns=list(map(int,input().split()))\nfor i in s:\n if i%2==0:\n if i%3>0 and i%5>0:\n n=0\nprint(["APPROVED","DENIED"][n==0])'] | ['Wrong Answer', 'Accepted'] | ['s736647538', 's775440452'] | [2940.0, 2940.0] | [18.0, 17.0] | [135, 136] |
p02772 | u814265211 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\n\na = list(filter(lambda i: i%3 != 0 and i%5 != 0 and i % 2 == 0, A)))\nprint("APPROVED" if len(a) == 0 else "DENIED")', 'N = int(input())\nA = map(int, input().split())\n\na = list(filter(lambda i: i%3 != 0 and i%5 != 0 and i%2 == 0, A))\nprint("APPROVED" if len(a) ==... | ['Runtime Error', 'Accepted'] | ['s503129911', 's618214373'] | [2940.0, 2940.0] | [17.0, 17.0] | [163, 160] |
p02772 | u815754241 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is... | ['p = int(input())\n\nvals = input().split(" ")\nvals = map(int, vals)\n\nbol = True\n\nfor val in vals :\n\tif val % 2 == 0 :\n\t if not (val % p == 0 ) :\n\t bol = False\n\nif bol :\n print("APPROVED")\nelse : \n print("DENIED")\n\t', '\nvals = input().split(" ")\nvals = map(int, vals)\n\nbol = True\n\nfor val ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s198532489', 's428025731', 's676350820'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [218, 215, 224] |
p02772 | u816631826 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is... | [' # getting input on a variable \naa = input()\na = list(map(int, input().split()))\n\ncheck = None\nfor i in a:\n if i%2==0:\n if i%3==0 or i%5==0:\n check = True\n else:\n check = False\n break\n else:\n check = False\n \nif check:\n print("APPROVE... | ['Wrong Answer', 'Accepted'] | ['s986300363', 's395179418'] | [3060.0, 3064.0] | [18.0, 18.0] | [331, 374] |
p02772 | u821775079 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()\n*a,=input().split()\nflag = True\nfor i in a:\n if i%2 == 0:\n if i%3 != 0:\n if i%5 != 0:\n flag = False\n break\nif flag:\n print("APPROVED")\nelse:\n print("DENIED")', '_ = input()\na=map(int,*input().split())\nflag = True\nfor i in a:\n if i%2 == 0:\n if i%3 != 0:\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s221788117', 's910232405', 's912367317'] | [3060.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0] | [194, 202, 201] |
p02772 | u823885866 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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(sys.stdin.readline().rstrip())\nli = list(map(int, sys.stdin.readline().split()))\nli2 = []\nfor i in li:\n if not i % 2:\n li2.append(i)\nif len(li2):\n flag = True\nelse:\n flag = False\nfor i in li2:\n if not i % 3 and i % 5:\n flag = False\n break\nprint('APPROVED' if flag else 'D... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s005375622', 's374170180', 's928540664'] | [3060.0, 3060.0, 2940.0] | [18.0, 18.0, 17.0] | [311, 319, 223] |
p02772 | u825378567 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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=input()\n A=list(map(int,input().split()))\n for a in A:\n if a%2==0 and (a%3!=0 or a%5!=0):\n print("DENIED")\n return \n print("APPROVED")\n\nmain()\n ', 'def main(): \n N=input()\n A=list(map(int,input().split()))\n for a in A:\n if a%2==0 and (a%3!=0 and a%5!=0):\n ... | ['Wrong Answer', 'Accepted'] | ['s414803994', 's388201770'] | [2940.0, 3064.0] | [17.0, 17.0] | [182, 184] |
p02772 | u825541307 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\nflag = 'APPROVED'\nfor a in A:\n print(a)\n if a % 2 == 0:\n if a % 3 != 0:\n if a % 5 != 0:\n flag = 'DENIED'\n break\nprint(flag)", "N = int(input())\nA = list(map(int,input().split()))\nflag = 'APPROVED'\nfor a ... | ['Wrong Answer', 'Accepted'] | ['s679119777', 's439095584'] | [3060.0, 2940.0] | [17.0, 17.0] | [225, 216] |
p02772 | u825587043 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\na = np.array(l)\ncount = 0\n\nfor i in range(len(a)):\n if a[i]%2 == 0:\n if a[i]%3 == 0 or a[i]%5== 0:\n count += 1\n\nif count:\n print("DENIED")\nelse:\n print("APPROVED")', 'import numpy as np\n\nN = int(input())\nl = list(map(int,in... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s202109672', 's211914840', 's289173084', 's426534706', 's554073232', 's625991897', 's896585386', 's691540511'] | [3060.0, 12416.0, 2940.0, 12508.0, 14428.0, 2940.0, 2940.0, 12388.0] | [17.0, 149.0, 17.0, 149.0, 151.0, 17.0, 17.0, 150.0] | [242, 262, 276, 235, 241, 198, 218, 265] |
p02772 | u827261928 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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:\n if A[i]%3!=0 or A[i]%5!=0:\n print('DENIED')\n exit()\nprint('APPROVED')", "N=int(input())\nA=list(map(int,input().split()))\nfor i in range(N):\n if A[i]%2==0:\n if A[i]%3!=0 and A[i]%5!=0... | ['Wrong Answer', 'Accepted'] | ['s547049048', 's468873970'] | [9176.0, 9060.0] | [30.0, 25.0] | [184, 185] |
p02772 | u828139046 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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\nf = 'True'\n\nfor i in range(n):\n a = int(input())\n if a % 2 == 0:\n if a % 3 != 0 and a % 5 != 0:\n f = 'False'\n\nif f == 'True':\n print('APPROVED')\nelse:\n print('DENIED')", "n = int(input())\n\na = input().split()\n\nf = 'True'\n\nfor i in a:\n if int(i) % 2 == 0:\n if int(... | ['Runtime Error', 'Accepted'] | ['s002714133', 's608280065'] | [3060.0, 3060.0] | [17.0, 17.0] | [197, 207] |
p02772 | u830162518 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\nM=[]\nfor i in L:\n if i%2==0:\n M.append(i)\nA='APPROVED'\nfor k in M:\n if k%3!=0 or k%5!=0:\n A='DENIED'\n break\nprint(A)\n\n \n ", "N=int(input())\nL=list(map(int,input().split()))\nM=[]\nfor i in L:\n if i%2==0:\n M.append(i)\nA='APPROVED'\nfo... | ['Wrong Answer', 'Accepted'] | ['s764845421', 's736253132'] | [3060.0, 3060.0] | [18.0, 19.0] | [184, 178] |
p02772 | u834598393 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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_n = list(map(int, input().split()))\nfor i in range(N):\n if list_n[i] % 2 == 0:\n if (list_n[i] % 3 ==0) or (list_n[i] % 5 == 0):\n print('APPROVED')\n else:\n print('DENIED')", "\nN = int(input())\nlist_n = list(map(int, input().split()))\nflag = 0\nfor i in range(N):\n if l... | ['Wrong Answer', 'Accepted'] | ['s220181456', 's191532181'] | [3060.0, 3060.0] | [18.0, 17.0] | [209, 273] |
p02772 | u841599623 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 -*-\na = int(input())\n\nfor i in range(a):\n lis = list(map(int, input().split()))\n judge = True\n if (lis[i] % 2 == 0):\n if (lis[i] % 3 != 0) and (lis[i] % 5 != 0):\n judge = False\n\nif judge:\n print("APPROVED")\nelse:\n print("DENIED")', '# -*- coding: utf-8 -*-\na = int(input(... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s106131678', 's161898842', 's299847039', 's325803638', 's657796233', 's664150886', 's740348338', 's792904237', 's864174390', 's903827348'] | [3060.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0, 3060.0] | [18.0, 17.0, 19.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [270, 233, 226, 226, 224, 225, 229, 231, 230, 279] |
p02772 | u843768197 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they meet certain criteria. According to the regulation, the immigrant should be allowed entry to the kingdom if and only if the following condition is... | ["for _ in A:\n if _ % 2 == 0:\n if _ % 3 == 0 or _ % 5 == 0:\n ans *= 1\n else:\n ans *= 0\n\nif ans == 1:\n print('APPROVED')\nelse:\n print('DENIED')", "N = int(input())\nA = list(map(int, input().split()))\nans = 1\n\nfor _ in A:\n if _ % 2 == 0:\n if _ % 3 =... | ['Runtime Error', 'Accepted'] | ['s273092960', 's730128355'] | [9084.0, 9188.0] | [25.0, 29.0] | [186, 248] |
p02772 | u844196583 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\ndata = list(map(int,input().split()))\nsw1 = 0\nsw2 = 0\nfor i in range(0,len(data)):\n if data[i] % 2 == 0:\n sw1 += 1\n if data[i] % 3 == 0 or data[i] % 5 == 0:\n sw2 += 1\n\nprint(sw1,sw2)\nif sw1 > 0 and sw1 == sw2:\n print("APPROVED")\nelse:\n print("DENIED")',... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s290259968', 's739364517', 's778179371', 's075548977'] | [9164.0, 9132.0, 9076.0, 9124.0] | [26.0, 31.0, 25.0, 27.0] | [302, 308, 286, 288] |
p02772 | u851125702 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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\ni=0\nprint(a)\nwhile(c==0 and i<N):\n if(a[i]%2==0):\n if(a[i]%3==0 or a[i]%5==0):\n i+=1\n else:\n c+=1\n else:\n i+=1\nif(c==1):\n print("DENIED")\nelse:\n print("APPROVED")\n', 'N=int(input())\na = list(... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s172178947', 's454557458', 's559420924', 's374407195'] | [3060.0, 3064.0, 3064.0, 3060.0] | [18.0, 18.0, 18.0, 18.0] | [272, 273, 272, 263] |
p02772 | u851319680 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nAN = list(map(int, input().split()))\n\nAN2 = AN[AN % 2 == 0]\n(AN % 2 == 0).size\nif AN2[AN2 % 3 == 0].size + AN2[AN2 % 5 ==0].size - AN2[AN2 % 15 ==0].size == AN2.size :\n print('APPROVED')\n\nelse:\n print('DENIED')\n", "N = int(input())\nAN = list(map(int, input().split()))\n\nAN2 = AN[AN ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s604734297', 's635959709', 's741147692'] | [2940.0, 2940.0, 12500.0] | [17.0, 18.0, 153.0] | [234, 233, 255] |
p02772 | u853728588 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 range(n):\n if A[i]%2 == 0:\n if A[i]%3!=0 or A[i]%5!=0:\n ans = "DENIED"\nprint(ans)\n\n \n ', '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!... | ['Wrong Answer', 'Accepted'] | ['s136437712', 's420866149'] | [9072.0, 9076.0] | [30.0, 30.0] | [179, 171] |
p02772 | u860966226 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\ndata = input().split()\n \nans = "APPROVED"\n \nfor i in range(n):\n num = int(data[i])\n if num % 2 == 0 and (num % 3 != 0 or num % 5 != 0)\n ans = "DENIED"\n break\n \nprint(ans)\n', 'n = int(input())\ndata = input().split()\n\nans = "APPROVED"\n\nfor i in range(n):\n num = int(data[i])\n... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s210159350', 's774322319', 's782145264', 's958380022', 's538273256'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [196, 179, 184, 203, 206] |
p02772 | u861071267 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nALis = list(map(int,input().split()))\nFlag = True\n\nfor i in range(N):\n if ALis[i] % 2 == 0:\n if ALis[i] % 3 != 0 and ALis[i] % 5 != 0:\n Flag = False\n\nif Flag:\n print("APPROVE") \nelse:\n print("DENIED")\n ', 'N = int(input())\nALis = list(map(int,input().split()... | ['Wrong Answer', 'Accepted'] | ['s153627254', 's627982145'] | [2940.0, 2940.0] | [17.0, 18.0] | [248, 249] |
p02772 | u864276028 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\nk = 0\nfor i in A:\n if i%2 = 1:\n A.remove(i)\nfor j in A:\n if j%3 != 0 and j%5 != 0:\n k = 1\n break\nif k == 0:\n print('APPROVED')\nelif k == 1:\n print('DENIED')", "N = int(input())\nA = list(map(int, input().split()))\nk = 'APPROVED'\nfor i in... | ['Runtime Error', 'Accepted'] | ['s020247020', 's311854299'] | [8920.0, 9168.0] | [27.0, 26.0] | [222, 196] |
p02772 | u866769581 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = 'DENIED'\nfor x in a:\n if x % 2 == 0 and x % 3 == 0 or x % 5 == 0 :\n ans = 'APPROVED'\n else:\n ans = 'DENIED'\n break\nprint(ans)", "n = int(input())\na = list(map(int,input().split()))\nans = 'APPROVED'\nfor x in a:\n if not... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s107681662', 's819869445', 's311960076'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [210, 171, 207] |
p02772 | u867736259 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\n\nb,c = 0,0\nfor i in a:\n if (i%2)==0:\n b += 1\n if(i%3 == 0) or (i%5 == 0):\n c += 1\n\nif (b == c) and (b != 0):\n print('APPROVED')\nelse:\n print('DENIED')", "o = int(input())\na = list(map(int,input().split()))\n\nb,c = 0,0\nfor i in a:\n ... | ['Wrong Answer', 'Accepted'] | ['s341051377', 's405770490'] | [3060.0, 3060.0] | [17.0, 17.0] | [219, 223] |
p02772 | u867826040 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 sys import exit\nn = int(input())\na = list(map(int, input().split()))\nb = "APPROVED"\nwhile b == "APPROVED":\n for i in a:\n if i % 2 == 0:\n if (i % 3 == 0 or i % 5 == 0):\n b = "APPROVED"\n else:\n print("DENIED")\n exit()\n \nprint(b)', 'n = int(input())\na = list(map(int... | ['Time Limit Exceeded', 'Time Limit Exceeded', 'Accepted'] | ['s218274847', 's276948814', 's686604701'] | [2940.0, 2940.0, 2940.0] | [2104.0, 2104.0, 17.0] | [267, 239, 272] |
p02772 | u869265610 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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(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 ", "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('DENI... | ['Runtime Error', 'Accepted'] | ['s312615249', 's749032958'] | [9064.0, 9112.0] | [26.0, 31.0] | [169, 175] |
p02772 | u869917163 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nA = list(map(int, input().split()))\n\nfor i in A:\n if i%2 == 0 and i%3 != 0 and i%5 != 0:\n print('DENIED')\n ... | ['Runtime Error', 'Accepted'] | ['s922488849', 's904650569'] | [2940.0, 2940.0] | [18.0, 18.0] | [170, 155] |
p02772 | u878654696 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 input()\n a = map(int, input().split())\n for i in a :\n if i%3 != 0 and i%3 != 0 :\n print("DENIED")\n return\n \n \n print("APROVED")\n \n\nif __name__ == \'__main__\':\n import sys;\n try:\n main(sys.argv)\n except TypeErr... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s594169919', 's728996108', 's764012988', 's911022495', 's595112960'] | [3060.0, 3060.0, 3060.0, 3060.0, 3064.0] | [17.0, 18.0, 17.0, 18.0, 17.0] | [318, 329, 329, 329, 159] |
p02772 | u879870653 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\nres = "APPROVED"\nfor a in A :\n if a % 2 == 0 and (a % 3 == 0 or a % 5 == 0) :\n res = "DENIED"\nprint(res)\n', 'n = int(input())\nA = list(map(int,input().split()))\nres = "APPROVED"\nfor a in A :\n if a % 3 == 0 or a % 5 == 0 :\n res = "DENI... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s449486079', 's583985873', 's670154549'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [167, 164, 224] |
p02772 | u882013918 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 even=[el for el in a if el % 2==0]\n try:\n for a in even:\n if a % 3 == 0 or a % 5 == 0:\n flg = 1\n else:\n raise\n except:\n print('DENIED')\n else:\n print('APPROVED')", "n=int(input())\na = lis... | ['Runtime Error', 'Accepted'] | ['s811760334', 's644363198'] | [2940.0, 3316.0] | [17.0, 20.0] | [279, 227] |
p02772 | u884601206 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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())\nx=list(map(int,input().split()))\nf=False\nfor i in range(n):\n if x[i]%2==0:\n if x%3==0 or x%5==0:\n pass\n else:\n f=True\n break\n \nif f==False:\n print(\'APPROVED")\nelse:\n print(\'DENIED\')\n', "n=int(input())\nx=list(map(int,input().split()))\nf=False\nfor i... | ['Runtime Error', 'Accepted'] | ['s872798470', 's223059620'] | [3064.0, 2940.0] | [18.0, 17.0] | [232, 242] |
p02772 | u886459614 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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\nL = list(map(int, input().split()))\nS=set()\nfor i in range(n):\n\tif L[i]%2==0:\n\t\tS.add(L[i])\np=0\nfor s in S:\n\tif s%3!=0 or s%5!=0:\n\t\tprint('DENIED')\n\t\tp+=1\n\t\tbreak\n\nif p==0:\n\tprint('APPROVED')", "n = int(input())\n\nL = list(map(int, input().split()))\nS=set()\nfor i in rang... | ['Wrong Answer', 'Accepted'] | ['s096220673', 's194270574'] | [3064.0, 3060.0] | [17.0, 17.0] | [209, 211] |
p02772 | u888380104 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()\n\na = list(map(int,input().split()))\nb = 0\nc = 0\nfor i in range(len(a)):\n if a[i] % 2 == 0:\n b+=1\n if a[i] % 3 == 0 or a[i] % 5 == 0:\n c+=1\n if b == c:\n print('APPROVED')\n else:\n print('DENIED')", "N = input()\n\na = list(map(in... | ['Wrong Answer', 'Accepted'] | ['s307866337', 's620586331'] | [9128.0, 9188.0] | [28.0, 30.0] | [270, 238] |
p02772 | u900848911 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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(int(x) for x in input().split())\nfound = 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 found = False\n break\n\nif found:\n print('APPRPVED')\nelse:\n print('DENIED')\n", "N = int(input())\nA = list(int(x) for x... | ['Wrong Answer', 'Accepted'] | ['s364185840', 's891655688'] | [2940.0, 2940.0] | [17.0, 17.0] | [261, 261] |
p02772 | u902080722 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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\n\nn = int(input())\nli = list(map(int, input().split()))\n\nfor i in range(n):\n a = li[i]\n if a%2 ==0:\n if (a % 3 == 0 or a % 5 == 0)==False:\n print("DENIED")\n sys.exit()\n\nprint("PASS")\n', 'import sys\n\nn = int(input())\nli = list(map(int, input().split()))\n\nfor i in range(n):\n ... | ['Wrong Answer', 'Accepted'] | ['s205019303', 's572889699'] | [3060.0, 2940.0] | [19.0, 17.0] | [208, 212] |
p02772 | u908763441 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 print(i)\n print(A[i] % 2 == 0)\n print(A[i] % 3 != 0)\n print(A[i] % 5 != 0)\n if(A[i] % 2 == 0 and A[i] % 3 != 0 and A[i] % 5 != 0):\n print('DENIED')\n exit()\nprint('APPROVED')", "N = int(input())\nA = map(int... | ['Wrong Answer', 'Accepted'] | ['s034063897', 's844806682'] | [3064.0, 2940.0] | [17.0, 17.0] | [275, 154] |
p02772 | u912650255 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 A:\n if i % 2 == 0:\n if i % 3 == 0:\n ans = 'APPROVED'\n if i % 5 == 0:\n ans = 'APPROVED'\n else:\n ans = 'DENIED'\n break\nprint(ans)", "N = int(input())\nA = list(... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s575391487', 's735406246', 's980496721', 's463051858'] | [9172.0, 9144.0, 9176.0, 9056.0] | [27.0, 25.0, 28.0, 30.0] | [274, 243, 233, 235] |
p02772 | u914330401 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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()))\nans = true\nfor i in li:\n if i % 2 == 1:\n ans = false\n break\n else:\n if i % 3 != 0 and i % 5 != 0:\n ans = false\n break\nif ans:\n print("APPROVED")\nelse:\n print("DENIED")', 'n = int(input())\nli = list(map(int, input().split()))\n... | ['Runtime Error', 'Accepted'] | ['s474446359', 's883469269'] | [2940.0, 2940.0] | [17.0, 17.0] | [244, 232] |
p02772 | u914671452 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 = list(map(int,input().split()))\nfor i in range(N):\n if A[i] % 2 != 0:\n print("DENIED")\n sys.exit()\n elif A[i] % 3 != 0 and A[i] % 5 != 0:\n print("DENIED")\n sys.exit()\n else:\n pass\nprint("APPROVED")', 'import sys\nN = int(input())\nA = list(map(int,input().s... | ['Wrong Answer', 'Accepted'] | ['s570435648', 's136216662'] | [3060.0, 3060.0] | [17.0, 17.0] | [246, 220] |
p02772 | u914802579 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 k(x):\n x=int(x)\n if x%2==0 and (x%3==0 or x%5==0):\n\treturn 1\n return 1\nn=int(input());l=list(map(k,input().split()))\nif sum(l)==n:\n print("APPROVED")\nelse:\n print("DENIED")', 'def k(x):\n x=int(x)\n if x%2==0:\n if (x%3==0 or x%5==0):\n return 1\n return 0\n return 1\nn=int(input());l... | ['Runtime Error', 'Accepted'] | ['s665785641', 's600977048'] | [2940.0, 3064.0] | [17.0, 18.0] | [181, 203] |
p02772 | u916560554 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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 if A[i] % 3 == 0 or A[i] % 5 == 0:\n print('APPROVED')\n else:\n print('DENIED')\n elif A[i] % 2 != 0:\n B.append(A[i])\nif len(A) == len(B):\n print('APPROVED')... | ['Wrong Answer', 'Accepted'] | ['s950034347', 's537033217'] | [3060.0, 3064.0] | [17.0, 17.0] | [313, 400] |
p02772 | u916662650 | 2,000 | 1,048,576 | You are an immigration officer in the Kingdom of AtCoder. The document carried by an immigrant has some number of integers written on it, and you need to check whether they 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\nresult = True\n\n\nfor i in range(N):\n if A[i] % 2 == 0:\n if A[i] % 3 != 0 or A[i] % 5 != 0:\n result = False\n break\n \n\nif result == True:\n print("APPROVED")\nelse:\n print("DENIED")\n', 'N = int(input()... | ['Wrong Answer', 'Accepted'] | ['s940838085', 's585417019'] | [3060.0, 2940.0] | [18.0, 18.0] | [282, 283] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.