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
|
|---|---|---|---|---|---|---|---|---|---|---|
p03285
|
u515952036
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\nans = "No"\n\nfor i in range(100):\n\tfor j in range(100):\n\t\tif i*7+j*4 == N:\n\t\t\tans = "Yes"\n\nprint(ans)', 'n = int(input())\nc = 4\nd = 7\n\nif n % c == 0:\n\tprint("Yes")\n\texit()\n\nif n % d == 0:\n\tprint("Yes")\n\texit()\n\nwhile n >= 0:\n\tif n >= d:\n\t\tn = n - d\n\telif c <= n and n < d:\n\t\tn = n - c\n\telif n < c:\n\t\tprint("No")\n\t\texit()\n\nprint("Yes")', 'N = int(input())\nans = "No"\n\nfor i in range(100):\n for j in range(100):\n if i*7+j*4==N:\n ans = "Yes"\n \nprint (ans)']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s471269193', 's841502555', 's940909972']
|
[2940.0, 3064.0, 2940.0]
|
[17.0, 17.0, 19.0]
|
[117, 229, 146]
|
p03285
|
u516272298
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\nfor i in range(25):\n for j in range(14):\n if n == 4*i + 7*j:\n print("Yes")\n break\nelse:\n print("No")', 'n = int(input())\nfor i in range(25):\n for j in range(14):\n if n == 4*i + 7*j:\n print("Yes")\n exit()\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s381464500', 's052604488']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[152, 153]
|
p03285
|
u518064858
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n=int(input())\nif n%11==0 or n%7==0 or n%4==0 or n%11==4 or n%7==4 n%11==7:\n print("Yes")\nelse:\n print("No")\n', 'n=int(input())\na=[]\nfor x in range(15):\n for y in range(26):\n a.append(x*7+y*4)\nif not n in a:\n print("No")\nelse:\n print("Yes)', 'n=int(input())\na=[]\nfor x in range(15):\n for y in range(26):\n a.append(x*7+y*4)\nif not n in a:\n print("No")\nelse:\n print("Yes")\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s236184198', 's846368698', 's165308868']
|
[2940.0, 2940.0, 2940.0]
|
[18.0, 18.0, 18.0]
|
[115, 142, 144]
|
p03285
|
u518556834
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\na = 0\nfor i in range(15):\n a = n - (7 * i )\n if a % 4 == 0 and a >= 0:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nx = 0\nc = 0\nd = N - 7 * x\nwhile d >= 0:\n if d % 4 == 0:\n c = 1\n break\n else:\n x += 1\nif c == 1:\n print("YES")\nelse:\n print("NO")\n', 'n = int(input())\na = 0\nfor i in range(15):\n a = n - 7*i \n if a % 4 == 0 and a >= 0:\n print("Yes")\nelse:\n print("No")\n ', 'n = int(input())\na = 0\nfor i in range(15):\n a = n - (7*i)\n if a % 4 == 0 and a >= 0:\n print("Yes")\n break\nelse:\n print("No")']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s060399351', 's789656785', 's819400255', 's446125168']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 2104.0, 17.0, 17.0]
|
[126, 159, 125, 133]
|
p03285
|
u525065967
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\n# x, r = divmod(n, 4+7)\nx, r = n//(4+7), n%(4+7)\ny = x + r//7\nprint(n,x,y,r)\nprint(n,4*x+7*y)\nans = "No"\nif x>0 or y>0:\n if n == 4*x + 7*y: ans = "Yes"\nprint(ans)\n', 'n = int(input())\nxmax, ymax = n//4, n//7\nok = False\nfor x in range(0, xmax+1):\n for y in range(0, ymax+1):\n if n == 4*x + 7*y:\n ok = True\n break\n if ok: break\nprint("Yes" if ok else "No")\n']
|
['Wrong Answer', 'Accepted']
|
['s792157700', 's773137041']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[183, 223]
|
p03285
|
u527261492
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n=int(input())\nfor i in range(26):\n for j in range(15):\n if 4*i+7*j==n:\n print('Yes')\nprint('No')", "import sys\nn=int(input())\nfor i in range(26):\n for j in range(15):\n if 4*i+7*j==n:\n print('Yes')\n sys.exit()\nprint('No')\n"]
|
['Wrong Answer', 'Accepted']
|
['s299731880', 's563049639']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[106, 135]
|
p03285
|
u527925554
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\n\ndef do():\n for i in range(0, N, 4):\n for j in range(0, N, 7):\n if i + j == N:\n print("YES")\n return\n print("NO")\n\ndo()', 'N = int(input())\n\ndef do():\n for i in range(0, N + 1, 4):\n for j in range(0, N + 1, 7):\n if i + j == N:\n print("Yes")\n return\n print("No")\n\ndo()']
|
['Wrong Answer', 'Accepted']
|
['s841967127', 's670719621']
|
[2940.0, 2940.0]
|
[18.0, 18.0]
|
[190, 198]
|
p03285
|
u528470578
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N = int(input())\n\nfor i in range(N+1):\n for j in range(N+1):\n if i*4 + j+7 == N:\n print('Yes')\n break\n exit()\nelse:\n print('No')", "N = int(input())\n\nfor i in range(26):\n for j in range(26):\n if i*4 + j+7 == N:\n print('Yes')\n break\n exit()\nelse:\n print('No')", "N = int(input())\n\nfor i in range(26):\n for j in range(26):\n if i*4 + j*7 == N:\n print('Yes')\n break\n exit()\nelse:\n print('No')", "import sys\nN = int(input())\n\nfor i in range(26):\n if (N - i*4) >= 0 and (N - i*4)%7 == 0:\n print('Yes')\n sys.exit()\nelse:\n print('No')"]
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s130972099', 's959503828', 's999955809', 's612084551']
|
[3060.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 18.0, 18.0, 17.0]
|
[174, 172, 172, 154]
|
p03285
|
u533017901
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n=int(input())\n\n\nans=False\n\nif n%7==0:\n ans=True\n\n\nfor i in range((int(n/7))):\n if (n-i*7)%4==0:\n ans=True\n \n\nif ans:\n print("Yes")\nelse:\n print("No") \n', 'n=int(input())\n#4\n#7\nans=False\nif n%7==0:\n ans==True\n\n\nfor i in range(n/7):\n if (n-i*7)%4==0:\n ans=True\n \n\nif ans:\n print("Yes")\nelse:\n print("No") \n', 'n=int(input())\n\n\nans=False\n\nif n%7==0:\n ans==True\n\n\nfor i in range((int(n/7))):\n if (n-i*7)%4==0:\n ans=True\n \n\nif ans==True:\n print("Yes")\nelse:\n print("No") \n', 'n=int(input())\n\n\nans=False\n\nif n%7==0:\n ans=True\n\n\nfor i in range((int(1+(n/7)))):\n \n if (n-i*7)%4==0:\n ans=True\n \n\nif ans:\n print("Yes")\nelse:\n print("No") \n']
|
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s365826626', 's644234557', 's779043404', 's820097554']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[181, 178, 188, 190]
|
p03285
|
u533482278
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\nif n%7 == 0 or n%4 == 0: \n print("Yes")\n exit()\n\nfor i in range(4,101,4):\n for j in range(7,101,7):\n if i*j < 100: break\n if i*j == n:\n print("Yes")\n exit()\nprint("No")\n', 'n = int(input())\nfor i in range(4,101,4):\n for j in range(7,101,7):\n if i*j == n or i == n or j == n:\n print("Yes")\n exit()\nprint("No")\n', 'n = int(input())\nif n%7 == 0 or n%4 == 0: \n print("Yes")\n exit()\n\nfor i in range(4,101,4):\n for j in range(7,101,7):\n if i*j > 100: break\n if i*j == n:\n print("Yes")\n exit()\nprint("No")\n', 'n = int(input())\nif n%7 == 0 or n%4 == 0:\n print("Yes")\n exit()\n\nfor i in range(4,101,4):\n for j in range(7,101,7):\n if i+j > 100: break\n if i+j == n:\n print("Yes")\n exit()\nprint("No")']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s033382111', 's512110630', 's828803476', 's058348689']
|
[2940.0, 2940.0, 3060.0, 3060.0]
|
[18.0, 18.0, 21.0, 17.0]
|
[231, 168, 231, 229]
|
p03285
|
u538739837
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n=int(input())\nfor i in range(n/4):\n for j in range(n/7):\n if(i*4+j*7==n):\n flag=True\n\nif(flag==True):\n print("Yes")\nelse:\n print("No")\n', 'n=int(input())\nflag=False\nfor i in range(int(n/4)+1):\n for j in range(int(n/7)+1):\n if(i*4+j*7==n):\n flag=True\n\nif(flag==True):\n print("Yes")\nelse:\n print("No")\n']
|
['Runtime Error', 'Accepted']
|
['s909276073', 's968718634']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[163, 188]
|
p03285
|
u538956308
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\na = N//4\nb = N//7\nfor i in range(a+1):\n for l in range(b+1):\n if 4*i+7*l == 11:\n print("Yes")\n break\n else:\n print("No")\n break', 'N = int(input())\na = N//4\nb = N//7\nfor i in range(a+1):\n for l in range(b+1):\n if 4*i+7*l == N:\n print("Yes")\n break\n else:\n print("No")\n break', 'N = int(input())\na = N//4\nb = N//7\nyes = 0\nno = 0\nfor i in range(a+1):\n for l in range(b+1):\n if 4*i+7*l == N:\n yes = 1\n else:\n no = 1\nif yes ==1:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s029480871', 's539296985', 's449153848']
|
[3064.0, 2940.0, 3060.0]
|
[17.0, 18.0, 17.0]
|
[171, 170, 198]
|
p03285
|
u546198000
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N = int(input())\na = N//7\nb = N//4\nfor i in range(a):\n for j in range(b):\n if 7*i+4*j == N:\n print('Yes')\n exit()\nprint('No')", "N = int(input())\na = N//7\nb = N//4\nprint(a)\nprint(b)\nfor i in range(a+1):\n for j in range(b+1):\n if 7*i+4*j == N:\n print('Yes')\n exit()\nprint('No')", "N = int(input())\na = N//7\nb = N//4\nfor i in range(a+1):\n for j in range(b+1):\n if 7*i+4*j == N:\n print('Yes')\n exit()\nprint('No')"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s563832578', 's986276552', 's267865450']
|
[9108.0, 9172.0, 9076.0]
|
[29.0, 26.0, 30.0]
|
[157, 179, 161]
|
p03285
|
u549161102
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N = int(input())\nfmax = int(N/4)\nsmax = int(N/7)\nfor i in range(fmax +1):\n for j in range(smax + 1):\n\tif (4*i + 7*j) == N:\n\t print('Yes')\n\t exit()\nprint('No')\n", 'N = int(input())\nfmax = int(N/4)\nsmax = int(N/7)\nfor i in range(fmax +1):\n for j in range(smax + 1):\n\tif 4*i + 7*j == N:\n\t print("Yes")\n\t exit()\nprint("No")\n', 'N = int(input())\nfor i in range(N//4 + 1):\n for j in range(N//7 + 1):\n\tif 4*i + 7*j == N:\n\t print("Yes")\n\t break\nelse:\n print("No")', 'N = int(input())\nfor i in range(N//4 + 1):\n for j in range(N//7 + 1):\n\tif 4*i + 7*j == N:\n\t print("Yes")\n\t break\n else:\n continue\nelse:\n print("No")\n', "N = int(input())\nfmax = int(N/4)+1\nsmax = int(N/7)+1\nfor i in range(fmax +1):\n for j in range(smax + 1):\n\tif (4*i + 7*j) == N:\n\t print('Yes')\n\t exit()\nprint('No')\n", 'N = int(input())\nflag = False\nfor i in range(N//4 +1):\n for j in range(N//7 +1):\n\tif 4*i + 7*j == N:\n\t print("Yes")\n flag = True\n\t break\n\nif flag:\n break\nelse:\n print("No")', 'N = int(input())\nfor i in range(30):\n for j in range(30):\n\tif 4*i + 7*j == N:\n\t print("Yes")\n\t break\nprint("No")\n', 'N = int(input())\nfor i in range(26):\n for j in range(16):\n\tif 4*i + 7*j == N:\n\t print("Yes")\n\t break\n', 'N = int(input())\nfor i in range(26):\n for j in range(16):\n\tif 4*i + 7*j == N:\n\t print("Yes")\n\t break\nprint("No\')', 'N = int(input())\nfor i in range(N//4 +2):\n for j in range(N//7 + 2):\n\tif 4*i + 7*j == N:\n\t print("Yes")\n\t break\n else:\n continue\nelse:\n print("No")\n', 'N = int(input())\nfor i in range(round(N/4) + 2):\n for j in range(round(N/7) + 2):\n\tif 4*i + 7*j == N:\n\t print("Yes")\n\t break', "N = int(input())\nflag = False\nfor i in range(N//4 +1):\n for j in range(N//7 +1):\n\tif 4*i + 7*j == N:\n\t print('Yes')\n flag = True\n\t break\n\nif flag:\n break\nelse:\n print('No')\n", "N = int(input())\nfmax = int(N/4)+1\nsmax = int(N/7)+1\nfor i in range(fmax+1):\n for j in range(smax+1):\n if (4*i+7*j) == N:\n print('Yes')\n exit()\nprint('No')\n"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s111321212', 's125043620', 's161322981', 's231186004', 's542650422', 's565277984', 's592274041', 's656042928', 's658245023', 's878325451', 's889307679', 's910530925', 's788136140']
|
[2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 3064.0, 2940.0, 2940.0]
|
[17.0, 18.0, 17.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
|
[162, 160, 135, 157, 166, 182, 116, 104, 115, 156, 127, 183, 170]
|
p03285
|
u550895180
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["import sys\n\n\ndef solve(N):\n for i in range(26):\n for j in range(20):\n if 4*i + 7*j == N :\n return('Yes') \n else:\n return('No')\n\n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n return int(line)\n\ndef main():\n n = readQuestion()\n answer = solve(n)\n print(answer)\n \nif __name__ == '__main__':\n main()", "import sys\n\n\ndef solve(K) : #108-A\n x = K//2\n if K%2==0 :\n return x**2\n else :\n y = x+1\n return x*y\n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n return int(line)\n\ndef main():\n n = readQuestion()\n answer = solve(n)\n print(answer)\n \nif __name__ == '__main__':\n main()", "import sys\n\n\ndef solve(N):\n for i in range(100):\n for j in range(100):\n if 4*i + 7*j==N:\n return('Yes') \n else:\n return('No')\n\n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n return int(line)\n\ndef main():\n n = readQuestion()\n answer = solve(n)\n print(answer)\n \nif __name__ == '__main__':\n main()", "import sys\n\n\ndef solve(N):\n hantei = 0\n for i in range(26):\n for j in range(20):\n if 4*i + 7*j == N :\n hantei = 4*i + 7*j\n if hantei == N :\n return ('Yes')\n else :\n return('No')\n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n return int(line)\n\ndef main():\n n = readQuestion()\n answer = solve(n)\n print(answer)\n \nif __name__ == '__main__':\n main()"]
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s102811045', 's147788165', 's321000866', 's972052618']
|
[3064.0, 3060.0, 3064.0, 3060.0]
|
[17.0, 17.0, 17.0, 18.0]
|
[552, 492, 551, 599]
|
p03285
|
u559367141
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\nfor i in range(N//4):\n for j in range(N//7):\n if 4*i + 7*j == N:\n print("Yes")\n exit()\nprint("No")', 'N = int(input())\nfor i in range(N//4+1):\n for j in range(N//7+1):\n if 4*i + 7*j == N:\n print("Yes")\n exit()\nprint("No")']
|
['Wrong Answer', 'Accepted']
|
['s780204523', 's150999154']
|
[9072.0, 9116.0]
|
[30.0, 28.0]
|
[147, 151]
|
p03285
|
u563588763
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n = input()\nif n % 4 ==0 or n % 7 ==0:\n print('Yes')\n exit()\nfor i in range(n // 4 + 1):\n for j in range (n // + 1):\n if 4 * i + 7 * == n:\n print('Yes')\n exit()\nprint('No')", "n = input()\nif n % 4 ==0 or n % 7 ==0:\n print('Yes')\n exit()\nfor i in range(n // 4 + 1):\n for j in range (n // + 1):\n if 4 * i + 7 * j== n:\n print('Yes')\n exit()\nprint('No')", "n = int(input())\nif n % 4 ==0 or n % 7 ==0:\n print('Yes')\n exit()\nfor i in range(n // 4 + 1):\n for j in range (n // + 1):\n if 4 * i + 7 * j == n:\n print('Yes')\n exit()\nprint('No')"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s207645889', 's703081832', 's076012178']
|
[2940.0, 2940.0, 3064.0]
|
[21.0, 18.0, 17.0]
|
[210, 211, 217]
|
p03285
|
u571444155
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n = int(input())\n\nc = 0\n\nans = 'No'\nfor i in range(15):\n for j in range(26):\n c = 4 * j + 7 * i\n if n == c:\n ans = 'Yes'\n\nprint(ans)", "n = int(input())\n\nc = 0\n\nans = 'No'\nfor i in range(15):\n for j in range(26):\n c = 4 * j + 7 * i\n if n == c:\n ans = 'Yes'\n break\nprint(ans)", "n = int(input())\n\nc = 0\n\nans = 'No'\nfor i in range(15):\n for i in range(26):\n c = 4 * j + 7 * i\n if n == c:\n ans = 'Yes'\n\nprint(ans)", "n = int(input())\n\nc = 0\n\nans = 'No'\n\nfor i in range(15):\n for j in range(26):\n c = 4 * j + 7 * i\n if n == c:\n ans = 'Yes'\n break\nprint(ans)"]
|
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s012035222', 's224098559', 's538743994', 's863688258']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 18.0, 18.0]
|
[152, 165, 152, 178]
|
p03285
|
u572142121
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\nAns = 0\nfor x in range(N):\n for y in range(N):\n if 4*x+7*y == N:\n Ans += 1\nprint(Ans)', "N = int(input())\nfor x in range(N):\n for y in range(N):\n if 4*x+7*y == N:\n print('Yes')\n else:\n print('No')\n ", "N = int(input())\ncount = 0\nfor x in range(N):\n for y in range(N):\n if 4*x+7*y == N:\n count += 1\nif count > 0:\n print('Yes')\nelse:\n print('No')\n "]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s740323082', 's812467486', 's231326728']
|
[2940.0, 3572.0, 2940.0]
|
[18.0, 25.0, 18.0]
|
[111, 131, 160]
|
p03285
|
u575653048
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = input()\nm = (n // 7) * 7\nif m == n:\n print("Yes")\nelif m - n <= n // 7:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\nm = (n // 7) * 7\nif m == n:\n print("Yes")\nelif n == 4:\n print("Yes")\nelif n - m <= n // 7:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\nm = (n // 7) * 7\nprint(m)\nif m == n:\n print("Yes")\nelif n - m <= n // 7:\n print("Yes")\nelse:\n print("No")\n', 'n = int(input())\nm = (n // 7) * 7\nif m == n or n == 4 or n == 12 or n == 20:\n print("Yes")\nelif n - m <= n // 7:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\nm = [7 * i for i in range(15)]\nfor i in range(15):\n for j in range(26):\n m.append(m[i] + 4 * j)\nif n in set(m):\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s256703824', 's619141928', 's642837163', 's990692562', 's792193472']
|
[2940.0, 2940.0, 2940.0, 3064.0, 3064.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0]
|
[118, 153, 133, 155, 177]
|
p03285
|
u578378372
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n=int(input())\n\nflg=0\nfor i in range(0,n//4+1):\n for j in range(0,n//7+1):\n if(i*4+j*7==n):\n flg=1\n break\n else:\n continue\n break\n \nif(flg==1):\n print("YES")\nelse:\n print("NO")\n ', 'n=int(input())\n\nflg=0\nfor i in range(0,n//4+1):\n for j in range(0,n//7+1):\n if(i*4+j*7==n):\n flg=1\n break\n else:\n continue\n break\n \nif(flg==1):\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s523880892', 's248419909']
|
[3064.0, 3060.0]
|
[18.0, 17.0]
|
[201, 198]
|
p03285
|
u580362735
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N = int(input())\nflag = 0\nfor i in range(int(N/4)):\n for j in range(int(N/7)):\n if 4*i + 7*j == N:\n print('Yes')\n flag = 1\n break\nif flag == 0:\n print('No')", "N = int(input())\nflag = 0\nfor i in range((N//4)+1):\n for j in range((N//7)+1):\n if 4*i + 7*j == N: \n flag = 1\nif flag == 0:\n print('No')\nelse:\n print('Yes')"]
|
['Wrong Answer', 'Accepted']
|
['s158272422', 's391130315']
|
[2940.0, 2940.0]
|
[18.0, 18.0]
|
[176, 169]
|
p03285
|
u584529823
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\n\ncake_price = 4\ndonut_price = 7\nsum_price = 0\n\nflag = 0\ncake_num = 0\ndonut_num = 0\nwhile sum_price < N:\n while sum_price < N:\n sum_price = cake_price * cake_num + donut_price * donut_num\n donut_num += 1\n if sum_price == N:\n flag = 1\n cake_num += 1\n if sum_price == N:\n flag = 1\n \nif flag == 0:\n print("No")\nelse:\n print("Yes")', 'N = int(input())\n \nCAKE_PRICE = 4\nDONUT_PRICE = 7\n \nflag = 0\nfor cake_num in range(N//CAKE_PRICE + 1):\n for donut_num in range(N//DONUT_PRICE + 1):\n sum_price = CAKE_PRICE * cake_num + DONUT_PRICE * donut_num\n if sum_price == N:\n \t\tflag = 1\n \nif flag == 0:\n print("No")\nelse:\n print("Yes")']
|
['Wrong Answer', 'Accepted']
|
['s597162755', 's776419763']
|
[3064.0, 3060.0]
|
[17.0, 17.0]
|
[368, 301]
|
p03285
|
u587213169
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N=int(input())\n#number of cakes\nif all( (N - 4*i) % 7 != 0 for i in range(N/4)):\n print("No")\nelse:\n print("Yes")', 'N=int(input())\n#number of cakes\nif all( (N - 4*i) % 7 != 0 for i in range(N//4 + 1)):\n print("No")\nelse:\n print("Yes")']
|
['Runtime Error', 'Accepted']
|
['s358738539', 's057247236']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[119, 124]
|
p03285
|
u588526762
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N = int(input())\ncake = 4\ndonut = 7\nac = False\nfor i in range(25):\n for j in range(14):\n if N == (cake*i + donut*j):\n ac == True\n break\nif ac:\n print('Yes')\nelse:\n print('No')", "N = int(input())\ncake = 4\ndonut = 7\nac = False\nfor i in range(25):\n for j in range(14):\n if N == (cake*i + donut*j):\n ac = True\n break\nif ac:\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s400352711', 's559189386']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[213, 212]
|
p03285
|
u591855033
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\n\nflg = False\nfor i in range(100//4 + 1):\n for j in range(100//7 + 1):\n if i * 4 + j * 7 == n:\n flg = True\n break\nif flg:\n print("YES")\nelse:\n print("NO")', 'n = int(input())\n\nflg = False\nfor i in range(100//4 + 1):\n for j in range(100//7 + 1):\n if i * 4 + j * 7 == n:\n print("YES")\n exit(0)\n if flg:\n break\n\nprint("NO")\n\n', 'n = int(input())\n\nflg = False\nfor i in range(100//4 + 1):\n for j in range(100//7 + 1):\n if i * 4 + j * 7 == n:\n print("YES")\n exit(0)\n\nprint("NO")\n\n', 'n = int(input())\n\nflg = False\nfor i in range(100//4 + 1):\n for j in range(100//7 + 1):\n if i * 4 + j * 7 == n:\n print("Yes")\n exit(0)\n\nprint("No")\n\n']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s171268393', 's487635997', 's923397759', 's438509870']
|
[3060.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 20.0, 17.0, 17.0]
|
[208, 206, 180, 180]
|
p03285
|
u595205513
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\nok = 0\nfor i in range(n//7):\n for j in range(n//4):\n ans = 7*i + 4*j\n if ans == n:\n ok = 1\nif ok == 1:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\nok = 0\ni = 0\nwhile i <= n // 4:\n j = 0\n while j <= n // 7:\n if 4*i + 7*j == n:\n ok = 1\n j += 1\n i += 1\nif ok == 1:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s759915703', 's717082229']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[186, 204]
|
p03285
|
u595375942
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n = int(innput())\nf = 4\ns = 7\nfor i in range(30):\n f = f*i\n for j in range(30):\n s = s*j\n if n%s == 0 or n%f == 0 or n%(f+s)==0:\n print('Yes')\n quit()\n if n < f+s:\n break\nprint('No')", "n = int(innput())\nf = 4\ns = 7\nfor i in range(30):\n f = f*i\n for j in range(30):\n s = s*j\n if n%s == 0 or n%f == 0 or n%(f+s)==0:\n print('Yes')\n quit()\n \tif n < f+s:\n break\nprint('No')\n ", "n = int(input())\nfor i in range(100):\n for j in range(100):\n if 4*i+7*j == n:\n print('Yes')\n exit(0)\nprint('No')"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s519290655', 's862826702', 's926440043']
|
[2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 19.0]
|
[208, 215, 130]
|
p03285
|
u597455618
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\nfor i in range(15):\n for j in range(26):\n if 7*i + 4*j == n\n print("Yes")\n exit\n \nprint(No)', 'n = int(input())\nfor i in range(15):\n for j in range(26):\n if 7*i + 4*j == n\n print("Yes")\n exit \nprint("No")', 'n = int(input())\nflag = 0\nfor i in range(15):\n for j in range(26):\n if 7*i + 4*j == n:\n flag = 1\n exit\n\nif flag == 1:\n print("Yes")\nelse :\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s302215910', 's730529557', 's452608158']
|
[2940.0, 2940.0, 3060.0]
|
[17.0, 17.0, 17.0]
|
[127, 123, 167]
|
p03285
|
u598009172
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\na = N//7\nAA = [(N-7*i)%4 for i in range(a)]\nif 0 in AA:\n print("YES")\nelse:\n print("NO")\n', 'N = int(input())\na = N//7\nAA = [(N-7*i)%4 for i in range(a)]\nif 0 in AA:\n print("Yes")\nelse:\n print("No")\n', 'N = int(input())\na = N//7\nAA = [(N-7*i)%4 for i in range(a+1)]\nif 0 in AA:\n print("Yes")\nelse:\n print("No")\n']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s576580495', 's883971012', 's320169955']
|
[3064.0, 3064.0, 2940.0]
|
[22.0, 20.0, 17.0]
|
[112, 112, 114]
|
p03285
|
u599925824
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\nmultiple_4 = [x*4 for x in range(101) if x >= 1 and x <= 25]\nmultiple_7 = [x*7 for x in range(101) if x >= 1 and x <= 14]\nmultiple_4_7 = [x*4+7 for x in range(101) if x >= 1 and x <= 23]\nmultiple_7_4 = [x*7+4 for x in range(101) if x >= 1 and x <= 23]\ntmp = []\nfor i in range(10):\n for j in range(10):\n solve = (4*(i+1))+(7*(j+1))\n if solve <= 100:\n tmp.append(solve)\nmultiple_other = sorted(list(set(tmp)))\n if N in multiple_4 or N in multiple_7 or N in multiple_4_7 or N in multiple_7_4 or N in multiple_other:\n print("Yes")\n else:\n print("No")', 'N = int(input())\nmultiple_4 = [x*4 for x in range(101) if x >= 1 and x <= 25]\nmultiple_7 = [x*7 for x in range(101) if x >= 1 and x <= 14]\nmultiple_4_7 = [x*4+7 for x in range(101) if x >= 1 and x <= 23]\nmultiple_7_4 = [x*7+4 for x in range(101) if x >= 1 and x <= 23]\nif N in multiple_4 or N in multiple_7 or N in multiple_4_7 or N in multiple_7_4:\n print(N, "Yes")\n continue\nelse:\n print(N, "No")\n continue', 'N = int(input())\nmultiple_4 = [x*4 for x in range(101) if x >= 1 and x <= 25]\nmultiple_7 = [x*7 for x in range(101) if x >= 1 and x <= 14]\nmultiple_4_7 = [x*4+7 for x in range(101) if x >= 1 and x <= 23]\nmultiple_7_4 = [x*7+4 for x in range(101) if x >= 1 and x <= 23]\nif N in multiple_4 or N in multiple_7 or N in multiple_4_7 or N in multiple_7_4:\n print(N, "Yes")\nelse:\n print(N, "No")', 'N = int(input())\ntmp = []\nfor i in range(10):\n for j in range(10):\n solve = (4*(i+1))+(7*(j+1))\n if solve <= 100:\n tmp.append(solve)\nmultiples = sorted(list(set(tmp)))\nif N % 4 == 0 or N % 7 == 0 or N in multiples:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s037743143', 's628442008', 's870019454', 's703081855']
|
[3064.0, 3064.0, 3064.0, 3064.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[583, 412, 390, 261]
|
p03285
|
u600319862
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["def candd(n):\n count = 0\n for i in range(25):\n for s in range(15):\n answer = 4*i + s*15\n if answer == n:\n count +=1\n if count >0:\n print('Yes')\n else:\n print('No')\n\na = int(input())\ncandd(a)\n", "def candd(n):\n count = 0\n for i in range(25):\n for s in range(15):\n answer = 4*i + s*7\n if answer == n:\n count +=1\n if count >0:\n print('Yes')\n else:\n print('No')\n\na = int(input())\ncandd(a)\n"]
|
['Wrong Answer', 'Accepted']
|
['s718615116', 's109229402']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[221, 220]
|
p03285
|
u607075479
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n = int(input())\nif n % 4 == 0: print('Yes')\nelif n >= 7 && n % 4 == 3: print('Yes')\nelif n >= 14 && n % 4 == 2: print('Yes')\nelif n >= 21 && n % 4 == 1: print('Yes')\nelse: print('No')", "n = int(input())\nif n % 4 == 0: print('Yes')\nelif n >= 7 and n % 4 == 3: print('Yes')\nelif n >= 14 and n % 4 == 2: print('Yes')\nelif n >= 21 and n % 4 == 1: print('Yes')\nelse: print('No')"]
|
['Runtime Error', 'Accepted']
|
['s516027783', 's112090239']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[184, 187]
|
p03285
|
u607729897
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N=int(input())\nif N%4==0 or N%7==0:\n print('Yes')\nelif:\n while 0<N:\n N-=7\n if N%4:\n print('Yes')\n break\n else:\n print('No')\n\n", "N=int(input())\nif N%4==0 or N%7==0:\n print('Yes')\nelse:\n while 7<N:\n N-=7\n if N%4==0:\n print('Yes')\n break\n else:\n print('No')\n"]
|
['Runtime Error', 'Accepted']
|
['s916134139', 's470589181']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[147, 149]
|
p03285
|
u609814378
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\n\nans = 0\n\nfor i in range(100):\n for j in range(100):\n if (i*4) + (y*7) == N:\n ans = ans+1\n \n\nif ans==0:\n print("Yes")\nelse:\n print("No")\n', 'N = int(input())\n \nans = 0\n \nfor i in range(100):\n for j in range(100):\n if (i*4) + (y*7) == N:\n ans = ans+1\n \n \nif ans==0:\n print("Yes")\nelse:\n print("No")', 'N = int(input)\n\nans = 0\n\nfor i in range(100):\n for j in range(100):\n if (i*4) + (y*7) == N:\n ans = ans+1\n \n\nif ans==0:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\n \nans = 0\n \nfor i in range(100):\n for j in range(100):\n if (i*4) + (y*7) == N:\n ans = ans+1\n \n\nif ans == 0:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\n \nans = 0\n \nfor i in range(100):\n for j in range(100):\n if (i*4) + (y*7) == N:\n ans = ans+1\n \n\nif ans == 0:\n print("No")\nelse:\n print("Yes")', 'n=int(input())\nfor i in range(100):\n for j in range(100):\n if 4*i+7*j==n:\n print("Yes")\n exit(0)\nprint("No")']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s035381054', 's372521468', 's377826325', 's620424305', 's703975778', 's527529163']
|
[2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0, 19.0]
|
[192, 194, 189, 195, 195, 140]
|
p03285
|
u610473220
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = input()\nflag = False\nfor i in range(N//4 + 1):\n for j in range(N//7 + 1):\n if 4 * i + 7 * j == N:\n flag = True\n break\nif flag:\n print("Yes")\nelse:\n print("No")', 'N = input()\nflag = False\nfor i in range(N//4):\n for j in range(N//7):\n if 4 * i + 7 * j == N:\n flag = True\nif flag:\n print("Yes")\nelse:\n print("No")', 'N = input()\nflag = False\nfor i in range(N//4 + 1):\n for j in range(N//7 + 1):\n if 4 * i + 7 * j == N:\n flag = True\nif flag:\n print("Yes")\nelse:\n print("No")\n', 'N = int(input())\nflag = False\nfor i in range(N//4):\n for j in range(N//7):\n if 4 * i + 7 * j == N:\n flag = True\nif flag:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nflag = False\nfor i in range(N//4+1):\n for j in range(N//7+1):\n if 4 * i + 7 * j == N:\n flag = True\nif flag:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s134989571', 's412879110', 's834505678', 's850928876', 's952139064']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0]
|
[201, 175, 184, 180, 184]
|
p03285
|
u616382321
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N, K = map(int, input().split())\nh = list(map(int, input().split()))\n\nINF = 10**9\ndp = [INF] * (N + K)\ndp[0] = 0\nfor i in range(N):\n for k in range(1, K+1):\n if i + k >= N:\n break\n dp[i+k] = min(dp[i+k], dp[i] + abs(h[i]-h[i+k]))\nprint(dp[N-1])\n\n', "N = int(input())\nfor c4 in range(26):\n for c7 in range(16):\n c = 4*c4 + 7*c7\n if c == N:\n print('Yes')\n exit()\nprint('No')\n"]
|
['Runtime Error', 'Accepted']
|
['s213899338', 's076772796']
|
[9136.0, 9080.0]
|
[25.0, 28.0]
|
[274, 162]
|
p03285
|
u616522759
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N = int(input())\nflg = 0\nfor i in range(N//4):\n for j in range(N//7):\n if N == 4 * i + 7 * j:\n flg = 1\nif flg == 1:\n print('Yes')\nelse:\n print('No')", "N = int(input())\nflg = 0\nfor i in range(N//4 + 1):\n for j in range(N//7 + 1):\n if N == 4 * i + 7 * j:\n flg = 1\nif flg == 1:\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s147327449', 's892973449']
|
[2940.0, 2940.0]
|
[18.0, 19.0]
|
[175, 183]
|
p03285
|
u620846115
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = input()\nfor i in range(1,25):\n for j in range(1,15):\n if i*4+j*7==n:\n print("Yes")\n exit()\nprint("No")', 'n = input()\nfor i in range(0,25):\n for j in range(0,15):\n if i*4+j*7==n:\n print("Yes")\n exit()\nprint("No")', 'n = input()\nmlist = [i*4+j*7 for i in range(0,25) for j in range(0,15)]\nif n in mlist:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\nfor i in range(26):\n for j in range(15):\n if i*4+j*7==n:\n print("Yes")\n exit()\nprint("No")']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s418474750', 's634029709', 's717328129', 's477406090']
|
[9092.0, 9024.0, 8972.0, 9072.0]
|
[30.0, 25.0, 28.0, 27.0]
|
[120, 120, 121, 121]
|
p03285
|
u623065116
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\n\nc_max = N //4\nd_max = N //7\n\nfor i in range(c_max):\n for j in range(d_max):\n temp = 4*i + 7*j\n\n if temp == N:\n print("Yes")\n exit()\nprint("No")\n\n', 'N = int(input())\n\nc_max = N //4\nd_max = N //7\n\nfor i in range(c_max+1):\n for j in range(d_max+1):\n temp = 4*i + 7*j\n\n if temp == N:\n print("Yes")\n exit()\nprint("No")\n\n\n']
|
['Wrong Answer', 'Accepted']
|
['s337653194', 's489513641']
|
[2940.0, 3064.0]
|
[17.0, 17.0]
|
[202, 207]
|
p03285
|
u623601489
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n= int(input())\nif 4*(2n//7) -n>=0:\n print("Yes")\nelse:\n print("No")', 'n= int(input())\nif 4*(2*n//7) -n>=0:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s572112503', 's550074615']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[74, 75]
|
p03285
|
u627530854
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['PRICE_CAKE = 4\nPRICE_DOUGHNUT = 7\n\nn = int(input())\nmax_cakes = n // PRICE_CAKES\n\nvalid = False\nfor i in range(max_cakes + 1):\n n_left = n - i * PRICE_CAKE\n if n_left % PRICE_DOUGHNUT == 0:\n valid = True\n break\n \nprint("Yes" if valid else "No")', 'PRICE_CAKE = 4\nPRICE_DOUGHNUT = 7\n\nn = int(input())\nmax_cakes = n // PRICE_CAKE\n\nvalid = False\nfor i in range(max_cakes + 1):\n n_left = n - i * PRICE_CAKE\n if n_left % PRICE_DOUGHNUT == 0:\n valid = True\n break\n \nprint("Yes" if valid else "No")']
|
['Runtime Error', 'Accepted']
|
['s210749406', 's720356977']
|
[2940.0, 3060.0]
|
[17.0, 18.0]
|
[255, 254]
|
p03285
|
u628262476
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n = int(input())\nprint('YES' if n in [7,14,4,11,8,15,12,16] or n > 17 else 'No')", "n = int(input())\nprint('Yes' if n in [7,14,4,11,8,15,12,16] or n > 17 else 'No')"]
|
['Wrong Answer', 'Accepted']
|
['s367227204', 's755056645']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[80, 80]
|
p03285
|
u629276590
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n=int(input())\n\n\na=0\nfor i in\u3000range(0,26):\n for j in range(0,20):\n if 4*i+7*j==n:\n a+=1\n\n\nif a==0:\n print("N0")\nelse:\n print("Yes")\n', 'n=int(input())\n\n\na=0\nfor i in range(0,n):\n for j in range(0,n):\n if 4*i+7*j==n:\n a+=1\n\n\nif a==0:\n print("No")\nelse:\n print("Yes")\n ']
|
['Runtime Error', 'Accepted']
|
['s150597558', 's177133241']
|
[8932.0, 9008.0]
|
[25.0, 30.0]
|
[161, 169]
|
p03285
|
u633548583
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N=int(input())\nfor a in range(N//4+1):\n for b in range(N//7+1):\n if 4*a+7*b==N:\n print(Yes)\n exit()\n else:\n print(No)', "N=int(input())\nfor a in range(N//4+1):\n for b in range(N//7+1):\n if 4*a+7*b==N:\n print('Yes')\n exit()\n else:\n print('No')\n", 'N=int(input())\nfor a in range(N//4+1):\n for b in range(N//7+1):\n if 4*a+7*b==N:\n print(Yes)\n else:\n print(No)\n', 'N=int(input())\nfor a in range(N//4+1):\n for b in range(N//7+1):\n if 4*a+7*b==N:\n print(Yes)\n exit()\n else:\n print(No)\n', "N=int(input())\nfor a in range(N//4+1):\n for b in range(N//7+1):\n if 4*a+7*b==N:\n print('Yes')\n exit()\n \nprint('No')\n"]
|
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s096810512', 's434259106', 's664336887', 's693242065', 's320593040']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 18.0, 18.0, 18.0, 17.0]
|
[167, 172, 149, 164, 149]
|
p03285
|
u636822224
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n=int(input())\ncnt=0\nfor i in range(int(n/4)):\n for j in range(int(n/7)):\n if 4*1+7*j==n:\n cnt+=1\nprint(cnt)\n ', 'n=int(input())\ncnt=0\nfor i in range(int(n/4)+1):\n for j in range(int(n/7)+1):\n if 4*1+7*j==n:\n cnt+=1\nprint(cnt)', "n=int(input())\ncnt=0\nfor i in range(int(n/4)+1):\n for j in range(int(n/7)+1):\n if 4*i+7*j==n:\n cnt+=1\nif cnt==0:\n print('No')\nelse:\n print('Yes')"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s188747929', 's975045808', 's582013361']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[122, 121, 156]
|
p03285
|
u637175065
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools\n\nsys.setrecursionlimit(10**7)\ninf = 10**20\neps = 1.0 / 10**10\nmod = 10**9+7\ndd = [(-1,0),(0,1),(1,0),(0,-1)]\nddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]\n\ndef LI(): return [int(x) for x in sys.stdin.readline().split()]\ndef LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]\ndef LF(): return [float(x) for x in sys.stdin.readline().split()]\ndef LS(): return sys.stdin.readline().split()\ndef I(): return int(sys.stdin.readline())\ndef F(): return float(sys.stdin.readline())\ndef S(): return input()\ndef pf(s): return print(s, flush=True)\n\n\ndef main():\n d = [0] * 101\n for i in range(25):\n d[i*4] + 1\n for i in range(7,101):\n if d[i-7] == 1:\n d[i] = 1\n n = I()\n if d[n] == 1:\n return 'Yes'\n return 'No'\n\n\n\n\nprint(main())\n", "import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools\n\nsys.setrecursionlimit(10**7)\ninf = 10**20\neps = 1.0 / 10**10\nmod = 10**9+7\ndd = [(-1,0),(0,1),(1,0),(0,-1)]\nddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]\n\ndef LI(): return [int(x) for x in sys.stdin.readline().split()]\ndef LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]\ndef LF(): return [float(x) for x in sys.stdin.readline().split()]\ndef LS(): return sys.stdin.readline().split()\ndef I(): return int(sys.stdin.readline())\ndef F(): return float(sys.stdin.readline())\ndef S(): return input()\ndef pf(s): return print(s, flush=True)\n\n\ndef main():\n d = [0] * 101\n for i in range(25):\n d[i*4] = 1\n for i in range(7,101):\n if d[i-7] == 1:\n d[i] = 1\n n = I()\n if d[n] == 1:\n return 'Yes'\n return 'No'\n\n\n\n\nprint(main())\n"]
|
['Wrong Answer', 'Accepted']
|
['s636529307', 's027509934']
|
[5456.0, 5464.0]
|
[41.0, 41.0]
|
[900, 900]
|
p03285
|
u641722141
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\ncnt = 0\nfor i in range(30):\n for j in range(20):\n if n == 4 * i + 7 * j:\n print("Yes")\n break\nelse:\n print("No")\n', 'n = int(input())\nans = 0\nfor i in range(30):\n for j in range(20):\n if n == 4 * i + 7 * j:\n ans = 1\n if ans == 1:\n print("Yes")\n break\nelse:\n print("No")\n']
|
['Wrong Answer', 'Accepted']
|
['s762581143', 's938783172']
|
[2940.0, 3064.0]
|
[17.0, 17.0]
|
[165, 194]
|
p03285
|
u642418876
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n=int(input())\nfor i in range((n//4)+1):\n for j in range((n//7)+1):\n if n==4*i+7*j:\n print('Yes')\n else:\n print('No')\n ", "n=int(input())\nfor i in range((n//4)+1):\n for j in range((n//7)+1):\n if n==4*i+7*j:\n print('Yes')\n exit()\n print('No')\n ", "n=int(input())\nres=0\nfor i in range((n//4)+1):\n for j in range((n//7)+1):\n if n==4*i+7*j:\n res=1\nif res==1:\n print('Yes')\nelse:\n print('No')\n "]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s267803175', 's469447737', 's889314288']
|
[3060.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[141, 140, 154]
|
p03285
|
u652656291
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n = int(input())\na = n//4\nb = n//7\nans = 0\nfor i in range(a+1):\n for j in range(b+1):\n if 4*i+7*j == n:\n ans = 1\nif ans = 1:\n print('Yes')\nelse:\n print('No') \n", "n = int(input())\nfor i in range(n+1):\n for j in range(n+1):\n if 4*i+7*j == n:\n print('Yes')\n else:\n print('No')\n", "n = int(input())\nfor i in range(n):\n for j in range(n):\n if 3*(i+1)+7*(j+1) == n:\n print('Yes')\n else:\n print('No')", "n = int(input())\nfor i in range(1,n+1):\n for j in range(1,n+1):\n if 3*(i+1)+7*(j+1) == n:\n print('Yes')\n else:\n print('No')\n", "n = int(input())\nfor i in range(n):\n for j in range(n):\n if 3*i+7*j == n:\n print('Yes')\n else:\n print('No')", "n = int(input())\nfor i in range(n+1):\n for j in range(n+1):\n if 4*(i+1)+7*(j+1) == n:\n print('Yes')\n else:\n print('No')\n", "n = int(input())\nfor i in range():\n for j in range():\n if 3*(i+1)+7*(j+1) == n:\n print('Yes')\n else:\n print('No')\n", "n = int(input())\na = n//4\nb = n//7\nans = 0\nfor i in range(a+1):\n for j in range(b+1):\n if 4*i+7*j == n:\n ans = 1\nif ans == 1:\n print('Yes')\nelse:\n print('No') \n"]
|
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s070771238', 's221225003', 's322277448', 's368852082', 's671967430', 's732853119', 's753377492', 's738119020']
|
[2940.0, 3572.0, 3572.0, 3572.0, 3572.0, 3572.0, 2940.0, 3064.0]
|
[17.0, 24.0, 25.0, 25.0, 25.0, 26.0, 18.0, 17.0]
|
[189, 129, 132, 141, 124, 137, 131, 190]
|
p03285
|
u653837719
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['import sys\n\nn = int(input())\n\nfor i in range(n // 7):\n if (n - 7 * i) % 4 == 0:\n print("Yes")\n sys.exit()\nprint("No")\n', 'import sys\n\nn = int(input())\n\nfor i in range(n // 7 + 1):\n if (n - 7 * i) % 4 == 0:\n print("Yes")\n sys.exit()\nprint("No")\n']
|
['Wrong Answer', 'Accepted']
|
['s358834787', 's608211090']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[135, 139]
|
p03285
|
u657329920
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\nt = 0\nif N % 4 == 0 or N % 7 == 0:\n ans = "Yes"\nelse:\n t = 0\n for i in range(1,N//7):\n x = (N-7*i)/4\n if x == int(x):\n t += 1\n else:\n continue\n if t > 0:\n ans = "Yes"\n else:\n ans = "No"\nprint(ans)', 'N = int(input())\nt = 0\nif N % 4 == 0 or N % 7 == 0:\n ans = "Yes"\nelif N == 0:\n ans = "No"\nelse:\n t = 0\n for i in range(1,N//7):\n x = (N-7*i)/4\n if x == int(x):\n t += 1\n else:\n continue\n if t > 0:\n ans = "Yes"\n else:\n ans = "No"\nprint(ans)', 'N = int(input())\nt = 0\nif N % 4 == 0 or N % 7 == 0:\n ans = "Yes"\nelse:\n t = 0\n for i in range(1,(N//7)+1):\n x = (N-7*i)/4\n if x == int(x):\n t += 1\n else:\n continue\n if t > 0:\n ans = "Yes"\n else:\n ans = "No"\nprint(ans)']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s147461918', 's456699126', 's732168570']
|
[3060.0, 3064.0, 3060.0]
|
[17.0, 17.0, 18.0]
|
[243, 269, 247]
|
p03285
|
u663014688
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N = int(input())\n\nif N % 4 == 0:\n print('Yes')\n exit()\n\nif N % 7 == 0:\n print('Yes')\n exit\n\nif N % 11 == 0:\n print('Yes')\n\nprint('No')", "N = int(input())\n\ncake = 4\ndonut = 7\nflg = False\n\nfor cake_num in range(N // cake + 1):\n for donut_num in range(N // donut + 1):\n sum = cake * cake_num + donut * donut_num\n\n if sum == N:\n flg = True\n\nif flg:\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s962592529', 's154406818']
|
[2940.0, 3060.0]
|
[17.0, 17.0]
|
[149, 274]
|
p03285
|
u663861584
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\na = 4\nb = 7\ncount = 0\nfor i in range(0, (N // a) + 1):\n for j in range(0, (N // b) + 1):\n if a * i + b * j == N:\n count += 1\n else:\n pass\nprint(count)', "N = int(input())\na = 4\nb = 7\ncount = 0\nfor i in range(0, (N // a) + 1):\n for j in range(0, (N // b) + 1):\n if a * i + b * j == N:\n count += 1\n else:\n pass\n\nif count >= 1:\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s009992299', 's970934948']
|
[2940.0, 3060.0]
|
[17.0, 17.0]
|
[206, 248]
|
p03285
|
u664796535
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\n\nc, d = 4, 7\n\ndef test(n):\n\n if n < 4:\n return False\n\n if n == 4 or n == 7:\n return True\n else:\n return test(n - 4) or test(n - 7)', "N = int(input())\n\nc, d = 4, 7\n\ndef test(n):\n\n if n < 4:\n return False\n\n if n == 4 or n == 7:\n return True\n else:\n return test(n - 4) or test(n - 7)\n \nif test(N):\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s559792951', 's145478417']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[177, 233]
|
p03285
|
u673338219
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\na = [1,2,3,5,6,9,10,13,17]\nif n in a:\n print(No)\nelse:\n print(Yes)', 'n = int(input())\na = [1,2,3,5,6,9,10,13,17]\nif n in a:\n print("No")\nelse:\n print("Yes")']
|
['Runtime Error', 'Accepted']
|
['s597535865', 's327917568']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[85, 89]
|
p03285
|
u677312543
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n = int(input())\nfor i in range(26):\n for j in range(16):\n if i*$ + j*7 == n:\n print('Yes')\n exit()\n\nprint('No')", "n = int(input())\nfor i in range(26):\n for j in range(16):\n if i*$ + j*7 == n:\n print('Yes')\n exit()\n\nprint('No')", "n = int(input())\nfor i in range(26):\n for j in range(16):\n if i*4 + j*7 == n:\n print('Yes')\n exit()\n\nprint('No')"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s828364319', 's942269986', 's949892726']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 18.0, 17.0]
|
[144, 144, 144]
|
p03285
|
u684026548
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n = input()\n\nflag = False\n\nfor i in range(0, 26):\n for j in range(0, 15):\n if 4 * i + 7 * j == n:\n flag = True\n break\n if flag:\n break\n\nif flag:\n print('Yes')\nelse:\n print('No')\n", "n = int(input())\n\nflag = False\n\nfor i in range(0, 30):\n for j in range(0, 20):\n if 4 * i + 7 * j == n:\n flag = True\n break\n if flag:\n break\n\nif flag:\n print('Yes')\nelse:\n print('No')\n"]
|
['Wrong Answer', 'Accepted']
|
['s048179516', 's377341987']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[226, 231]
|
p03285
|
u685662874
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N=int(input())\n\nis_buy = 'No'\nfor a in range(N//4):\n for b in range(N//7):\n if 4*a + 7*b == N:\n is_buy = 'Yes'\n break\nprint(is_buy)", "N=int(input())\n\nis_buy = 'No'\nfor a in range((N//4)+1):\n for b in range((N//7)+1):\n if 4*a + 7*b == N:\n is_buy = 'Yes'\n break\nprint(is_buy)"]
|
['Wrong Answer', 'Accepted']
|
['s438021600', 's872550826']
|
[3064.0, 2940.0]
|
[18.0, 17.0]
|
[163, 171]
|
p03285
|
u686713618
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['def temp(H):\n ans = - H *0.006\n return ans\nN = int(input())\nT, A = map(int, input().split())\nH = list(map(int, input().split()))\nTE = list(map(temp,H))\nTLA = list(map(lambda x: abs(T + x -A) , TE))\nans=TLA.index(min(TLA))\nprint(ans+1)\n', 'import math\nn = int(input())\ncounter = False\n#for n in range (0,100):\nfor i in range (math.ceil((n+1) / 4) ):\n for j in range (math.ceil((n+1) / 7) ):\n #print(n, i,j)\n if i*4 + j*7 == n:\n counter = True\nif counter == True:\n print("Yes")\nelse:\n print("No")\n']
|
['Runtime Error', 'Accepted']
|
['s726972179', 's433791106']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[237, 270]
|
p03285
|
u690781906
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N = int(input())\nif N % 4 == 0 or N % 7 == 0:\n print('Yes')\n exit()\nfor i in range(N // 4):\n for j in range(N // 7):\n if 4 * i + 7 * j == N:\n print('Yes')\n exit()\nprint('No')", "N = int(input())\nif N % 4 == 0 or N % 7 == 0:\n print('Yes')\n exit()\nfor i in range(N // 4 + 1):\n for j in range(N // 7 + 1):\n if 4 * i + 7 * j == N:\n print('Yes')\n exit()\nprint('No')\n"]
|
['Wrong Answer', 'Accepted']
|
['s551267395', 's496216324']
|
[3060.0, 2940.0]
|
[17.0, 18.0]
|
[212, 221]
|
p03285
|
u691018832
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["import sys\nn = int(input())\n\nif n%7 != 0 and n%4 != 0 and n%11 != 0:\n for a in range(25):\n for b in range(14):\n if n%(7*b + 4*a) == 0:\n print('No')\n sys.exit()\nelse:\n print('No')\n sys.exit()\nprint('Yes')", "import sys\nn = int(input())\n\nif n%7 != 0 and n%4 != 0 and n%11 != 0:\n for a in range(1, 25):\n for b in range(1, 14):\n if n%(7*b + 4*a) == 0:\n print('No')\n sys.exit()\nelse:\n print('No')\n sys.exit()\nprint('Yes')", "import sys\nn = int(input())\n\nif n%7 != 0 and n%4 != 0 and n%11 != 0:\n for a in range(1, 25):\n for b in range(1, 14):\n if n%(7*b + 4*a) == 0:\n print('Yes')\n sys.exit()\nelse:\n print('Yes')\n sys.exit()\nprint('No')"]
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s616313324', 's641897533', 's738630141']
|
[3060.0, 3060.0, 3060.0]
|
[17.0, 17.0, 17.0]
|
[260, 266, 267]
|
p03285
|
u695811449
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N=int(input())\n\n\ncheck=0\nfor i in range(25):\n if (N-i*4)/7>=0 and (N-i*4)%7==0:\n check=1\n print(i,(N-i*4)//7)\n\nif check==1:\n print("Yes")\nelse:\n print("No")\n', 'import sys\n\nN=int(input())\nif N%4==0:\n print("Yes")\n sys.exit()\n\nfor i in range(N//4):\n if (N-4*i)%7==0:\n print("Yes")\n sys.exit()\n\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s599314163', 's411927909']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[180, 176]
|
p03285
|
u698501671
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n = int(input())\nn4 = int(n/4)\nn7 = int(n/7)\nans = 'No'\nif n%4 == 0:\n ans = 'Yes'\nelse :\n for i in range(n4+1):\n res = n - 4 * i\n for j in range(1,n7):\n if res%j == 0:\n ans = 'Yes'\n\nprint(ans)\n\n\n\n\n", "n = int(input())\nn4 = int(n/4)\nans = 'No'\nif n%4 == 0:\n ans = 'Yes'\nelse :\n for i in range(n4+1):\n res = n - 4 * i\n if res%7 == 0:\n ans = 'Yes'\n\nprint(ans)\n\n\n\n\n"]
|
['Wrong Answer', 'Accepted']
|
['s012637720', 's656670056']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[245, 194]
|
p03285
|
u703890795
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['dp = [0 for i in range(100)]\ndp[6] = 1\ndp[3] = 1\nfor i in range(100):\n if i>=4 and dp[i-4]==1:\n dp[i] = 1\n if i>=7 and dp[i-7]==1:\n dp[i] = 1\nif dp(int(input()-1))==1:\n print("Yes")\nelse:\n print("No")', 'dp = [0 for i in range(100)]\ndp[6] = 1\ndp[3] = 1\nfor i in range(100):\n if i>=4 and dp[i-4]==1:\n dp[i] = 1\n if i>=7 and dp[i-7]==1:\n dp[i] = 1\nif dp(int(input())-1)==1:\n print("Yes")\nelse:\n print("No")', 'dp = [0 for i in range(100)]\ndp[6] = 1\ndp[3] = 1\nfor i in range(100):\n if i>=4 and dp[i-4]==1:\n dp[i] = 1\n if i>=7 and dp[i-7]==1:\n dp[i] = 1\nif dp[int(input())-1]==1:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s361367819', 's553096629', 's387337053']
|
[3060.0, 3064.0, 3064.0]
|
[17.0, 17.0, 17.0]
|
[210, 210, 210]
|
p03285
|
u711539583
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['import sys\nn = int(input())\nfor i in range(26):\n if (n - 4 * i ) % 7 or n-4*a>=0:\n continue\n else:\n print("Yes")\n sys.exit()\nprint("No")\n', 'import sys\nn = int(input())\nfor i in range(26):\n if (n - 4 * i ) % 7 or n - 4 * a >= 0:\n continue\n else:\n print("Yes")\n sys.exit()\nprint("No")\n', 'import sys\nn = int(input())\nfor i in range(26):\n if (n - 4 * i ) % 7 or n - 4 * i < 0:\n continue\n else:\n print("Yes")\n sys.exit()\nprint("No")\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s024924497', 's040501446', 's979942990']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 18.0, 21.0]
|
[148, 154, 153]
|
p03285
|
u714300041
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\noutput = 0\nfor a in range(int(100/4)+1):\n for b in range(int(100/7)+1):\n total = 4*a + 7*b\n if total == N:\n output += 1\nprint(output)', 'N = int(input())\n\ndef is_buyable():\n output = 0\n for a in range(int(100/4)+1):\n for b in range(int(100/7)+1):\n total = 4*a + 7*b\n if total == N:\n return True\n\nif is_buyable():\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s050260914', 's481153591']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[162, 232]
|
p03285
|
u716660050
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["print('Yes' if int(input())in [1,2,3,5,6,9,10,13,17] else 'No')", "print('No'if int(input())in[1,2,3,5,6,9,10,13,17]else'Yes')"]
|
['Wrong Answer', 'Accepted']
|
['s218265557', 's564635909']
|
[9076.0, 9100.0]
|
[26.0, 30.0]
|
[63, 59]
|
p03285
|
u721316601
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["a = 4\nb = 7\nN = int(input())\n\nvalue = N % a\n\nif value % 7 == 0:\n print('Yes')\nelse:\n print('No')", "N = int(input())\n\nflag = False\nif N % 4 % 7 == 0 or N % 7 % 4 == 0 or N % 11 == 0:\n flag = True\nelse:\n value = N // 7\n\n for l in range(1, value+1):\n if (N - 7 * l) % 4 == 0:\n flag = True\n break\n\nif flag == True:\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s205653798', 's650455748']
|
[2940.0, 3060.0]
|
[17.0, 17.0]
|
[102, 288]
|
p03285
|
u722189950
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['#ABC105B\nN = int(input())\nOK = False\nfor i in range(N//4):\n for j in range(N//7):\n if i*4 + j*7 == N:\n OK = True\nif OK:\n print("Yes")\nelse:\n print("No") ', '#ABC105B\nN = int(input())\nOK = False\nfor i in range(N/4):\n for j in range(N/7):\n if i*4 + j*7 == N:\n flag = True\nif OK:\n print("Yes")\nelse:\n print("No") ', '#ABC105B\nN = int(input())\nflag = False\nfor i in range(30):\n for j in range(30):\n if i*4 + j*7 == N:\n flag = True\nif flag:\n print("YES")\nelse:\n print("NO") ', '#ABC105B\nN = int(input())\nOK = False\nfor i in range(N/4):\n for j in range(N/7):\n if i*4 + j*7 == N:\n OK = True\nif OK:\n print("Yes")\nelse:\n print("No") ', '#ABC105B\nN = int(input())\nOK = False\nfor i in range(26):\n for j in range(26):\n if i*4 + j*7 == N:\n OK = True\n break\nif OK:\n print("Yes")\nelse:\n print("No") ']
|
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s236728866', 's312268657', 's678188203', 's743808687', 's219213292']
|
[2940.0, 3060.0, 2940.0, 2940.0, 3064.0]
|
[18.0, 17.0, 17.0, 17.0, 18.0]
|
[180, 180, 182, 178, 194]
|
p03285
|
u723583932
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n=int(input())\nnum=[1, 2, 3, 5, 6, 9, 10, 13, 17, 19, 23, 27, 30, 31, 34, 38, 41, 43, 45, 47, 50, 54, 57, 58, 61, 65, 69, 71, 75, 78, 79, 82, 83, 85, 86, 87, 89, 90, 93, 94, 97]\nif n in num:\n print("Yes")\nelse:\n print("No")', 'n=int(intput())\ncake=4\ndonuts=7\nflag=False\nfor i in range(n+1):\n if i%4==0:\n flag=True\n break\n elif (n-i)%7==0:\n flag=True\n break\nprint("Yes" if flag else "No")', 'n=int(input())\ncake=n//4\ndonuts=n//7\nflag=False\nfor i in range(cake+1):\n for j in range(donuts+1):\n s=i*4+j*7\n if s==n:\n flag=True\n break\nprint("Yes" if flag else "No")']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s543500271', 's805668526', 's466464118']
|
[3064.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[229, 194, 207]
|
p03285
|
u725406838
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N=input()\nfor i in range(N / 7)\n print(N / 7*i %4==0)\n\n\n\n\n\n', 'N=int(input())\nfor i in range(int(N/7)):\n print(N / 7*i %4==0)\n\n\n\n\n', "N=int(input())\nfor i in range(int(N / 7)):\n if (N - 7 * i) % 4 == 0:\n print('Yes')\n else :\n print('No')", "N=input()\nN=int(N)\nif N<=3 :\n print('No')\nelif N%4 == 0:\n print('Yes')\nelif N%7==0 :\n print('Yes')\nelif (N-7)%4==0 and N-7>=0:\n print('Yes')\nelif (N-14)%4==0 and N-14>=0:\n print('Yes')\nelif (N-21)%4==0 and N-21>=0:\n print('Yes')\nelse :\n print('No')\n"]
|
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s502013802', 's648045724', 's835676310', 's628765573']
|
[2940.0, 2940.0, 2940.0, 3060.0]
|
[17.0, 18.0, 17.0, 17.0]
|
[62, 70, 123, 270]
|
p03285
|
u728200259
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N = int(input())\n\n\n\nmax_CA = int(N / 4) + int(N % 4) \nmax_CB = int(N / 7) + int(N % 7)\n\nprint(f'four:{max_CA}')\nprint(f'seven:{max_CB}')\n\nflag = False\nfor i in range(max_CA +1):\n for j in range(max_CB+1):\n sum_C = 4 * i + 7 * j\n if N == sum_C:\n flag = True\n \nif flag:\n print('Yes')\nelse:\n print('No')", "N = int(input())\n\n\n\nmax_CA = int(N / 4) + int(N % 4) \nmax_CB = int(N / 7) + int(N % 7)\n\n#print(f'four:{max_CA}')\n#print(f'seven:{max_CB}')\n\nflag = False\nfor i in range(max_CA +1):\n for j in range(max_CB+1):\n sum_C = 4 * i + 7 * j\n if N == sum_C:\n flag = True\n \nif flag:\n print('Yes')\nelse:\n print('No')\n"]
|
['Wrong Answer', 'Accepted']
|
['s859341248', 's763129275']
|
[9124.0, 9116.0]
|
[28.0, 27.0]
|
[370, 373]
|
p03285
|
u731322489
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['dollar = int(input())\n\ncan = False\nfor cakes in range(int(dollar / 4) + 1):\n for donuts in range(int(dollar /7) + 1):\n price = 4 * cakes + 7 * donuts\n print(cakes, donuts, price, dollar)\n if price == dollar:\n can = True\n break\n elif price > dollar:\n break\n if can == True:\n break\n \nprint("Yes" if can == True else "No")', 'dollar = int(input())\n\ncan = False\nfor cakes in range(int(dollar / 4) + 1):\n for donuts in range(int(dollar /7) + 1):\n price = 4 * cakes + 7 * donuts\n if price == dollar:\n can = True\n break\n elif price > dollar:\n break\n if can == True:\n break\n \nprint("Yes" if can == True else "No")']
|
['Wrong Answer', 'Accepted']
|
['s981731399', 's855045948']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[354, 314]
|
p03285
|
u733608212
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\n\nfor i in range(1, 26):\n for j in range(1,16):\n if 4 * i + 7*j == n:\n print("Yes")\n break\nelse:\n print("No")', 'n = int(input())\ntf = False\nfor i in range(0, 26):\n for j in range(0,16):\n if 4 * i + 7*j == n:\n print("Yes")\n tf = True\n break\n else:\n continue\n break\n \nif not tf:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s705679603', 's358798032']
|
[2940.0, 3060.0]
|
[17.0, 17.0]
|
[160, 239]
|
p03285
|
u733774002
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\nans = "No"\nfor i in range(N):\n for j in range(N):\n if(4*i + 7*j == N):\n ans = "Yes"\n exit()\nprint(ans)\n ', 'N = int(input())\nfor i in range(0, N//4):\n for j in range(0, N//7):\n if(4*i + 7*j == N):\n print("Yes")\n exit()\nprint("No")\n ', 'N = int(input())\nfor i in range(N//4):\n for j in range(N//7):\n if(4*i + 7*j == N):\n print("Yes")\n exit()\nprint("No")\n ', 'N = int(input())\nans = "No"\nfor i in range(N):\n for j in range(N):\n if(4*i + 7*j == N):\n ans = "Yes"\nprint(ans)\n ']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s002781261', 's331484200', 's826648426', 's977193221']
|
[3064.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 21.0]
|
[164, 167, 161, 145]
|
p03285
|
u735008991
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\nprint(any([(N - 4*i) % 7 == 0 for i in range(N//4)]))\n', 'N = int(input())\nprint(any([(N - 4*i) % 7 == 0 for i in range(N//4 + 1)]))\n', 'N = int(input())\nprint(any([(N - 4*i) % 7 == 0 for i in range((N+3)//4 + 1)]))\n', 'N = int(input())\nprint("Yes" if any([(N - 4*i) %\n 7 == 0 for i in range((N+3)//4 + 1)]) else "No")\n']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s420282403', 's585607884', 's714404693', 's524121168']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 22.0]
|
[71, 75, 79, 118]
|
p03285
|
u735763891
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['def abc105_b():\n n = int(input())\n for i in range(15):\n for j in range(26):\n if n == (i*7+j*4):\n return "YES"\n return "NO"\n\n\nprint(abc105_b())', 'def abc105_b():\n n = int(input())\n for i in range(15):\n for j in range(26):\n if n == (i*7+j*4):\n return "Yes"\n return "No"\n\n\nprint(abc105_b())']
|
['Wrong Answer', 'Accepted']
|
['s242466430', 's557036270']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[184, 184]
|
p03285
|
u737715061
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["#!/usr/bin/env python\nN = int(input())\n\nprint(N//4 + 1)\nfor i in range(N//4 + 1):\n if (N - 4*i) % 7 == 0:\n print('Yes')\n break\nelse:\n print('No')", "#!/usr/bin/env python\nN = int(input())\n\nfor i in range(N//4 + 1):\n if (N - 4*i) % 7 == 0:\n print('Yes')\n break\nelse:\n print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s749801993', 's575437373']
|
[2940.0, 3060.0]
|
[18.0, 18.0]
|
[165, 149]
|
p03285
|
u738835924
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input())\n\nflag = 1\nfor i in range(N // 7):\n if (N - 7 * i) % 4 == 0:\n print("Yes")\n flag = 0\n break\n \nif flag:\n print("No")', 'N = int(input())\n \nflag = 1\nfor i in range(N // 7 + 1):\n if (N - 7 * i) % 4 == 0:\n print("Yes")\n flag = 0\n break\n \nif flag:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s945885170', 's791695725']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[145, 150]
|
p03285
|
u738898077
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\nif (n%4)%7 == 0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\nfor i in range(30):\n for j in range(20):\n if i*4+j*7 == n:\n print("Yes")\n exit()\nprint("No")']
|
['Wrong Answer', 'Accepted']
|
['s379911564', 's941666801']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[72, 141]
|
p03285
|
u739721456
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n=int(input())\nans="No"\nfor i in range(n//4):\n for j in range(n//7):\n if 4*i+7*j==n:\n ans="Yes"\nprint(ans)', 'n=int(input())\nans="No"\nfor i in range(n//4+1):\n for j in range(n//7+1):\n if 4*i+7*j==n:\n ans="Yes"\nprint(ans)']
|
['Wrong Answer', 'Accepted']
|
['s427069782', 's491946898']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[127, 131]
|
p03285
|
u740284863
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['\nSum = int(input())\n\nr = 0\nfor i in range(26):\n for k in range(15):\n if 4*i+7*k == Sum:\n r = r +1\n else:\n r = r\nif r > 0:\n print("YES")\nelse:\n print("NO")\n', '\nSum = int(input())\n\nr = 0\nfor i in range(26):\n for k in range(15):\n if 4*i+7*k == Sum:\n r = r +1\n else:\n r = r\nif r > 0:\n print("Yes")\nelse:\n print("No")\n']
|
['Wrong Answer', 'Accepted']
|
['s592651743', 's599347507']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[200, 200]
|
p03285
|
u744034042
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n = int(input())\nfor i in range(n//7 + 1):\n if (n - 7*x) % 4 == 0:\n print('Yes')\n exit()\nprint('No')", "n = int(input())\nfor i in range(n//7 + 1):\n if (n - 7*i) % 4 == 0:\n print('Yes')\n exit()\nprint('No')"]
|
['Runtime Error', 'Accepted']
|
['s470947370', 's920143916']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[117, 117]
|
p03285
|
u754076673
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N = int(input())\n\nif N==0 or N > 100:\n print('No')\nelif N % 4 != 0 and N % 7 != 0 and (N % 7) % 4 == 0:\n print('No')\nelse:\n print('Yes')\n", "N = int(input())\n\nif N == 1 or 2 or 3 or 5 or 6 or 9 or 10 or 13 or 17:\n print('No')\nelse:\n print('Yes')\n", "N = int(input())\n\nif N == 1 or N == 2 or N == 3 or N == 5 or N == 6 or N == 9 or N == 10 or N == 13 or N == 17:\n print('No')\nelse:\n print('Yes')\n"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s226986177', 's308107331', 's870891392']
|
[2940.0, 2940.0, 3064.0]
|
[17.0, 17.0, 17.0]
|
[146, 112, 151]
|
p03285
|
u759360502
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['if (N % 7) % 4 == 0 or (N % 4) % 7 == 0:\n print("Yes")\nelse:\n print("No")', 'import sys\nN = int(input())\n\nfor i in range((N // 4)+1):\n for j in range((N // 7)+1):\n if 4 * i + 7 * j == N:\n print("Yes")\n sys.exit()\nprint("No")']
|
['Runtime Error', 'Accepted']
|
['s332208324', 's910752868']
|
[2940.0, 2940.0]
|
[18.0, 22.0]
|
[79, 179]
|
p03285
|
u764956288
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N = int(input())\n\nans='No'\nif N%7==0:\n ans = 'Yes'\nelif N%4==0:\n ans = 'Yes'\nelse:\n for i in range(N//7):\n if (N-7*i)%4==0:\n ans='Yes'\n break\nprint(ans)\n", "N = int(input())\n\nans='No'\nif N%7==0:\n ans = 'Yes'\nelif N%4==0:\n ans = 'Yes'\nelse:\n for i in range(N//7+1):\n if (N-7*i)%4==0:\n ans='Yes'\n break\nprint(ans)\n"]
|
['Wrong Answer', 'Accepted']
|
['s776047712', 's026992603']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[169, 171]
|
p03285
|
u765325669
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["def canbuy(n):\n for i in range(int(100/7)):\n if (n-7*i)%4 == 0:\n return 'Yes'\n return 'No'\n\nn=input()\nprint(canbuy(n))\n", "def canbuy(n):\n if n%7==0 or n%4==0:\n return 'Yes'\n else:\n if n<4:\n return 'No'\n else:\n if canbuy(n-7)=='Yes':\n return 'Yes'\n else:\n if canbuy(n-4)=='Yes':\n return 'Yes'\n else:\n return 'No'\n\nn=input()\nprint(canbuy(n))\n", "def canbuy(n):\n for i in range(int(100/7)):\n if (n-7*i)>3 and (n-7*i)%4==0:\n return 'Yes'\n return 'No'\n\nn=input()\nprint(canbuy(n))\n", "def canbuy(n):\n if n%7==0 or n%4==0:\n return 'Yes'\n else:\n if n<4:\n return 'No'\n else:\n if canbuy(n-7)=='Yes':\n return 'Yes'\n else:\n if canbuy(n-4)=='Yes':\n return 'Yes'\n else:\n return 'No'\n\nn=int(input())\nprint(canbuy(n))"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s347017117', 's382555403', 's943981313', 's263699212']
|
[2940.0, 2940.0, 2940.0, 3060.0]
|
[20.0, 17.0, 17.0, 17.0]
|
[143, 361, 155, 365]
|
p03285
|
u765590009
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\n\nanswer = False\nfor num_4 in range(n//4+1):\n if (n-num_4*4)%7 == 0:\n answer = True \n break\n \nprint(answer)', 'n = int(input())\n\nanswer = False\nfor num_4 in range(n//4+1):\n if (n-num_4*4)%7 == 0:\n answer = True \n break\n\nif answer :\n print("Yes")\nelse :\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s344000822', 's965487337']
|
[8980.0, 9168.0]
|
[29.0, 27.0]
|
[131, 163]
|
p03285
|
u765607957
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N = int(input()) \n\nCAKE = 4\nDONUTS = 7\n\nans = "No"\nfor i in range(N//CAKE):\n for j in range(N//DONUTS):\n total = CAKE*i + DONUTS*j\n if total == N:\n ans = "Yes"\n break\n\nprint(ans)', 'N = int(input()) \n\nCAKE = 4\nDONUTS = 7\n\nans = "No"\nfor i in range(N//CAKE + 1):\n for j in range(N//DONUTS + 1):\n total = CAKE*i + DONUTS*j\n if total == N:\n ans = "Yes"\n break\n\nprint(ans)']
|
['Wrong Answer', 'Accepted']
|
['s020881850', 's000796044']
|
[3060.0, 3060.0]
|
[17.0, 19.0]
|
[208, 216]
|
p03285
|
u767432305
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['N=int(input())\n\ndonuts=N//7\nans="No"\nfor i in range(donuts,-1,-1):\n left_price=N-7*i\n if left_price%4==0:\n ans="Yes"\n break\n\n print(ans)\n ', 'N=int(input())\n \ndonuts=N//7\nans="No"\n\nfor i in range(donuts,-1,-1):\n left_price=N-7*i\n if left_price%4==0:\n ans="Yes"\n break\n \nprint(ans)']
|
['Wrong Answer', 'Accepted']
|
['s325927540', 's358205166']
|
[3064.0, 3060.0]
|
[17.0, 17.0]
|
[156, 146]
|
p03285
|
u777241657
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["d_cnt =(int(x) for x in input().split()) \n\nif d_cnt//4==0 or d_cnt//7==0 or d_cnt//11:\n print('Yes')\nelse:\n print('No')\n\n ", 'N = int(input())\nf = False\nfor i in range(N//4+1):\n for j in range(N//7+1):\n if i*4 + j*7 == N:\n f = True\n break\nif f:\n print("Yes")\nelse:\n print("No")\n']
|
['Runtime Error', 'Accepted']
|
['s474673936', 's686417085']
|
[3064.0, 2940.0]
|
[18.0, 18.0]
|
[125, 190]
|
p03285
|
u777283665
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\n\nfor i in range(n//4+1):\n for j in range(n//7+1):\n if i * 4 + j * 7 == n:\n print("YES")\n exit()\nprint("NO")', 'n = int(input())\n\nfor i in range(n//4+1):\n for j in range(n//7+1):\n if i * 4 + j * 7 == n:\n print("Yes")\n exit()\nprint("No")']
|
['Wrong Answer', 'Accepted']
|
['s608326899', 's739438136']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[156, 156]
|
p03285
|
u779170803
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["INT = lambda: int(input())\nINTM = lambda: map(int,input().split())\nSTRM = lambda: map(str,input().split())\nSTR = lambda: str(input())\nLIST = lambda: list(map(int,input().split()))\nLISTS = lambda: list(map(str,input().split()))\ndef do():\n n=INT()\n flg=0\n for i in range(n//7):\n if (n-i*7)%4==0:\n flg=1\n if flg==1:\n print('Yes')\n else:\n print('No')\nif __name__ == '__main__':\n do()", "INT = lambda: int(input())\nINTM = lambda: map(int,input().split())\nSTRM = lambda: map(str,input().split())\nSTR = lambda: str(input())\nLIST = lambda: list(map(int,input().split()))\nLISTS = lambda: list(map(str,input().split()))\ndef do():\n n=INT()\n flg=0\n for i in range(n//7+1):\n if (n-i*7)%4==0:\n flg=1\n if flg==1:\n print('Yes')\n else:\n print('No')\nif __name__ == '__main__':\n do()"]
|
['Wrong Answer', 'Accepted']
|
['s207002448', 's244655270']
|
[3064.0, 3064.0]
|
[17.0, 17.0]
|
[429, 431]
|
p03285
|
u780698286
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\nans = 0\nfor i in range(n+1):\n for j in range(n+1):\n if 4 * i + 7 * j == n:\n ans += 1\nprint(ans)', 'import sys\nn = int(input())\nfor i in range(n+1):\n for j in range(n+1):\n if 4 * i + 7 * j == n:\n print("Yes")\n sys.exit()\nprint("No")']
|
['Wrong Answer', 'Accepted']
|
['s786317429', 's296697363']
|
[9044.0, 9132.0]
|
[29.0, 29.0]
|
[121, 146]
|
p03285
|
u782616557
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N=int(input())\nfor i in range 26:\n for j in range 14:\n if i+j==N:\n print('Yes')\n break\n else:\n continue\n break\nelse:\n print('No')\n ", "N=int(input())\nfor i in range 26:\n price=4*i\n for j in range 16:\n price+=7*j\n if price==N:\n print('Yes')\n break\nprint('No')\n", "N=int(inout())\nfor i in range 26:\n price=4*i\n for j in range 16:\n price+=7*j\n if price==N:\n print('Yes')\n break\nprint('No')", "N=int(input())\nfor i in range(26):\n for j in range(14):\n if 4*i+7*j==N:\n print('Yes')\n break\n else:\n continue\n break\nelse:\n print('No')\n \n"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s468368928', 's494958244', 's557453795', 's492863326']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[152, 142, 141, 159]
|
p03285
|
u787562674
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N = int(input())\n\nr = N // 7\n\nfor i in range(r+1):\n if (N - 7*i) % 4 == 0:\n print('No')\n break\nelse:\n print('N0')", "N = int(input())\n\nr = N // 7\n\nfor i in range(r+1):\n if (N - 7*i) % 4 == 0:\n print('Yes')\n break\nelse:\n print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s362059720', 's844590917']
|
[2940.0, 3064.0]
|
[17.0, 19.0]
|
[133, 134]
|
p03285
|
u790877102
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
['n = int(input())\n\nfor i in range(n//7):\n\tif n%4==0:\n\t\tprint("Yes")\n\t\tbreak\n\tn -=7\nelse:\n\tprint("No")\n', 'n = int(input())\n\nfor i in range(n//7+1):\n\tif n%4==0:\n\t\tprint("Yes")\n\t\tbreak\n\tn -=7\nelse:\n\tprint("No")\n']
|
['Wrong Answer', 'Accepted']
|
['s371544315', 's655841435']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[101, 103]
|
p03285
|
u795187996
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["N=int(input())\nif N % 4 == 0 or N % 7 == 0:\n print('Yes')\nelif (N % 7 + 7) % 4 == 0:\n print('Yes')\nelse:\n print('No')", "N=int(input())\nif N%7==N and not N%4==0:\n print('No')\nelif N%4==0 or N%7==0:\n print('Yes')\nelse:\n A = 'No'\n while N>7:\n N -= 7\n if N%4==0:\n A = 'Yes'\n print(A)"]
|
['Wrong Answer', 'Accepted']
|
['s872495584', 's574851058']
|
[3064.0, 3060.0]
|
[17.0, 17.0]
|
[120, 175]
|
p03285
|
u795733769
| 2,000
| 1,048,576
|
_La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.
|
["n = int(input())\n\nfor i in range(26):\n for j in range(16):\n total = 4*i +7*j\n if total == n:\n print('Yes')\n break\n break", "n = int(input())\ns = 'No'\n\nfor i in range(26):\n for j in range(16):\n total = 4*i +7*j\n if total == n:\n s = 'Yes'\n break\n if total ==n:\n break\nprint(s)"]
|
['Wrong Answer', 'Accepted']
|
['s730755531', 's200707194']
|
[9132.0, 8868.0]
|
[30.0, 29.0]
|
[162, 199]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.