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 |
|---|---|---|---|---|---|---|---|---|---|---|
p03210 | u597455618 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['a= int(input())\n\nif (a == (3 or 5 or 7) ):\n print("YES")\nelse :\n print("NO")', 'a= int(input())\n\nif (a == 3 or a == 5 or a == 7):\n print("YES")\nelse :\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s141959123', 's061107414'] | [2940.0, 2940.0] | [17.0, 17.0] | [78, 85] |
p03210 | u601082779 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['print("YNEOS"[1-input()in\'357\'::2])', 'print(" YNEOS"[input()in\'357\'::2])'] | ['Runtime Error', 'Accepted'] | ['s741064541', 's215578408'] | [2940.0, 2940.0] | [17.0, 19.0] | [35, 34] |
p03210 | u603234915 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['N = ini(input())\n\nif N == 3 or N == 5 or N == 7:\n\tprint("YES")\nelse:\n\tprint("NO")', 'N = int(input())\n\nprint(["NO", "YES"][N == 3 or N == 7 or N == 5])'] | ['Runtime Error', 'Accepted'] | ['s765622522', 's062339662'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 66] |
p03210 | u604398799 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['# -*- coding: utf-8 -*-\n"""\nCreated on Sun Dec 2 20:06:38 2018\n\n@author: Owner\n"""\n\nimport collections\nimport scipy.misc\nimport sys\nimport numpy as np\nimport math\nfrom operator import itemgetter\n\ndef prime_decomposition(n):\n i = 2\n table = []\n while i * i <= n:\n while n % i == 0:\n n /= i\n table.append(int(i))\n i += 1\n if n > 1:\n table.append(int(n))\n return table \n\n"""\nN, X = map(int, input().split())\n\nx = [0]*N\nx[:] = map(int, input().split())\n\nP = [0]*M\nY = [0]*M\nfor m in range(M):\n P[m], Y[m] = map(int, input().split())\n"""\n\nX = input()\n\nif X == 7:\n print(\'YES\')\n sys.exit()\nelif X == 5:\n print(\'YES\')\n sys.exit()\nelif X == 3:\n print(\'YES\')\n sys.exit()\nelse:\n print(\'NO\')\n \n ', '# -*- coding: utf-8 -*-\n"""\nCreated on Sun Dec 2 20:06:38 2018\n\n@author: Owner\n"""\n\nimport collections\nimport scipy.misc\nimport sys\nimport numpy as np\nimport math\nfrom operator import itemgetter\n\ndef prime_decomposition(n):\n i = 2\n table = []\n while i * i <= n:\n while n % i == 0:\n n /= i\n table.append(int(i))\n i += 1\n if n > 1:\n table.append(int(n))\n return table \n\n"""\nN, X = map(int, input().split())\n\nx = [0]*N\nx[:] = map(int, input().split())\n\nP = [0]*M\nY = [0]*M\nfor m in range(M):\n P[m], Y[m] = map(int, input().split())\n"""\n\nX = int(input())\n\nif X == 7:\n print(\'YES\')\n sys.exit()\nelif X == 5:\n print(\'YES\')\n sys.exit()\nelif X == 3:\n print(\'YES\')\n sys.exit()\nelse:\n print(\'NO\')\n \n '] | ['Wrong Answer', 'Accepted'] | ['s871553324', 's901987597'] | [24972.0, 23444.0] | [1655.0, 1431.0] | [741, 746] |
p03210 | u607563136 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['from itertools import product\n\nn = input()\n\nif int(n) < 100:\n print(0)\n \nans = 0\n \nfor i in range(3,len(n)+1):\n s = list(product("753",repeat=i))\n for combi in s:\n n_s = "".join(combi)\n if int(n_s) >= int(n):\n continue\n if ("7" in combi) and ("5" in combi) and ("3" in combi):\n ans += 1\n \nprint(ans)\n', 'x = int(input())\n\nif (x == 3) or (x == 5) or (x == 7):\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s608588164', 's122479539'] | [9044.0, 9148.0] | [31.0, 27.0] | [361, 93] |
p03210 | u612635771 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["a = int(input())\nif a == 3 | a == 5 | a == 7:\n print('YES')\nelse:\n Print('NO') ", "a = int(input())\nif a == 3 | a == 5 | a == 7:\n print('YES')\nelse:\n print('NO') ", 'N = int(input())\nprint("YES" if N in [3, 5, 7] else "NO")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s739378375', 's882288250', 's510369845'] | [2940.0, 2940.0, 9072.0] | [17.0, 17.0, 26.0] | [82, 82, 57] |
p03210 | u612636296 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['X = int(input())\nif X == 7 or X == 5 or X == 3:\n print("Yes")\nelse:\n print("No")\n', 'X = int(input())\nif X == 7 or X == 5 or X == 3:\n print("YES")\nelse:\n print("NO")\n'] | ['Wrong Answer', 'Accepted'] | ['s614746269', 's435015259'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 87] |
p03210 | u614964888 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['o=int(input())\n\nif o==3 or o==5 or o==7 :\n print("Yes")\nelse :\n print("No")\n ', 'o=int(input())\n\nif o==3 or o==5 or o==7 :\n print("YES")\nelse :\n print("NO")\n '] | ['Wrong Answer', 'Accepted'] | ['s075259086', 's939542627'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 86] |
p03210 | u617037231 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["X = int(input())\nif X == 3 or X == 5 or X == 7:\n print('Yes')\nelse:\n print('No')", "X = int(input())\nif X == 3 or X == 5 or X == 7:\n print('YES')\nelse:\n print('NO')\n"] | ['Wrong Answer', 'Accepted'] | ['s138435607', 's907206058'] | [3064.0, 2940.0] | [17.0, 17.0] | [82, 83] |
p03210 | u619819312 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['print("YES"if int(input())==(3 or 5 or 7)else"NO")', 's=[3,5,7]\nprint("YES"if s.count(int(input()))>0 else"NO")'] | ['Wrong Answer', 'Accepted'] | ['s529368253', 's984966362'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 57] |
p03210 | u620866522 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['n=int(input())\nd=dict()\nfor m in range(1,n+1):\n while m>1:\n for i in range(2,int(m**0.5)+1):\n if m%i==0:break\n else:i=m\n d[i]=d.get(i,0)+1\n m/=i\ndef num(n):\n return len(list(filter(lambda x:x>=n,d.values())))\n\nprint(num(74)+ num(24)*(num(2)-1)+ num(14)*(num(4)-1)+ num(4)*(num(4)-1)*(num(2)-2)//2)', 'x = int(input())\ny = x\na = []\nwhile y:\n a.append(y%10)\n y = y//10\na.reverse()\nif len(a)<=3:\n print(abs(x-753))\nelse:\n ans = 1000000\n ll = len(a)\n for i in range(0,ll-2):\n ans=min(ans,abs(a[i]*100+a[i+1]*10+a[i+2]-753))\n #print(a[i]*100+a[i+1]*10+a[i+2])\n print(ans)', 'n = int(input())\na = []\n\ndef judge(x):\n y = x\n for i in range(2,x):\n kk = y % i\n if i*i > x:\n return 1\n if kk == 0:\n return 0\n return 1\n\ndef solve(prime,x):\n cnt = 0\n while x:\n cnt += x//prime\n x //= prime\n return cnt\n\nfor i in range(2,n):\n if judge(i):\n a.append(i)\nans = 0\nif n <= 3:\n ans = 0\nelse:\n ll = len(a)\n a2 = 0\n a4 = 0\n a14 = 0\n a24 = 0\n a74 = 0\n for i in range(ll):\n kk = solve(a[i],n)\n if kk >=2:\n a2 += 1\n if kk >=4:\n a4 += 1\n if kk >=14:\n a14 += 1\n if kk >=24:\n a24 += 1\n if kk >=74:\n a74 += 1\n print(a4*(a4-1)//2*(a2-2)+a14*(a4-1)+a24*(a2-1)+a74)', 'n = int(input())\na = []\n\ndef judge(x):\n y = x\n for i in range(2,x):\n kk = y % i\n if i*i > x:\n return 1\n if kk == 0:\n return 0\n return 1\n\ndef solve(prime,x):\n cnt = 0\n while x:\n cnt += x//prime\n x //= prime\n return cnt\n\nfor i in range(2,n):\n if judge(i):\n a.append(i)\nans = 0\nif n < 3:\n ans = 0\nelse:\n ll = len(a)\n a2 = 0\n a4 = 0\n a14 = 0\n a24 = 0\n a74 = 0\n for i in range(ll):\n kk = solve(a[i],n)\n if kk >=2:\n a2 += 1\n if kk >=4:\n a4 += 1\n if kk >=14:\n a14 += 1\n if kk >=24:\n a24 += 1\n if kk >=74:\n a74 += 1\n print(a4*(a4-1)//2*(a2-2)+a14*(a4-1)+a24*(a2-1)+a74)', 'x = int(input())\nif x in [3,5,7]:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s267926071', 's449131736', 's943146161', 's996096357', 's571865848'] | [3188.0, 3064.0, 3064.0, 3064.0, 2940.0] | [18.0, 17.0, 18.0, 18.0, 17.0] | [342, 301, 771, 770, 72] |
p03210 | u623601489 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x=input();print(["NO","YES"][x in ["3","5","7"])', 'print(["NO","YES"][input()in["357"]])', 'print(["NO","YES"][input()in"357"])'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s323879495', 's465959932', 's422300794'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [48, 37, 35] |
p03210 | u626468554 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['#n = int(input())\n#n,k = map(int,input().split())\n#x = list(map(int,input().split()))\n\n\nx = int(input())\n\nif x==7 or x==5 or x==3:\n print("Yes")\nelse:\n print("No")', 'li = [7,5,3]\nx = int(input())\nif x in li:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s865742976', 's830107337'] | [2940.0, 2940.0] | [17.0, 18.0] | [169, 80] |
p03210 | u627691992 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['X = input()\n\nprint("Yes" if (X in "753") else "NO")\n\n', 'X = input()\n\nprint("YES" if (X in "753") else "NO")\n\n'] | ['Wrong Answer', 'Accepted'] | ['s119442753', 's798472796'] | [8940.0, 8968.0] | [26.0, 30.0] | [53, 53] |
p03210 | u628583308 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['#coding:utf-8\n\nS = input()\n\nminimal_value = 10000\nfor i in range(len(S) - 2):\n candidate = int(S[i:i + 3])\n minimal_value = min(abs(753 - candidate), minimal_value)\n\nprint(minimal_value)\n', "#coding:utf-8\n\nN = input()\n\nif N == '7' or N == '5' or N == '3':\n print('YES')\nelse:\n print('NO')\n"] | ['Wrong Answer', 'Accepted'] | ['s419653394', 's108850693'] | [2940.0, 2940.0] | [17.0, 20.0] | [193, 104] |
p03210 | u633684453 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x=int(input())\nif x==3 or x==5 or x==7:\n\tprint("YES:)\nelse:\n\tprint("NO")', 'x=int(input())\nif x==3 or x==5 or x==7:\n\tprint("YES")\nelse:\n\tprint("NO")'] | ['Runtime Error', 'Accepted'] | ['s929192326', 's688130864'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 72] |
p03210 | u634046173 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['S = input()\nmi = 9999999\nfor i in range(len(S) - 2):\n mi = min(mi, abs(753 - int(S[i]+S[i+1]+S[i+2])))\nprint(mi)', "print('YES' if int(input()) in [7, 5, 3] else 'NO')"] | ['Wrong Answer', 'Accepted'] | ['s866811616', 's484677207'] | [2940.0, 2940.0] | [17.0, 18.0] | [113, 51] |
p03210 | u634159866 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["X = int(input())\n\nif X==3 or X==5 or X==7:\n print('Yes')\nelse:\n print('No')", "X = int(input())\n\nif X==3 or X==5 or X==7:\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Accepted'] | ['s477448717', 's583608567'] | [2940.0, 2940.0] | [19.0, 17.0] | [81, 81] |
p03210 | u634461820 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['N = int(input())\nif N == 3 or N == 5 or N == 7:\n print("Yes")\nelse:\n print("No")\n\nprint(N)\n', 'N = int(input())\nif N == 3 or N == 5 or N == 7:\n print("YES")\nelse:\n print("NO")\n\nprint(N)\n', 'N = input()\nif N==3 or N==5 or N==7:\n print("Yes")\nelse:\n print("No")\n', 'N = int(input())\nif N == 3 or N == 5 or N == 7:\n print("YES")\nelse:\n print("NO")\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s273353431', 's291185960', 's893106834', 's035953756'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [97, 97, 76, 87] |
p03210 | u639104973 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["X=int(input())\nprint('Yes' if X==7 or X==5 or X==3 else 'No')", "X=int(input())\nprint('YES' if X==7 or X==5 or X==3 else 'NO')"] | ['Wrong Answer', 'Accepted'] | ['s999445937', 's371130218'] | [2940.0, 2940.0] | [17.0, 19.0] | [61, 61] |
p03210 | u640800355 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["x=input()\nif x==7 or x==5 or x==3:\n print('YES')\nelse:\n print('NO')", "x=int(input())\nif x==7 or x==5 or x==3:\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Accepted'] | ['s488852165', 's463798853'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 78] |
p03210 | u641460756 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['X=int(input())\nif X==7 or X==5 or X==3:\n print("Yes")\nelse:\n print("No")', 'x=int(input())\nif x==7 or x==5 or x==3:\n print("Yes")\nelse:\n print("No")', 'X=int(input())\nif X==7 or X==5 or X==3:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s560338141', 's628821875', 's275205107'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [78, 78, 78] |
p03210 | u642587369 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["n = int(input())\nif n == 7 or n == 5 or n==3:\n print('YES')\nelse\n print('NO')", "n = int(input())\nif n == 7 or n == 5 or n==3:\n print('YES')\nelse:\n print('NO')"] | ['Runtime Error', 'Accepted'] | ['s962859943', 's151825734'] | [2940.0, 2940.0] | [18.0, 18.0] | [79, 80] |
p03210 | u643714578 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['\nprint("YES" if int(input() in [7,5,3] else "NO")', 'print("YES" if int(input()) in [7,5,3] else "NO")'] | ['Runtime Error', 'Accepted'] | ['s579357589', 's736822857'] | [2940.0, 2940.0] | [17.0, 17.0] | [49, 49] |
p03210 | u644819500 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["takahashi_kun = X\n\nif X == 3:\n print('YES')\nelif X == 5:\n print('YES')\nelif X == 7:\n print('YES')\nelse:\n print('NO')", "X = int(input())\n\nif X == 3:\n print('YES')\nelif X == 5:\n print('YES')\nelif X == 7:\n print('YES')\nelse:\n print('NO')"] | ['Runtime Error', 'Accepted'] | ['s942428900', 's782522015'] | [2940.0, 2940.0] | [18.0, 18.0] | [128, 127] |
p03210 | u645568816 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['N = int(input())\nif N==3 || N==5 || N==7:\n print "YES"\nelse:\n print"NO"', 'N = int(input())\nif N ==3 or N==5 or N==7:\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Accepted'] | ['s063016351', 's226014074'] | [9012.0, 9120.0] | [20.0, 31.0] | [73, 81] |
p03210 | u648212584 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['X = int(input())\n\nif X == 3 or X == 5 or X == 7:\n print("Yes")\nelse:\n print("No")', 'X = int(input())\n\nif X == 3 or X == 5 or X == 7:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s507946184', 's324046913'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 83] |
p03210 | u652569315 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["x=int(input())\nif x==3 or x==5 or x==7:\n print('Yes')\nelse:\n print('No')", "x=int(input())\nif x==3 or x==5 or x==7:\n print('YES')\nelse:\n print('NO')\n"] | ['Wrong Answer', 'Accepted'] | ['s038190852', 's478984724'] | [3060.0, 2940.0] | [17.0, 17.0] | [74, 75] |
p03210 | u652656291 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["X = int(input())\nif X == 7 or X == 5 or X == 3:\n print('Yes')\nelse:\n print('No')", "X = int(input())\nif X == 7 or X == 5 or X == 3:\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Accepted'] | ['s309866703', 's809669318'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 82] |
p03210 | u657454538 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['input = raw_input()\n\nif(input>9):\n print("error")\nelif(input == 3 or input == 5 or input == 7):\n print("YES")\nelse:\n print("NO")', '\ninp = input()\n\nif inp == "3" or inp == "5" or inp == "7" :\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Accepted'] | ['s684568982', 's194560601'] | [2940.0, 2940.0] | [17.0, 17.0] | [137, 98] |
p03210 | u659640418 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['a=int(input())\nif a=3 or a=5 or a=7:\n print("YES")\nelse:\n print("NO ")', 'a=int(input())\nif a==3 or a==5 or a==7:\n print("YES")\nelse:\n print("NO ")'] | ['Runtime Error', 'Accepted'] | ['s540394605', 's757184652'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 79] |
p03210 | u661780649 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["X = input()\nif X in (7,5,3):\n print('YES')\nelse:\n print('NO')", "X = int(input())\nif X in (7, 5, 3):\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Accepted'] | ['s289734294', 's616705617'] | [2940.0, 2940.0] | [18.0, 18.0] | [67, 74] |
p03210 | u663014688 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['S = input()\nl = []\nfor i in range(len(S) - 2):\n num = abs(int(S[i:i+3]) - 753)\n l.append(num)\nprint(min(l))', 'X = int(input())\n\nif(X == 3):\n print("YES")\nelif(X == 5):\n print("YES")\nelif(X == 7):\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Accepted'] | ['s948232705', 's595986105'] | [2940.0, 2940.0] | [17.0, 17.0] | [113, 130] |
p03210 | u666844906 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["X = int(input(N))\nif X == 7 or X == 5 or X == 3:\n print('YES')\nelse:\n print('NO')", "X = int(input())\nif X == 7 or X == 5 or X == 3:\n print('YES')\nelse:\n print('NO')"] | ['Runtime Error', 'Accepted'] | ['s063863180', 's861054720'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 82] |
p03210 | u667694979 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x=int(input())\n\nif x==7 or x==5 or x==3:\n print("Yes")\nelse:\n print("No")', 'x=int(input())\n\nif x==7 or x==5 or x==3:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s288785312', 's796093978'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 75] |
p03210 | u668705838 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['X = int(input())\nif x==3 or x==5 or x==7:\n print("YES")\nelse:\n print("NO")', 'X = int(input())\nif X==3 or X==5 or X==7:\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Accepted'] | ['s611589300', 's911384645'] | [3064.0, 2940.0] | [18.0, 19.0] | [76, 76] |
p03210 | u669173971 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["x=int(input())\nif x==7 or x==5 or x==3:\n print('Yes')\nelse:\n print('No')", "x=int(input())\nif x==7 or x==5 or x==3:\n print('YES')\nelse:\n print('NO')\n"] | ['Wrong Answer', 'Accepted'] | ['s573073784', 's019113748'] | [3064.0, 2940.0] | [17.0, 17.0] | [74, 75] |
p03210 | u669382434 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x=input()\n["NO","YES"][x=="3" or x=="5" or x=="7"]', 's=input()\nans=999\nfor i in range(len(s)-2):\n ans=min(abs(753-int(s[i:i+3])),ans)\nprint(ans)', 'x=input()\nprint(["NO","YES"][x=="3" or x=="5" or x=="7"])'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s085739992', 's216097346', 's571261582'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [50, 92, 57] |
p03210 | u670961163 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['n = int(input())\nif n==7 or n==5 or n=3:\n print("YES")\nelse:\n print("NO")', 'n = int(input())\nif n==7 or n==5 or n==3:\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Accepted'] | ['s934392620', 's054307217'] | [8928.0, 9048.0] | [28.0, 30.0] | [75, 76] |
p03210 | u672898046 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['n = int(input)\na = [7, 5, 3]\nif n in a:\n print("YES")\nelse:\n print("NO")', 'n = int(input())\na = [7, 5, 3]\nif n in a:\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Accepted'] | ['s811319710', 's805661892'] | [2940.0, 2940.0] | [17.0, 18.0] | [74, 76] |
p03210 | u673173160 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["x = int(input())\nif x == 5 or x == 7 or x == 3:\n print('Yes')\nelse:\n print('No')", "x = int(input())\nif x == 5 or x == 7 or x == 3:\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Accepted'] | ['s092686645', 's611325899'] | [2940.0, 2940.0] | [17.0, 18.0] | [86, 86] |
p03210 | u673338219 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x = int(input())\nif any(x==3,x==5,x==7):\n print("YES")\nelse:\n print("NO")\n ', 'x = int(input())\nif any([x==3,x==5,x==7]):\n print("YES")\nelse:\n print("NO")\n '] | ['Runtime Error', 'Accepted'] | ['s490865238', 's798159138'] | [2940.0, 2940.0] | [17.0, 18.0] | [78, 80] |
p03210 | u677121387 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x = int(input())\nli753 = [7,5,3]\n\nif x in li753:\n ans = "YeS"\nelse:\n ans = "NO"\n\nprint(ans)', 'x = int(input())\nli753 = [7,5,3]\n\nif x in li753:\n ans = "YES"\nelse:\n ans = "NO"\n\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s005494283', 's129636687'] | [2940.0, 2940.0] | [17.0, 18.0] | [97, 97] |
p03210 | u678167152 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["N = int(input())\n\ndef check():\n if N=3 or N=5 or N=7:\n return True\n return False\nif check():\n print('YES')\nelse:\n print('NO')", "N = int(input())\n\ndef check():\n if N==3 or N==5 or N==7:\n return True\n return False\nif check():\n print('YES')\nelse:\n print('NO')"] | ['Runtime Error', 'Accepted'] | ['s045974125', 's604741427'] | [2940.0, 2940.0] | [18.0, 18.0] | [144, 147] |
p03210 | u681110193 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["x=int(input())\nif x=3 or x=5 or x=7:\n print('YES')\nelse:\n print('NO')", "x=int(input())\nif x==3 or x==5 or x==7:\n print('YES')\nelse:\n print('NO')\n"] | ['Runtime Error', 'Accepted'] | ['s961677431', 's489925426'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 75] |
p03210 | u681150536 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['def main():\n X = input()\n if X == 3 or X == 5 or X == 7:\n print("YES")\n else:\n print("NO")\n\n\nif __name__ == "__main__":\n main()\n', 'def main():\n X = int(input())\n if X == 3 or X == 5 or X == 7:\n print("YES")\n else:\n print("NO")\n\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s761555122', 's579353761'] | [2940.0, 2940.0] | [17.0, 17.0] | [154, 159] |
p03210 | u681444474 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x = int(input())\nif x = 3,5,7:\n print("YES")\nelse:\n print("NO")', 'x = int(input())\nif x == 3,5,7\n print("YES")\nelse:\n print("NO")', 'x = int(input())\nif x == 3 or x == 5 or x == 7:\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s125022902', 's935567877', 's415720155'] | [2940.0, 2940.0, 2940.0] | [16.0, 16.0, 17.0] | [65, 65, 82] |
p03210 | u682467216 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x = int(input())\nif x == (3 or 5 or 7):\n print("YES")\nelse:\n print("NO")\n', 'x = int(input())\nif x == 3 or x == 5 or x == 7:\n print("YES")\nelse:\n print("NO")\n'] | ['Wrong Answer', 'Accepted'] | ['s059613455', 's452592137'] | [2940.0, 3060.0] | [17.0, 19.0] | [75, 83] |
p03210 | u685510108 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['X = int(input())\n\nif X in [7, 5, 3]:\n print("Yes")\nelse:\n print("No")', 'X = int(input())\n\nif X in [7, 5, 3]:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s125560864', 's715853665'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 75] |
p03210 | u692514846 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x = int(input())\nif X==7 or X==5 or X==3:\n print("YES")\nelse:\n print("NO")', 'X = int(input())\nif X==7 or X==5 or X==3:\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Accepted'] | ['s292252178', 's662086088'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 80] |
p03210 | u698416089 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['if int(input()) in [7,5,3]:\n print("Yes")\nelse:\n print("No")', 'if int(input()) in [7,5,3]:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s592242877', 's243842878'] | [2940.0, 3064.0] | [17.0, 17.0] | [66, 66] |
p03210 | u698988260 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["X = int(input())\nc = [7, 5, 3]\nif X in c:\n print('Yes')\nelse:\n print('No')\n", "X = int(input())\nc = [7, 5, 3]\nif X in c:\n print('YES')\nelse:\n print('NO')\n"] | ['Wrong Answer', 'Accepted'] | ['s293020471', 's842424221'] | [2940.0, 2940.0] | [18.0, 17.0] | [81, 81] |
p03210 | u700138719 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['str1 = input()\n\nlen1 = len(str1)\ndiff = 999\n\nfor x in range (len1-2):\n num = int(str1[x:x+3])\n if abs(num-753) <diff:\n diff = abs(num-753)\nprint (diff)', "n = int (input())\n\nif n == 3 or n==5 or n==7:\n print ('YES')\nelse:\n print ('NO')\n"] | ['Wrong Answer', 'Accepted'] | ['s099968410', 's813503429'] | [2940.0, 2940.0] | [17.0, 17.0] | [164, 87] |
p03210 | u700929101 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x = int(input())\nif x = 3 or x = 5 or x = 7:\n print("YES")\nelse:\n print("NO")', 'x = int(input())\nif x == 3 or x == 5 or x == 7:\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Accepted'] | ['s555313060', 's829163887'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 86] |
p03210 | u702877716 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['q = input()\nx=100000\nfor i in range(len(q) - 2):\n\ty = abs(int(q[i:i+3]) - 753)\n\tif x > y :\n\t\tx = y\n\t\t\nprint(y)', "q = input('>')\n\nif q == '7' or q == '5' or q == '3' :\n\tprint('YES')\nelse:\n\tprint('NO')", 'q = input()\nx=100000\nfor i in range(len(q) - 2):\n\ty = abs(int(q[i:i+3]) - 753)\n\tif x > y :\n\t\tx = y\n\t\t\nprint(y)', "q = input()\n\nif q == '7' or q == '5' or q == '3':\n\tprint('YES')\nelse:\n\tprint('NO')"] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s510264311', 's886826983', 's983938636', 's552663695'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [110, 87, 110, 83] |
p03210 | u705418271 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x=int(input())\nif x==7 or x==5 or x==3:\n print("Yes")\nelse:\n print("No")', 'x=int(input())\nif x==7 or x==5 or x==3:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s781320483', 's274933644'] | [9060.0, 9044.0] | [27.0, 25.0] | [74, 74] |
p03210 | u706446745 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x = int(input())\n\nif x > 5:\n print("YES")\nelse:\n print("NO")\n', 'x = int(input())\n\nif x > 5:\n print("YES")\nelse:\n print("NO")', 'X = int(input())\n\nif X == 5:\n print("YES")\nelif X == 7:\n print("YES")\nelif X == 3:\n print("YES")\nelse:\n print("NO")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s151661835', 's489104063', 's665253179'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 22.0] | [63, 64, 124] |
p03210 | u709630872 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['s = input()\nn = len(s)\nbase = int(s)\nfor i in range(n-2):\n ans = int(s[i])*100 + int(s[i+1])*10 + int(s[i+2])\n if abs(753-base) > abs(753 - ans):\n base = ans\n print(base)\nprint(abs(753-base))', 's = input()\nn = len(s)\nbase = int(s)\nfor i in range(n-2):\n ans = int(s[i])*100 + int(s[i+1])*10 + int(s[i+2])\n if abs(753-base) > abs(753 - ans):\n base = ans\nprint(abs(753-base))', 'x = int(input())\nif (x==3 or x==5 or x==7) and x!=0:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s084609018', 's918110107', 's661714821'] | [3060.0, 3060.0, 3060.0] | [18.0, 17.0, 19.0] | [211, 191, 91] |
p03210 | u711622897 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x = int(input(\'age\'))\nif x ==3 or x== 5 or x == 7:\n print("YES")\nelse:\n print(\'NO\')\n', 'x = int(input())\nif x =3 or x= 5 or x = 7:\n print("YES")\nelse:\n print(\'NO\')\n', 'x = int(input())\nif x ==3 or x== 5 or x == 7:\n print("YES")\nelse:\n print(\'NO\')\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s533906599', 's781390203', 's013576569'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [86, 78, 81] |
p03210 | u712975113 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['S=input()\nprint(min(abs(int(S[i:i+3])-753) for i in range(len(S)-2)))', 'S=input()\nprint(min([abs(int(S[i:i+3])-753) for i in range(len(S)-2)]))', "X=int(input())\nif X==3 or X==5 or X==7:\n print('yes')\nelse:\n print('no')", "X=int(input())\nif X==3 or X==5 or X==7:\n print('YES')\nelse:\n print('NO')"] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s418796006', 's856067037', 's934783715', 's390921041'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0, 18.0] | [69, 71, 78, 78] |
p03210 | u719885994 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["a = input()\na = int(a)\n\nif a == 7 || a == 5 || a == 3:\n print('YES')\nelse:\n print('NO')\n", "a = input()\na = int(a)\n\nif a == 7 or a == 5 or a == 3:\n print('YES')\nelse:\n print('NO')\n"] | ['Runtime Error', 'Accepted'] | ['s377158950', 's978966480'] | [2940.0, 2940.0] | [17.0, 18.0] | [94, 94] |
p03210 | u720124072 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['s = input()\nnum = 9999\nfor i in range(len(s)-2):\n num = min(num, abs(int(s[i:i+3])-753))\nprint(num)', "x = int(input())\nif x == 3 or x == 5 or x == 7:\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Accepted'] | ['s003297081', 's016168136'] | [2940.0, 2940.0] | [17.0, 17.0] | [100, 82] |
p03210 | u721316601 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["x = int(input())\n\nif x in [3, 5, 7]:\n print('Yes')\nelse:\n print('No')", "x = int(input())\n\nif x in [3, 5, 7]:\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Accepted'] | ['s631392593', 's420435139'] | [2940.0, 2940.0] | [18.0, 17.0] | [75, 75] |
p03210 | u726615467 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['# encoding: utf-8\nN = int(input())\nif N == 7 or N == 5 or N == 3: print("Yes")\nelse: print("NO")', '# encoding: utf-8\nN = int(input())\nif N == 7 or N == 5 or N == 3: print("YES") \nelse: print("NO")\n'] | ['Wrong Answer', 'Accepted'] | ['s630793817', 's079835063'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 105] |
p03210 | u727148417 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['def main():\n x = int(input())\n ans = "NO"\n if (x == 7 or x == 5 or x == 3):\n ans = "YES"\n\n print(ans)\n\n\nif __name__ == \'__main__\':\n main()\n\x1a', 'def main():\n x = int(input())\n ans = "NO"\n if (x == 7 or x == 5 or x == 3):\n ans = "YES"\n\n print(ans)\n\nif __name__ == \'__main__\':\n main()'] | ['Runtime Error', 'Accepted'] | ['s454192816', 's529626369'] | [2940.0, 2940.0] | [18.0, 17.0] | [162, 159] |
p03210 | u729535891 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["x = int(input())\nprint('YES' if x == 3 and x == 5 and x == 7 else 'NO')", "x = int(input())\nprint('YES' if x == 3 or x == 5 or x == 7 else 'NO')"] | ['Wrong Answer', 'Accepted'] | ['s711912318', 's563924098'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 69] |
p03210 | u730318873 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["X = int(input())\nif X == 3,5,7:\n print('YES')\nelse:\n print('NO')", "X = int(input())\nif X == 3 or X == 5 or X ==7:\n print('YES')\nelse:\n print('NO')"] | ['Runtime Error', 'Accepted'] | ['s245971300', 's163357560'] | [2940.0, 3064.0] | [17.0, 17.0] | [66, 81] |
p03210 | u731362892 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x=input()\nx=int(x)\n\nif x==7:\n \tprint("Yes")\nelif x==5:\n \tprint("Yes")\nelif x==3:\n \tprint("Yes")\nelse:\n \tprint("No")', 'x=int(input())\n\nif x==7:\n \tprint("Yes")\nelif x==5:\n \tprint("Yes")\nelif x==3:\n \tprint("Yes")\nelse:\n \tprint("No"', 'w=int(input())\nif w==7:\n print("Yes")\nif w==5:\n print("Yes")\nif w==3:\n print("Yes")\nelse:\n print ("No")', "x=int(input())\n\nif x==7:\n \tprint('Yes')\nelif x==5:\n \tprint('Yes')\nelif x==3:\n \tprint('Yes')\nelse:\n \tprint('No')", 'x=input()\nx=int(x)\n\nif x==7:\n \tprint("Yes")\nif x==5:\n \tprint("Yes")\nif x==3:\n \tprint("Yes")\nelse:\n \tprint("No")\n ', 'x=int(input())\n\nif x==7:\n \tprint("Yes")\nelif x==5:\n \tprint("Yes")\nelif x==3:\n \tprint("Yes")\nelse:\n \tprint("No")', 'x=int(input())\n\nif x==7:\n \tprint("Yes")\nelif x==5:\n \tprint("Yes")\nelif x==3:\n \tprint("Yes")\nelse:\n \tprint("No")', "w=int(input())\nif w==7:\n print('Yes')\nif w==5:\n print('Yes')\nif w==3:\n print('Yes')\nelse:\n print ('No')", 'x=int(input())\n\nif x==7:\n \tprint("Yes")\nif x==5:\n \tprint("Yes")\nif x==3:\n \tprint("Yes")\nelse:\n \tprint("No")', "a = input()\na = int(a)\n\nif a == 7 or a == 5 or a == 3:\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s190721231', 's200796317', 's387833055', 's477583305', 's519614185', 's620081562', 's766819696', 's851317851', 's864783914', 's650508226'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 19.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [119, 114, 107, 115, 120, 115, 115, 107, 111, 93] |
p03210 | u732870425 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['n = int(input())\n\nif n == 7 , 5 ,3:\n print("YES")\nelse:\n print("NO")', 'n = int(input())\n\nif n in [7 , 5 ,3]:\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Accepted'] | ['s615414019', 's477353060'] | [2940.0, 2940.0] | [18.0, 18.0] | [70, 72] |
p03210 | u735069283 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["x=int(input())\nif x in [7,5,3]:\n print('Yes')\nelse:\n print('No')", "x=int(input())\nif x in [7,5,3]:\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Accepted'] | ['s596490809', 's566019424'] | [2940.0, 2940.0] | [17.0, 17.0] | [66, 66] |
p03210 | u736479342 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["x = input()\nprint('YES' if '357' in x else 'NO')", "x = input()\nprint('YES' if x in '357' else 'NO')"] | ['Wrong Answer', 'Accepted'] | ['s386715004', 's741797292'] | [8992.0, 8928.0] | [29.0, 24.0] | [48, 48] |
p03210 | u739955570 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["s=int(input());print('Yes'*(2<s%2*s<8)or'No')", "s=int(input());print('YES'*(2<s%2*s<8)or'NO')"] | ['Wrong Answer', 'Accepted'] | ['s355325458', 's159219441'] | [2940.0, 2940.0] | [17.0, 17.0] | [45, 45] |
p03210 | u742087517 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["age= int(input())\nif age==7 and 5 and 3:\n print('YES')\nelse:\n print('NO')", "age= int(input())\nif age=7 or 5 or 3:\n print('YES')\nelse:\n print('NO')", "age= int(input())\nif age== 7:\n print('YES')\nelif age== 5:\n print('YES')\nelif age== 3:\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s103669376', 's379563430', 's846427002'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [75, 72, 122] |
p03210 | u742897895 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['import itertools\n\nN = int(input())\nb = [False] * 101\nprime = []\nb[1] = True\n\nfor i in range(2, 101):\n if b[i]:\n continue\n k = i + i\n while k < 101:\n b[k] = True\n k += i\n\n prime.append(i)\n\np = [[0] * len(prime) for i in range(N + 1)]\n\nfor i in range(1, N + 1):\n n = i\n for j in range(len(prime)):\n while n % prime[j] == 0:\n p[i][j] += 1\n n //= prime[j]\n\npp = [0] * len(prime)\n\nfor i in range(len(prime)):\n for j in range(1, N + 1):\n pp[i] += p[j][i]\n\nans = 0\n\nfor x in pp:\n if x >= 74:\n ans += 1\n\nfor a in list(itertools.combinations(range(len(prime)), 2)):\n if pp[a[0]] >= 24 and pp[a[1]] >= 2:\n ans += 1\n if pp[a[0]] >= 2 and pp[a[1]] >= 24:\n ans += 1\n if pp[a[0]] >= 14 and pp[a[1]] >= 4:\n ans += 1\n if pp[a[0]] >= 4 and pp[a[1]] >= 14:\n ans += 1\n\nfor a in list(itertools.combinations(range(len(prime)), 3)):\n if pp[a[0]] >= 2 and pp[a[1]] >= 4 and pp[a[2]] >= 4:\n ans += 1\n if pp[a[0]] >= 4 and pp[a[1]] >= 2 and pp[a[2]] >= 4:\n ans += 1\n if pp[a[0]] >= 4 and pp[a[1]] >= 4 and pp[a[2]] >= 2:\n ans += 1\n\nprint(ans)', "x = int(input())\nif x == 3 or x == 5 or x == 7:\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Accepted'] | ['s084106008', 's647848957'] | [3192.0, 2940.0] | [19.0, 17.0] | [1175, 86] |
p03210 | u747873993 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['X=int(input())\nif X==3 or X==5 or X==7:\n print("Yes")\nelse:\n print("No")', 'X=int(input())\nif X==3 or X==5 or X==7:\n print("Yes")\nelse:\n print("No")', "X=int(input())\nif X==3 or X==5 or X==7:\n print('Yes')\nelse:\n print('No')", 'X = int(input())\n \nif X == 3 or X == 5 or X == 7: \n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s254442140', 's662046083', 's705517764', 's388975572'] | [3068.0, 2940.0, 2940.0, 2940.0] | [25.0, 17.0, 17.0, 17.0] | [78, 74, 78, 90] |
p03210 | u750058957 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['N = int(input())\nif N ==3 or N == 5 or N ==7:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nif N ==3 or N == 5 or N ==7:\n print("YES")\nelse:\n print("NO")\n'] | ['Wrong Answer', 'Accepted'] | ['s432573248', 's811989805'] | [9124.0, 9064.0] | [29.0, 26.0] | [80, 81] |
p03210 | u750389519 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["a=imput()\na=int(a)\n\nif a==7 or a==5 or a==3:\n print('YES')\n\nelse:\n print('NO')", "a=input()\na=int(a)\n\nif a==7 or a==5 or a==3:\n print('YES')\n\nelse:\n print('NO')\n"] | ['Runtime Error', 'Accepted'] | ['s603275186', 's226972430'] | [9028.0, 9160.0] | [23.0, 26.0] | [84, 85] |
p03210 | u750612138 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['X = input()\n\nresult = False\ntry:\n X = int(X)\nexcept:\n X = -1\n \n \nif X in (3, 5, 7):\n return "YES"\nreturn "NO"', 'X = input()\n\ntry:\n X = int(X)\nexcept:\n X = -1\n \nif X in (3, 5, 7):\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Accepted'] | ['s435200497', 's936644206'] | [2940.0, 2940.0] | [17.0, 17.0] | [114, 104] |
p03210 | u751900801 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["x = int(input())\nif x in [3, 5, 7]:\n print('Yes')\nelse:\n print('No')", "x = int(input())\nif x in [3, 5, 7]:\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Accepted'] | ['s958829551', 's226111167'] | [2940.0, 2940.0] | [17.0, 18.0] | [70, 70] |
p03210 | u752522099 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x = int(input)\nlis = [3,5,7]\n\nfor i in range(3):\n if x == lis[i]:\n print("Yes")\n else:\n print("No")', 'x = int(input())\nlis = [3,5,7]\n\nfor i in range(3):\n if x == lis[i]:\n print("Yes")\n else:\n print("No")', 'x = int(input())\nlis = [3,5,7]\n\n\nif x in lis:\n print("Yes")\nelse:\n print("No")', 'x = int(input())\nlis = [7,5,3]\n\n\nif x in lis:\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s484827940', 's725075106', 's898294281', 's275554080'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [119, 121, 84, 84] |
p03210 | u758475901 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['X = int(input())\nif X == 3 or X == 5 or X == 7:\n print("Yes")\nelse:\n print("No")', 'X = int(input())\nif X == 3 or X == 5 or X == 7:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s972921714', 's228605641'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 82] |
p03210 | u760360044 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x=input()\nif x==3 or x==5 or x==7:\n print("YES")\nelse:\n print("NO")', 'x=int(input())\nif x==3 or x==5 or x==7:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s331522253', 's970302510'] | [2940.0, 2940.0] | [17.0, 19.0] | [69, 74] |
p03210 | u760794812 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["n = int(input())\nif n in [3,5,7]:\n print('Yes')\nelse:\n print('No')", "n = int(input())\nif n in [3,5,7]:\n print('YES')\nelse:\n print('NO')"] | ['Wrong Answer', 'Accepted'] | ['s353324988', 's276359857'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 72] |
p03210 | u760831084 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["X = int(input())\n# print('Yes' if X == 7 or X == 5 or X == 3 else 'No')\nprint(['No', 'Yes'][[7, 5, 3].count(X)])", "X = int(input())\n# print('YES' if X == 7 or X == 5 or X == 3 else 'NO')\nprint(['NO', 'YES'][[7, 5, 3].count(X)])"] | ['Wrong Answer', 'Accepted'] | ['s014407901', 's766452099'] | [2940.0, 2940.0] | [17.0, 17.0] | [112, 112] |
p03210 | u761471989 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['def divisor_num(n):\n a = 1\n for _, x in factorization(n):\n a *= x + 1\n return a\n\ndef factorization(n):\n def factor_sub(n, m):\n c = 0\n while n % m == 0:\n c += 1\n n /= m\n return c, n\n buff = []\n c, m = factor_sub(n, 2)\n if c > 0: buff.append((2, c))\n c, m = factor_sub(m, 3)\n if c > 0: buff.append((3, c))\n x = 5\n while m >= x * x:\n c, m = factor_sub(m, x)\n if c > 0: buff.append((x, c))\n if x % 6 == 5:\n x += 2\n else:\n x += 4\n if m > 1: buff.append((m, 1))\n return buff\n\nN = int(input())\n\ncount = 0\nif 10 <= N:\n\n num = 1\n for i in range(2,N+1):\n num *= i\n num_array = []\n for i in range(1,num+1):\n if num % i == 0:\n num_array.append(i)\n\n for i in num_array:\n if divisor_num(i) == 75:\n count += 1\n\nprint(count)', 'z = int(input())\n\nif z == 3 or z == 5 or z == 7:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s766554427', 's022061251'] | [3064.0, 2940.0] | [20.0, 17.0] | [905, 87] |
p03210 | u763881112 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['n=int(input())\nif(3<=n<=7 and n%2==1):print("Yes")\nelse: print("No")', 'print("YES" if input() in "357" else "NO")'] | ['Wrong Answer', 'Accepted'] | ['s210153912', 's846369865'] | [2940.0, 2940.0] | [18.0, 17.0] | [68, 42] |
p03210 | u764956288 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["r = 'Yes' if int(input()) in [7,5,3] else 'No'\nprint(r)", "print(['NO','YES'][input()in'357'])"] | ['Wrong Answer', 'Accepted'] | ['s675584615', 's244517679'] | [2940.0, 2940.0] | [18.0, 18.0] | [55, 35] |
p03210 | u769411997 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["x = int(input())\nif x == 7 or x == 5 or x == 3:\n print('Yes')\n\nelse:\n print('No')\n", "x = int(input())\nif x == 7 or x == 5 or x == 3:\n print('Yes')\n\nelse:\n print('No')", "x = int(input())\nif x == 7 or x == 5 or x == 3:\n print('YES')\n\nelse:\n print('NO')\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s556759196', 's588360129', 's495043337'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 24.0] | [88, 87, 88] |
p03210 | u770828422 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['a = int(input())\nprint("Yes" if a == 3 or a == 5 or a == 7 else "No")', 'a = int(input())\nprint("Yes" if a == 3 or a == 5 or a == 7 else "No")', 'a = int(input())\nprint("YES" if a == 3 or a == 5 or a == 7 else "NO") # if a in (3, 5, 7) else'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s853806490', 's854022714', 's530047423'] | [2940.0, 3060.0, 2940.0] | [17.0, 19.0, 17.0] | [69, 69, 94] |
p03210 | u771406607 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ["X = int(input())\n\tif X in [7, 5, 3]:\n \tprint('YES')\n\telse:\n\t\tprint('NO')", "X = int(input())\n\tif X in [7, 5, 3]:\n \tprint('YES')\n\telse:\n\t\tprint('NO')\n", "X = int(input())\n\nif X in (3, 5, 7):\n print('YES')\nelse:\n print('NO')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s882936488', 's992757866', 's843134569'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [75, 76, 71] |
p03210 | u773246942 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['X = int(input())\nif X ==3 | X == 5| X==7:\n print("YES")\nelse:\n print("NO")\n', 'X = int(input())\nif X ==3 or X == 5 or X==7:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s858380407', 's148269167'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 79] |
p03210 | u773686010 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['N = str(input())\nN_List = ["3","5","7"]\nif N in N_List:\n print("Yes")\nelse:\n print("No")\n\n\n', 'N = str(input())\nN_List = ["3","5","7"]\nif N in N_List:\n print("YES")\nelse:\n print("NO")\n\n\n'] | ['Wrong Answer', 'Accepted'] | ['s850229025', 's214159732'] | [9004.0, 9004.0] | [28.0, 26.0] | [97, 97] |
p03210 | u774160580 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['X = int(input())\nif X == 7 or X == 5 or X == 3:\n print("YES")\nelse"\n print("NO")\n', 'X = int(input())\nif X == 7 or X == 5 or X == 3:\n print("YES")\nelse:\n print("NO")\n'] | ['Runtime Error', 'Accepted'] | ['s001825413', 's461210816'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 87] |
p03210 | u776929617 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['print("Yes" if input() in "357" else "No")', 'print("YES" if input() in "357" else "NO")'] | ['Wrong Answer', 'Accepted'] | ['s298388148', 's559384846'] | [2940.0, 2940.0] | [17.0, 18.0] | [42, 42] |
p03210 | u778668639 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['\nnum = input()\n\nif num == 5:\n print("YES") \n\nelif num == 7:\n print("YES") \n\nelif num == 3:\n print("YES") \n\nelse:\n print("NO")\n', '\nnum = int(input())\n\nif num == 5:\n print("YES") \n\nelif num == 7:\n print("YES") \n\nelif num == 3:\n print("YES") \n\nelse:\n print("NO")\n'] | ['Wrong Answer', 'Accepted'] | ['s499313664', 's605339500'] | [2940.0, 2940.0] | [18.0, 18.0] | [138, 143] |
p03210 | u783589546 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x = input()\nif x in "753":\n print("Yes")\nelse:\n print("No")', 'x = input()\nif x in "753":\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Accepted'] | ['s658890902', 's892670037'] | [2940.0, 2940.0] | [17.0, 18.0] | [61, 61] |
p03210 | u784849232 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['x=map(int,(input()))\nif x==3 or x==5 or x==7:\n print("YES")\nelse:\n print("NO")', 'x=map(int,(input().split()))\nif x==3 or x==5 or x==7:\n print("YES")\nelse:\n print("NO")', 'x=int(input())\nif x==3 or x==5 or x==7:\n print("YES")\nelse:\n print("NO")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s104484026', 's452606075', 's616270087'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [80, 88, 74] |
p03210 | u785578220 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['a = int(input())\nx = [3,5,7]\nif a in x:\n pritn("YES")\nelse:\n print("NO")', 'a=int(input())\nif a==3 or a==5 or a==7:\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Accepted'] | ['s524684486', 's591638689'] | [3060.0, 2940.0] | [19.0, 17.0] | [74, 74] |
p03210 | u785989355 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['X = int(raw_input())\nif X==3 or X==5 or X==7:\n print("Yes")\nelse:\n print("No")', 'X = int(raw_input())\nif X==3 or X==5 or X==7:\n print("YES")\nelse:\n print("NO")', 'X = int(input())\nif X==3 or X==5 or X==7:\n print("YES")\nelse:\n print("NO")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s595478084', 's983963168', 's335922266'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [84, 84, 80] |
p03210 | u788137651 | 2,000 | 1,048,576 | _Shichi-Go-San_ (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children. Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time? | ['#\n\n\n\n\n\n\n\n\n\n#\nimport sys\nsys.setrecursionlimit(10**6)\ninput=sys.stdin.readline\nfrom math import floor,sqrt,factorial,hypot,log \nfrom heapq import heappop, heappush, heappushpop\nfrom collections import Counter,defaultdict,deque\nfrom itertools import accumulate,permutations,combinations,product,combinations_with_replacement\nfrom bisect import bisect_left,bisect_right\nfrom copy import deepcopy\nfrom fractions import gcd\nfrom random import randint\ndef ceil(a,b): return (a+b-1)//b\ninf=float(\'inf\')\nmod = 10**9+7\ndef pprint(*A): \n for a in A: print(*a,sep=\'\\n\')\ndef INT_(n): return int(n)-1\ndef MI(): return map(int,input().split())\ndef MF(): return map(float, input().split())\ndef MI_(): return map(INT_,input().split())\ndef LI(): return list(MI())\ndef LI_(): return [int(x) - 1 for x in input().split()]\ndef LF(): return list(MF())\ndef LIN(n:int): return [I() for _ in range(n)]\ndef LLIN(n: int): return [LI() for _ in range(n)]\ndef LLIN_(n: int): return [LI_() for _ in range(n)]\ndef LLI(): return [list(map(int, l.split() )) for l in input()]\ndef I(): return int(input())\ndef F(): return float(input())\ndef ST(): return input().replace(\'\\n\', \'\')\ndef main():\n N=I()\n candidate = ["3","5","7"]\n for i in range(9):\n for c in candidate.copy():\n candidate.append(c+"3")\n candidate.append(c+"5")\n candidate.append(c+"7")\n \n ans = 0\n for c in candidate:\n if int(c)<=N and 0 not in (c.count("3"),c.count("5"),c.count("7")):\n ans += 1\n print(ans)\n\n\n\nif __name__ == \'__main__\':\n main()\n\n', 'n=int(input())\nprint(["NO","YES"][n in {3,5,7}])'] | ['Wrong Answer', 'Accepted'] | ['s973527540', 's098280320'] | [61500.0, 2940.0] | [304.0, 17.0] | [1781, 48] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.