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
u190866453
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\nf = False\n\nfor i in range(26):\n for j in range(15):\n if 4 * i + 7 * j == n:\n f = True\n break\n else:\n pass\n\nif f:\n print("No")\nelse:\n print("Yes")', 'n = int(input())\n\na = n // 4\nb = n // 7\ncount = 0\n\nfor i in range(a + 1):\n n = n - i * 4\n for j in range(b + 1):\n if 4 * i + 7 * j == n:\n print(yes)\n count += 1\n break\n else:\n pass\n\nif count == 0:\n print("No")\nelse:\n pass', 'n = int(input())\n\nf = False\n\nfor i in range(26):\n for j in range(15):\n if 4 * i + 7 * j == n:\n f = True\n break\n else:\n pass\n\nif f:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s496464200', 's781286030', 's343358777']
[9080.0, 9116.0, 9064.0]
[30.0, 27.0, 26.0]
[219, 291, 219]
p03285
u191423660
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\nsum = 0\nflag = 0\n\na = int(N / 7)\nre = N % 7\n\nif re == 0:\n print('Yes')\n flag += 1\nelse:\n for i in range(a+1):\n sum = 7 * i\n# print(sum)\n while sum<N:\n sum += 4\n# print(sum)\n if sum == N:\n print('Yse')\n flag += 1\n if flag == 1:\n break\n\nif flag == 0:\n print('No')\n \n", "N = int(input())\n\nsum = 0\nflag = 0\n\n\na = int(N / 7)\nre = N % 7\n\nif re == 0 and N != 0:\n print('Yes')\n flag += 1\nelse:\n for i in range(a+1):\n sum = 7 * i\n# print(sum)\n while sum<N:\n sum += 4\n# print(sum)\n if sum == N:\n print('Yse')\n flag += 1\n if flag == 1:\n break\n\nif flag == 0:\n print('No')\n \n", "N = int(input())\n\nsum = 0\nflag = 0\n\n\na = int(N / 7)\nre = N % 7\n\nif re == 0 and N != 0:\n print('Yes')\n flag += 1\nelse:\n for i in range(a+1):\n sum = 7 * i\n# print(sum)\n while sum<N:\n sum += 4\n# print(sum)\n if sum == N:\n print('Yes')\n flag += 1\n if flag == 1:\n break\n\nif flag == 0:\n print('No')\n \n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s489995309', 's872711421', 's291206682']
[3060.0, 3064.0, 3064.0]
[17.0, 18.0, 17.0]
[411, 423, 423]
p03285
u194894739
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 cake in range(n):\n for donut in range(n):\n if cake * 4 + donut * 7 == n:\n print("Yes")\n break\nelse:\n print("No")\n', 'n = int(input())\nfor cake in range(n):\n for donut in range(n):\n if cake * 4 + donut * 7 == n:\n print("Yes")\n break\n else:\n continue\n break\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s617014867', 's904631493']
[2940.0, 2940.0]
[19.0, 17.0]
[169, 206]
p03285
u204800924
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\n\nfor cake in range(26):\n for donut in range(15):\n if cake*4 + donut*7 == N:\n flag = 1\n break\n if flag == 1:\n break\n\nif flag = 1:\n print("Yes")\nelse :\n print("No")\n', 'N = int(input())\nflag = 0\n\nfor cake in range(26):\n for donut in range(15):\n if cake*4 + donut*7 == N:\n flag = 1\n break\n if flag == 1:\n break\n\nif flag == 1:\n print("Yes")\nelse :\n print("No")\n']
['Runtime Error', 'Accepted']
['s087434203', 's381156449']
[2940.0, 2940.0]
[17.0, 17.0]
[237, 238]
p03285
u207464563
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):\n for j in range(N//7):\n if 4*i + 7*j == N:\n print("Yes")\n exit()\n\nprint("No")', 'N = 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 exit()\n\nprint("No")']
['Wrong Answer', 'Accepted']
['s671249909', 's745961062']
[2940.0, 2940.0]
[18.0, 17.0]
[149, 155]
p03285
u209619667
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 = int(input())\nif (A%4 == 3 or A%4 == 0 A%7 == 4 or A%7 == 0) and A != 3:\n print('Yes')\nelse:\n print('No')", "A = int(input())\nif (A%4 == 3 or A%4 == 0 A%7 == 4 or A%7) and A != 3:\n print('Yes')\nelse:\n print('No')", "A = int(input())\nFlag = False\nfor i in range((A//4)+1):\n for j in range((A//7)+1):\n if A == 3:\n break;\n elif 4*i + 7*j == A:\n Flag = True\nif Flag:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s377955050', 's753703065', 's569359732']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[110, 105, 198]
p03285
u217303170
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\nfor i in range(26):\n\tfor j in range(15):\n\t\tif a*i+b*j==n:\n\t\t\tprint('Yes')\n\t\telse:\n\t\t\tprint('No')\n", "n=int(input())\nfor i in range(26):\n for j in range(15):\n if 4*i+7*j==n:\n print('Yes')\n exit()\nprint('No')"]
['Wrong Answer', 'Accepted']
['s040722059', 's114111082']
[9112.0, 9164.0]
[29.0, 26.0]
[120, 119]
p03285
u217627525
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:\n print("Yes")\nelse:\n a=n//7\n buf=0\n for i in range(a):\n if (n-7*i)%4==0:\n buf=1\n print("Yes")\n break\n if buf==0:\n print("No")', 'n=int(input())\na=n//7\nbuf=0\nfor i in range(a):\n if (n-7*i)%4==0:\n buf=1\n print("Yes")\n break\nif buf==0:\n print("No")', 'n=int(input())\nif n%7==0:\n print("Yes")\nelse:\n a=n//7\n buf=0\n for i in range(a+1):\n if (n-7*i)%4==0:\n buf=1\n print("Yes")\n break\n if buf==0:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s326828405', 's343794933', 's229784968']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[213, 143, 215]
p03285
u223646582
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(intput())\n\nfor i in range(26):\n for j in range(16):\n l.append(i*4+j*7):\n\nif N in l:\n print('Yes')\nelse:\n print('No')", "N = int(intput())\nl=[]\n\nfor i in range(26):\n for j in range(16):\n l.append(i*4+j*7):\n\nif N in l:\n print('Yes')\nelse:\n print('No')", "N = int(input())\nl=[]\n\nfor i in range(26):\n for j in range(16):\n l.append(i*4+j*7)\n\nif N in l:\n print('Yes')\nelse:\n print('No')\n\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s409270938', 's508527962', 's471046859']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[140, 145, 145]
p03285
u225388820
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 i*7+j*4=n:\n print('Yes')\n exit()\nprint('No')", "n=int(input())\nfor i in range(15):\n for j in range(26):\n if i*7+j*4==n:\n print('Yes')\n exit()\nprint('No')\n"]
['Runtime Error', 'Accepted']
['s085276707', 's641445074']
[2940.0, 2940.0]
[17.0, 17.0]
[118, 120]
p03285
u227082700
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())\nf,s=0,0\nwhile 1:\n if f*4+s*7>n:break\n if f*4+s*7==n:\n print("Yes")\n exit()\n while 1:\n if f*4+s*7>n:break\n if f*4+s*7==n:\n print("Yes")\n exit()\n s+=1\n f+=1\nprint("No")', 'n=int(input())\nf,s=0,0\nwhile f*4+s*7<=n:\n if f*4+s*7==n:\n print("Yes")\n exit()\n while f*4+s*7<=n:\n if f*4+s*7==n:\n print("Yes")\n exit()\n s+=1\n s=0\n f+=1\nprint("No")']
['Wrong Answer', 'Accepted']
['s235753843', 's696897784']
[3060.0, 3060.0]
[17.0, 17.0]
[210, 190]
p03285
u228294553
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())\nres="No"\nfor i in range (n):\n if (n-7*i)%4==0 and n-7*i>=0:\n res="Yes"\n print(i)\nprint(res)', 'n=int(input())\nres="No"\nfor i in range (1,n):\n if (n-7*i)%4==0 and n-7*i>=0 and int((n-7*i)/4!=0):\n res="Yes"\n print("dounat:",i)\n print("cake:",(n-7*i)/4)\nprint(res)', 'n=int(input())\nres="No"\nfor i in range (n):\n if (n-7*i)%4==0 and n-7*i>=0 and int((n-7*i)/4>=0):\n res="Yes"\nprint(res)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s549044530', 's629847715', 's556939187']
[2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[123, 190, 128]
p03285
u230621983
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(0,26):\n for k in range(0,15):\n if N == 4*i + 7*k:\n print('Yes, i=',i,', k=',k)\n exit()\nprint('No')", "N = int(input())\nfor i in range(0,26):\n for k in range(0,15):\n if N == 4*i + 7*k:\n print('Yes')\n exit()\nprint('No')"]
['Wrong Answer', 'Accepted']
['s521696993', 's732366970']
[3060.0, 2940.0]
[17.0, 17.0]
[144, 129]
p03285
u238940874
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 (0,101):\n for j in (0,101):\n if 4*i+7*j==n:\n cnt+=1\nif cnt==0:\n print('No')\nelse:\n print('Yes')", "n=int(input())\ncnt=0\nfor i in range(25):\n for j in range(14):\n if 4*i+7*j==n:\n cnt+=1\nif cnt==0:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s081338735', 's587818429']
[2940.0, 2940.0]
[17.0, 17.0]
[152, 156]
p03285
u243699903
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 if (n - 4 * i) % 7 == 0:\n print('Yes')\nprint('No')\n", "n = int(input())\nfor i in range(n // 4 + 1):\n if (n - 4 * i) % 7 == 0:\n print('Yes')\n exit()\nprint('No')\n"]
['Wrong Answer', 'Accepted']
['s117873876', 's132608191']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 122]
p03285
u245487028
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())\ni = 0\nflag = false\nwhile(7*i<=n):\n if (n-7*i)%4 == 0:\n flag = true\n break\n i+=1\nif flag:\n print("Yes")\nelse:\n print("No")\n', 'n = int(input())\ni = 0\nflag = False\nwhile(7*i<=n):\n if (n-7*i)%4 == 0:\n flag = True\n break\nif flag:\n print("Yes")\nelse:\n print("No")\n', 'n = int(input())\ni = 0\nflag = false\nwhile(7*i<=n):\n if (n-7*i)%4 == 0:\n flag = true\n break\nif flag:\n print("Yes")\nelse:\n print("No")\n', 'n = int(input())\ni = 0\nflag = False\nwhile(7*i<=n):\n if (n-7*i)%4 == 0:\n flag = True\n break\n i+=1\nif flag:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Time Limit Exceeded', 'Runtime Error', 'Accepted']
['s253810194', 's489622306', 's892821400', 's390666139']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 2104.0, 17.0, 17.0]
[149, 142, 142, 149]
p03285
u246809151
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(25):\n for j in range(15):\n if N == 4*i + 7*j:\n print('Yes')\n break\n\nprint('No')\n", "N = int(input())\n\nfor i in range(25)\n for j in range(15)\n if N == 4*i + 7*j:\n print('Yes')\n break\n\nprint('No')\n", "N = int(input())\n\nfor i in range(25):\n for j in range(15):\n if N == 4*i + 7*j:\n print('Yes')\n exit()\n\nprint('No')\n\n"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s369436521', 's616634517', 's974908032']
[2940.0, 3064.0, 2940.0]
[18.0, 17.0, 17.0]
[145, 143, 147]
p03285
u249727132
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(100):\n for j in range(100):\n if 4 * i + 7 * j == n:\n print("Yes")\n exit(0)\nprint("No")', 'N = 3#int(input())\nFLG = 0\nfor i in range(N // 7, 0, -1):\n if (N - i * 7) % 4 == 0:\n print("Yes")\n FLG = 1\n break\nif FLG == 0:\n print("No")', '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', 'Wrong Answer', 'Accepted']
['s170961347', 's232498849', 's844673853']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 20.0]
[150, 166, 150]
p03285
u251123951
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 : print("Yes")\nelse:\n while n > 0:\n \n if n%4 == 0:\n print("Yes")\n break\n n-=7\nprint("No")', 'n = int(input())\nif n%4 == 0 or n%7 == 0 : print("Yes")\nelse:\n while n > 0:\n \n if n%4 == 0:\n print("Yes")\n break\n n-=7\nif n < 0 :print("No")']
['Wrong Answer', 'Accepted']
['s616518740', 's684726036']
[2940.0, 2940.0]
[18.0, 18.0]
[150, 160]
p03285
u252828980
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 = False\nfor a in range(n//4+1):\n for b in range(n//7+1):\n \n if 4*a + 7*b == n:\n print(a,b)\n flag = True\n break\n\nif flag:\n print("Yes")\nelse:\n print("No")\n ', 'n = int(input())\nflag = False\nfor a in range(n//4+1):\n for b in range(n//7+1):\n \n if 4*a + 7*b == n:\n \n flag = True\n break\n\nif flag:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s658800893', 's287814701']
[3060.0, 2940.0]
[17.0, 17.0]
[248, 221]
p03285
u255001744
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(100):\n if (n - i*4)%7==0:\n print(\'Yes\')\n if(n-i*4 < 0):\n break\nprint("No")\n', 'n = int(input())\nflag = False\nfor i in range(100):\n if (n - i*4)%7==0:\n flag = True\n if(n-i*4 < 0):\n break\nprint("Yes" if flag else "No")\n']
['Wrong Answer', 'Accepted']
['s939156714', 's265079228']
[3064.0, 2940.0]
[18.0, 17.0]
[127, 158]
p03285
u257226830
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())\nS=0\nwhile S<N:\n S=S+4\nif S==N:\n print('Yes')\nelse:\n while S<N:\n S=S+7\n if S==N:\n print('Yes')\n else:\n print('No')", "N=int(input())\nk=0\nfor i in range(0,30):\n for j in range(0,15):\n S=4*i+7*j\n if S==N:\n k=k+1\nif k>0:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s388550294', 's954528378']
[3060.0, 2940.0]
[17.0, 18.0]
[165, 166]
p03285
u259861571
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\nfo = n // 4\nse = n // 7\n\nfor i in range(fo+1):\n for j in range(se+1):\n if ((i*4) + (j*7)) == n:\n print("Yes")\n exit()\nprint("No")']
['Runtime Error', 'Accepted']
['s257671983', 's819331252']
[2940.0, 3060.0]
[17.0, 18.0]
[160, 179]
p03285
u260036763
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())\nr = n // 4\nfor i in range(r+1):\n for j in range(r+1):\n if 4*i + 7*j == n:\n flag = True\n break\n if flag:\n print('Yes')\n break\n else:\n print('No')", 'n = int(input())\nr = n // 4\nfor i in range(r+1):\n for j in range(r+1):\n if 4*i + 7*j == n:\n flag = True\n break\n if flag:\n break', "def pay_check(N):\n for 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 return\n print('No')\npay_check(int(input()))"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s016595087', 's045564163', 's138540867']
[2940.0, 3064.0, 3060.0]
[17.0, 18.0, 19.0]
[186, 145, 176]
p03285
u262869085
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())\nl=[0,1,3,5]\nif l[N%4] > N//4:\n print("No")\nelse:\n print("Yes")', 'N =int(input())\ns=False\nl =[7*i for i in range(4)]\nfor i in range(26):\n for j in l:\n if j+4*i==N:\n s =True\n break\nif s:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s794494792', 's522396366']
[2940.0, 3060.0]
[18.0, 18.0]
[80, 190]
p03285
u268318377
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\n\u200b\nfor i in range(1,26):\n for j in range(1,15):\n n = 4*i + 7*j\n if n == N:\n ans = 1\n break\n \nif ans == 1:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nans = 0\n\nfor i in range(26):\n for j in range(15):\n n = 4*i + 7*j\n if n == N:\n ans = 1\n break\n if ans == 1:\n break\n\nif ans == 1:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s198238012', 's769773012']
[2940.0, 2940.0]
[17.0, 17.0]
[188, 200]
p03285
u272557899
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())\np = 0\nfor i in range(26):\n for j in range(16):\n if 4*i + 7*j == n:\n p == 1\n break\nif p == 0:\n print("No")\nelse: \n print("Yes")\n', 'n = int(input())\np = 0\nfor i in range(26)\n for j in range(16)\n if 4*i + 7*j == n:\n p == 1\n break\nif p == 0:\n print("No")\nelse: \n print("Yes")', 'n = int(input())\np = 0\nfor i in range(26):\n for j in range(16):\n if 4*i + 7*j == n:\n p = 1\n break\nif p == 0:\n print("No")\nelse: \n print("Yes")\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s250812871', 's954031151', 's376303451']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[160, 157, 159]
p03285
u277641173
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())\ncount=0\nfor i in range(0,30):\n for j in range(0,30):\n if i*4+j+7==30:\n print("Yes")\n break\n count+=1\nif count==900:\n print("No")', 'n=int(input())\nkeep=0\nfor i in range(0,30):\n for j in range(0,30):\n if i*4+j*7==n:\n keep=1\nif keep==1:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s967026483', 's288818852']
[2940.0, 3060.0]
[17.0, 18.0]
[161, 146]
p03285
u277802731
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.
["#105b\nn=int(input())\nx = n//4\nif n%4==0 or n%11==0:\n print('Yes')\n \nelse:\n for i in range(x+1):\n for j in range(x+1):\n temp=4*i+7*j\n if temp==n:\n print('Yes')\n exit()\nprint('No')", "#105b\nn=int(input())\nx = n//4\nif n%4==0 or n%11==0:\n print('Yes')\n \nelse:\n for i in range(x):\n for j in range(x):\n temp=4*i+7*j\n if temp==n:\n print('Yes')\n exit()\nprint('No')", "#105b\nn=int(input())\nans=0\nflag=False\n \nfor i in range(25):\n for j in range(14):\n ans=4*i+j*7\n if ans==n:\n flag=True\n break\n elif ans>n:\n break\nprint('Yes' if flag==True else 'No')\n \n "]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s343746353', 's828520935', 's042751373']
[2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[246, 242, 258]
p03285
u280978334
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 = False\nfor i in range(1,n+1):\n if i%4 == 0 and (n-i) == 0:\n flag = True\nif flag:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\nflag = False\nfor i in range(n+1):\n if i%4 == 0 and (n-i)%7 == 0:\n flag = True\nif flag:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s209827480', 's173705784']
[2940.0, 2940.0]
[17.0, 17.0]
[152, 152]
p03285
u281216592
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())\ncounter = 0\nfor a in range(N//7):\n for b in range(N - 4*a):\n if(N == 7*a + 4*b):\n counter += 1\nprint(counter)\n\n', 'N = int(input())\nflag = False\nfor a in range(N//7):\n for b in range((N - 7*a)//4):\n if(N == 7*a + 4*b):\n flag = True\n break;\nif(flag):\n print("Yes")\nelse:\n print("No")\n\n', 'N = int(input())\nflag = False\nfor a in range(N//7+1):\n for b in range((N - 7*a)//4+1):\n if(N == 7*a + 4*b):\n flag = True\n break;\nif(flag):\n print("Yes")\nelse:\n print("No")\n\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s058059689', 's586349491', 's852708600']
[3316.0, 2940.0, 2940.0]
[21.0, 17.0, 17.0]
[149, 205, 209]
p03285
u284363684
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.
['# input\nN = int(input())\npat = set(\n [\n fn\n for fn in range(4, 100, 4) \n ] + [\n sn\n for sn in range(7, 100, 7)\n ]\n)\n\nif N in pat:\n print("Yes")\nelse:\n print("No")', '# input\nN = int(input())\n\nfor seven_n in range(0, 101, 7):\n if N - seven_n % 4 == 0 or N - seven_n == 0:\n print("Yes")\n exit(0)\nprint("No")', '# input\nN = int(input())\n\n\nif N < 4:\n print("No")\nelse:\n for seven_n in range(0, N + 1, 7):\n if (N - seven_n) % 4 == 0 or N - seven_n == 0:\n print("Yes")\n exit(0)\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s677318151', 's818012555', 's210712422']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[205, 156, 220]
p03285
u293992530
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())\nn = N//7\nflag = 0\nfor i in range(n):\n p = N - i*7\n if(p%4 == 0):\n flag = 1\n break\nif(flag==1):\n print('Yes')\nelse:\n print('No')", "N = int(input())\nn = N//7\nflag = 0\nfor i in range(n+1):\n p = N - i*7\n if(p%4 == 0):\n flag = 1\n break\nif(flag==1):\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s508177493', 's736059038']
[2940.0, 2940.0]
[17.0, 17.0]
[170, 172]
p03285
u298297089
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 % 4) % 7 == 0 else 'No')", "N = int(input())\nfor i in range(N//7):\n if (N - i * 7) % 4 == 0:\n print('Yes')\n break\nelse:\n print('No')\n", "n = int(input())\nfor i in range((n+3)//4+1):\n if (n - i * 4 ) % 7 == 0:\n print('Yes')\n break\nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s188248669', 's447605067', 's482405722']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[59, 113, 131]
p03285
u302040595
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.
["ans = int(input())\nloopFlg = True\n\nfor i in range(26):\n if loopFlg == False:\n break\n for j in range(15):\n if 4*i + 7*j == ans:\n loopFlg = False\n\n \nif loopFlg == True:\n print('NO')\nelse:\n print('YES')", "ans = int(input())\nloopFlg = True\n\nfor i in range(26):\n if loopFlg == False:\n break\n for j in range(15):\n if 4*i + 7*j == ans:\n loopFlg = False\n\n \nif loopFlg == True:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s687247920', 's959318960']
[9152.0, 9056.0]
[28.0, 26.0]
[219, 219]
p03285
u304630225
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 if N=>4 and (N-(4*i))%7==0 :\n print("Yes")\n break\nelse :\n print("No")', 'N=int(input())\nfor i in range(N//4+1) :\n if (N-(4*i))%7==0 :\n print("Yes")\n break\nelse :\n print("No")']
['Runtime Error', 'Accepted']
['s475725828', 's651337729']
[2940.0, 2940.0]
[17.0, 17.0]
[114, 109]
p03285
u307159845
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.
["for i in range(100):\n for j in range(100):\n if flag == True:\n continue\n print(N - i * 7 - j * 4 )\n if N - i * 7 - j * 4 == 0:\n flag = True\n\nif flag == True:\n print('Yes')\nelse:\n print('No')\n", "import math\nN = int(input())\n\nflag = False\n\nfor i in range(ceil(N/7)+1):\n for j in range(ceil(N/4)+1):\n if flag == True:\n continue\n \n if N - i * 7 - j * 4 == 0:\n flag = True\n\nif flag == True:\n print('Yes')\nelse:\n print('No')\n", "import math\nN = int(input())\n\nflag = False\n\nfor i in range(math.ceil(N/7)+1):\n for j in range(math.ceil(N/4)+1):\n if flag == True:\n continue\n \n if N - i * 7 - j * 4 == 0:\n flag = True\n\nif flag == True:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s024917165', 's960174478', 's543591043']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[242, 303, 313]
p03285
u308684517
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())\nc = 4\nd = 7\nfor i in range(26):\n for j in range(16):\n if c*i + d*j == n:\n print(i,j)\n print("Yes")\n exit()\nprint("No")', 'n = int(input())\nc = 4\nd = 7\nfor i in range(26):\n for j in range(16):\n if c*i + d*j == n:\n print("Yes")\n exit()\nprint("No")']
['Wrong Answer', 'Accepted']
['s327515420', 's478851462']
[3060.0, 2940.0]
[17.0, 17.0]
[178, 155]
p03285
u311669106
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 4*i+7*j==n:\n ans+=1\nprint(ans)', 'n=int(input())\nans=0\nfor i in range(n//4+1):\n for j in range(n//7+1):\n if 4*i+7*j==n:\n ans+=1\nprint(ans)', 'n=int(input())\nfor s in range(n//4+1):\n for t in range(n//7+1):\n if 4*s+7*t==n:\n print("Yes")\n break\n else:\n print("No")', 'n=int(input())\nfor s in range(n//4+1):\n for t in range(n//7+1):\n if 4*s+7*t==n:\n print("Yes")\n break\n else:\n print("No")', 'n=int(input())\nfor s in range(n//4+1):\n for t in range(n//7+1):\n if 4*s+7*t==n:\n print("Yes")\n else:\n print("No")', 'n=int(input())\nd=0\nfor i in range(n//4+1):\n for j in range(n//7+1):\n if 4*i+7*j==n:\n d+=1\nprint(d)', 'n=int(input())\nd=0\nfor i in range(n//4+1):\n for j in range(n//7+1):\n if 4*i+7*j==n:\n d+=1\nprint("Yes" if d!=0 else "No")']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s250415238', 's414474809', 's452668473', 's563201539', 's699387629', 's849615569', 's514875200']
[2940.0, 2940.0, 2940.0, 3060.0, 3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[119, 125, 171, 170, 153, 119, 141]
p03285
u313111801
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*x+7*y for x in range(200) for y in range(200)]\nans="Yes" if N in a else "No"\nprint(ans)\nprint(type(4*x+7*y for x in range(200) for y in range(200)))', 'N=int(input())\na=[4*x+7*y for x in range(200) for y in range(200)]\nans="Yes" if N in a else "No"\nprint(ans)']
['Wrong Answer', 'Accepted']
['s540580772', 's214214227']
[10664.0, 10568.0]
[36.0, 37.0]
[168, 107]
p03285
u315703650
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(16):\n if (n%(i*7))%4==0:\n print("Yes")\n exit()\nprint("No")\n', 'n =int(input())\nfor i in range(16):\n for j in range(26):\n if i*7+j*4==n:\n print("Yes")\n exit()\nprint("No")\n']
['Runtime Error', 'Accepted']
['s403031262', 's151214726']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 139]
p03285
u319818856
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 cakes_and_donuts(N: int) -> bool:\n while N > 0:\n if N % 4 == 0:\n return True\n N -= 7\n\n return N == 0 # <=> N % 7 == 0\n\n\nif __name__ == "__main__":\n N = int(input())\n ans = cakes_and_donuts(N)\n print(ans)\n', 'def cakes_and_donuts(N: int) -> bool:\n while N > 0:\n if N % 4 == 0:\n return True\n N -= 7\n\n return N == 0 # <=> N % 7 == 0\n\n\nif __name__ == "__main__":\n N = int(input())\n yes = cakes_and_donuts(N)\n print(\'Yes\' if yes else \'No\')\n']
['Wrong Answer', 'Accepted']
['s497348689', 's923520175']
[2940.0, 2940.0]
[18.0, 17.0]
[249, 268]
p03285
u326208069
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\nwhile N > 0:\n if N%7 == 0 or N%4 == 0:\n print('yes')\n break\n N -= 7\n\nelse :\n print('No')", "N = int(input())\n\nwhile N > 0:\n if N%7 == 0 or N%4 == 0:\n print('yes')\n break\n N -= 4\n\nelse :\n print('No')", "N = int(input())\n\nwhile N > 0:\n if N%7 == 0 or N%4 == 0:\n print('yes')\n break\n N -= 4\n\nelse :\n print('No')", "\n\ndef no_change(N):\n while N > 0:\n if N%7 == 0 or N%4 == 0:\n return 'Yes'\n N -= 4 \n else :\n return 'No'\n\n\nN = int(input())\n\n\nprint(no_change(N))"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s281747125', 's335693538', 's406707337', 's094144679']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[129, 129, 129, 393]
p03285
u335295553
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 = False\nfor i4 in range(26):\n for i7 in range(15):\n if (i4*4)+(i7*7)==N:\n flag = True\n break\nprint("yes" if flag else "No")\n', 'N = int(input())\nflag = False\nfor i4 in range(30):\n for i7 in range(20):\n if (i4*4)+(i7*7)==N:\n flag = True\n break\nprint("Yes" if flag else "No")\n']
['Wrong Answer', 'Accepted']
['s403003050', 's312452760']
[2940.0, 2940.0]
[17.0, 17.0]
[178, 178]
p03285
u346828718
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.
['four_w = []\nseven_w = []\ncross = []\n\nfor i in range(1,100):\n if i % 4 == 0:\n four_w.append(i)\n elif i % 7 ==0:\n seven_w.append(i)\n\nfor four in four_w:\n for seven in seven_w:\n cross.append(four + seven)\n\nn = int(input())\n\nif n in four_w,seven_w,cross:\n print("Yes")\nelse:\n print("No")', 'four_w = []\nseven_w = []\ncross = []\n\nfor i in range(1,100):\n if i % 4 == 0:\n four_w.append(i)\n elif i % 7 ==0:\n seven_w.append(i)\n\nfor four in four_w:\n for seven in seven_w:\n cross.append(four + seven)\n\nn = int(input())\n\nn in four_w,seven_w,cross', 'four_w = []\nseven_w = []\ncross = []\n\nfor i in range(1,101):\n if i % 4 == 0:\n four_w.append(i)\n elif i % 7 ==0:\n seven_w.append(i)\n\nfor four in four_w:\n for seven in seven_w:\n cross.append(four + seven)\n\nn = int(input())\n\nif n in cross:\n print("Yes")\nelif n in seven_w:\n print("Yes")\nelif n in four_w:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s172199223', 's644640670', 's862819967']
[2940.0, 3060.0, 3064.0]
[17.0, 17.0, 17.0]
[319, 276, 375]
p03285
u347912669
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())\nf = 4\ns = 7\n\nfor i in range(n):\n for n in range(n):\n if s + f == n:\n ans = 1\n break\n\nif ans:\n print("Yes")\nelse:\n print("No")\n', 'n = int(input())\nif n <= 3:\n print("No")\nelif n == 5:\n print("No")\nelif n == 6:\n print("No")\nelif n == 9:\n print("No")\nelif n == 10:\n print("No")\nelif n == 13:\n print("No")\nelif n == 17:\n print("No") \nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s712493834', 's819512595']
[2940.0, 2940.0]
[17.0, 17.0]
[181, 248]
p03285
u350248178
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=int(input())\n\nb=int(a/7)\nc=int(a/4)\n\nfor i in range(b):\n for j in range(c):\n if 7*b+4*c==a:\n print("Yes")\n else:\n print("No")\n\n', 'a=int(input())\n\nb=int(a/7)\nc=int(a/4)\nk=0\n\nfor i in range(b+1):\n for j in range(c+1):\n if 7*i+4*j==a:\n k=1\nif k==1:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s168708837', 's159534971']
[3064.0, 3060.0]
[17.0, 17.0]
[168, 175]
p03285
u350412774
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 = map(int, input().split())\n\nfor i in range(int(100/7)+1):\n for j in range(int(100/4)+1):\n if i*7 + j*4 == N:\n print('Yes')\n return\nprint('No')\n ", "import sys\nN = map(int, input().split())\nN = N[0]\nfor i in range(int(100/7)+1):\n\tfor j in range(int(100/4)+1):\n\t\ta = i*7 + j*4\n\t\tif int(N) == a:\n\t\t\tprint('Yes')\n\t\t\tsys.exit();\n\nprint('No')\n", "N = int(input())\nres = 'No'\nfor i in range(int(100/7)+1):\n\tfor j in range(int(100/4)+1):\n\t\ta = i*7 + j*4\n\t\tif int(N) == a:\n\t\t\tprint('Yes')\nprint(res)\n", "import sys\nN = map(int, '4'.split())\nN = N[0]\nfor i in range(int(100/7)+1):\n\tfor j in range(int(100/4)+1):\n\t\ta = i*7 + j*4\n\t\tif int(N) == a:\n\t\t\tprint('Yes')\n\t\t\tsys.exit();\n\nprint('No')\n", "N = int(input())\nres = 'No'\nfor i in range(int(100/7)+1):\n\tfor j in range(int(100/4)+1):\n\t\ta = i*7 + j*4\n\t\tif int(N) == a:\n\t\t\tres='Yes'\nprint(res)\n"]
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s322084520', 's649183129', 's767815824', 's805564948', 's924250325']
[2940.0, 2940.0, 3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 18.0]
[166, 189, 150, 185, 147]
p03285
u350909943
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())\nanswer="No"\nfor i in range(26):\n for j in range(16):\n total = 4*i + 7*j\n \n if total==N:\n answer="yes"\n\nprint(answer)', 'N = int(input())\nanswer="No"\n\nfor i in range(26):\n for j in range(16):\n total = 4*i + 7*j\n \n if total==N:\n answer="Yes"\n\nprint(answer)']
['Wrong Answer', 'Accepted']
['s048572009', 's795617551']
[9020.0, 9128.0]
[30.0, 30.0]
[148, 149]
p03285
u353652911
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\nx=n//4\ny=n//7\n\nprint("yes" if len([n-4*a-7*b for b in range(y+1) for a in range(x+1) if n-4*a-7*b==0])!=0 else "no")\n', 'n=int(input())\n\nx=n//4\ny=n//7\n\nprint("Yes" if len([n-4*a-7*b for b in range(y+1) for a in range(x+1) if n-4*a-7*b==0])!=0 else "No")\n']
['Wrong Answer', 'Accepted']
['s095880943', 's689364644']
[2940.0, 2940.0]
[17.0, 17.0]
[133, 133]
p03285
u354847446
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, x = map(int, input().split())\n#h = list(map(int, input().split()))\n#s = list(str(input()))\n\ncounter = 0\nmax = int(n/4)\nfor i in range(max):\n for ii in range(max):\n if(n == i*7 + ii*4):\n counter = counter +1\nprint(counter)', 'n = int(input())\n\ncounter = 0\nmax = int(n/4) + 1\nfor i in range(max):\n for ii in range(max):\n if(n == i*7 + ii*4):\n counter = counter +1\n\nif(counter >= 1):\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s729952553', 's442533644']
[2940.0, 3060.0]
[17.0, 17.0]
[252, 199]
p03285
u357751375
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())\ncakeA = round(N / 4)\ncakeB = round(N / 7)\ncount = 0\n\nfor a in range(cakeA):\n for b in range(cakeB):\n if (4 * a)+(7 * b) == N:\n count = count + 1\nprint(count)\n', 'N = int(input())\ncakeA = round(N / 4)\ncakeB = round(N / 7)\ncount = 0\n\nfor a in round(cakeA):\n for b in round(cakeB):\n if (4 * a)+(7 * b) == N:\n count = count + 1\nprint(count)', "n = int(input())\n\nfor i in range(n):\n for j in range(n):\n if 4 * i + 7 * j == n:\n print('Yes')\n exit(0)\n\nprint('No')\n"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s023418024', 's151834090', 's207512264']
[2940.0, 2940.0, 9104.0]
[17.0, 18.0, 27.0]
[196, 195, 149]
p03285
u365364616
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 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 i*4 + j*7 == N:\n print('Yes')\n exit()\nprint('No')"]
['Wrong Answer', 'Accepted']
['s537112109', 's766938365']
[2940.0, 2940.0]
[17.0, 17.0]
[151, 159]
p03285
u370429695
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())\nmax_f = int(n / 4)\nmax_s = int(n / 7)\nswitch = 0\nfor i in range(max_s + 1):\n for j in range(max_f + 1):\n if (7 * i + 4 * j) == n:\n switch = 1\nif switch == 1:\n print(Yes)\nelse:\n print(No)', 'n = int(input())\nmax_f = int(n / 4)\nmax_s = int(n / 7)\nswitch = 0\nfor i in range(max_s + 1):\n for j in range(max_f + 1):\n if (7 * i + 4 * j) == n:\n switch = 1\nif switch == 1:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s628134337', 's004313589']
[3060.0, 3060.0]
[17.0, 17.0]
[230, 234]
p03285
u370576244
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())\nq = 0\nflug = 0\nwhile q <= N :\n if N%7 == 0:\n flug = 1\n break\n\tif N - q % 4 == 0:\n\t\tflug = 1\n\t\tbreak\n\tq = q + 7\n\nif flug == 1:\n\tprint("Yes")\nelse:\n\tprint("No")', 'N = int(input())\nq = 0\nflug = 0\nwhile q <= N :\n\tif N - q % 4 == 0:\n\t\tflug = 1\n\t\tbreak\n\tq = q + 7\n\nif flug == 1:\n\tprint("Yes")\nelse:\n\tprint("No")', 'N = int(input())\nq = 0\nflug = 0\nwhile q <= N :\n\tif N%7 == 0:\n\t\tflug = 1\n\t\tbreak\n\t\n\tif (N-q)%4 == 0:\n\t\tflug = 1\n\t\tbreak\n\tq = q + 7\n \nif flug == 1:\n\tprint("Yes")\nelse:\n\tprint("No")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s131831770', 's457746790', 's305683476']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[212, 144, 178]
p03285
u375695365
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(50):\n for j in range(50):\n if n==4*i+7*j:\n print("Yes")\n break\nelse:\n print("No")\n', 'n=int(input())\nfor i in range(50):\n for j in range(50):\n if n==4*i+7*j:\n print("Yes")\n exit()\n\nprint("No")\n']
['Wrong Answer', 'Accepted']
['s975012497', 's599263945']
[2940.0, 2940.0]
[18.0, 18.0]
[147, 139]
p03285
u379424722
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\nsum = 0\nfor i in range(30):\n for j in range(20):\n total = 4*i + 7*j\n if total == N:\n sum += 1\n\n\nprint(sum)', 'N = int(input())\n\nsum = 0\nfor i in range(30):\n for j in range(20):\n total = 4*i + 7*j\n if total == N:\n sum += 1\n\nif sum > 0:\n print("Yes")\nelse:\n print("No")\n ']
['Wrong Answer', 'Accepted']
['s847214979', 's464436816']
[2940.0, 2940.0]
[18.0, 20.0]
[152, 204]
p03285
u379689547
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 calc(a):\n for a4 in range(26):\n for a7 in range(16):\n if a4*4+a7*7 == a:\n return "Yes"\n return "No"\n\nif __name__ == \'__main__\':\n calc(int(input()))\n ', 'def calc(a):\n for a4 in range(26):\n for a7 in range(16):\n if a4*4+a7*7 is a:\n return "Yes"\n return "No"\n\nif __name__ == \'__main__\':\n calc(int(input())\n ', 'def calc(a):\n a = int(input())\n for a4 in range(26):\n for a7 in range(16):\n if a4*4+a7*7 is a:\n return "Yes"\n return "No"\n\nif __name__ == \'__main__\':\n calc(int(input())\n ', 'def calc(a):\n for a4 in range(26):\n for a7 in range(16):\n if a4*4+a7*7 == a:\n return "Yes"\n return "No"\n\nif __name__ == \'__main__\':\n print(calc(int(input())))\n']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s582902660', 's663403464', 's909496935', 's197702717']
[2940.0, 3068.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0]
[176, 175, 194, 177]
p03285
u382423941
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:\n print('No')\nelse:\n m = n % 4\n if n >= (4 - m) * 7:\n print(n, 'Yes')\n else:\n print('No')\n", "n = int(input())\nif n < 4:\n print('No')\nelse:\n m = n % 4\n if m == 0 or n >= (4 - m) * 7:\n print(n, 'Yes')\n else:\n print('No')\n", "n = int(input())\nif n < 4:\n print('No')\nelse:\n m = n % 4\n if m == 0 or n >= (4 - m) * 7:\n print('Yes')\n else:\n print('No')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s385702528', 's880300714', 's359441961']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[142, 152, 149]
p03285
u382639013
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 = [i for i in range(4, N+1, 4)]\n\ndons = [i for i in range(7, N +1, 7)]\n\nans = "No"\nfor i in range(N//4):\n for j in range(N//7):\n if cake[i] + dons[j] == N:\n ans = "Yes"\n break\n\nans', "n = int(input())\nfor i in range(n//7+1):\n if (n-7*i)%4==0:\n print('Yes')\n break\n else:\n print('No')", "n = int(input())\nfor i in range(n//7+1):\n if (n-7*i)%4==0:\n print('Yes')\n break\nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s637021537', 's647606764', 's956717431']
[9124.0, 9068.0, 9076.0]
[28.0, 25.0, 26.0]
[235, 126, 118]
p03285
u385244248
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\nfor i in range(100):\n for l in range(100):\n if 4*i + 7*l == int(input()):\n print("Yes")\n sys.exit()\nprint("No")', 'import sys\nN = int(input())\nfor i in range(100):\n for l in range(100):\n if 4*i + 7*l == N:\n print("Yes")\n sys.exit()\nprint("No")']
['Runtime Error', 'Accepted']
['s488334841', 's838691781']
[2940.0, 2940.0]
[17.0, 19.0]
[154, 160]
p03285
u388697579
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 numpy as np\na = int(input())\nc = np.zeros(a)\nfor i in range(7):\n\tif(i == 3 or i == 6):\n\t\tc[i] = 1\n#print(c)\nfor i in range(7, 40):\n\tif(c[i-4] == 1 or c[i-7] == 1):\n\t\tc[i] = 1\nif(c[-1] == 1):\n\tprint("Yes")\nelse:\n\tprint("No")', 'import numpy as np\na = int(input())\nif(a > 7):\n\tc = np.zeros(a)\n\tfor i in range(7):\n\t\tif(i == 3 or i == 6):\n\t\t\tc[i] = 1\n\t#print(c)\n\tfor i in range(7, c.shape[0]):\n\t\tif(c[i-4] == 1 or c[i-7] == 1):\n\t\t\tc[i] = 1\n\tif(c[-1] == 1):\n\t\tprint("Yes")\n\telse:\n\t\tprint("No")\nelse:\n\tif(a == 4 or a == 7):\n\t\tprint("Yes")\n\telse:\n\t\tprint("No")\n\t\t']
['Runtime Error', 'Accepted']
['s421877898', 's540889966']
[12848.0, 15596.0]
[486.0, 881.0]
[230, 329]
p03285
u391819434
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*H,=map(int,input().split())\nRH=H[::-1]\n\nans='Yes'\ni=0\nwhile i+1<=N-1:\n if RH[i+1]-RH[i]==1:\n RH[i+1]-=1\n elif RH[i+1]-RH[i]>=", "N=int(input())\n\nans='No'\ni=0\nwhile 7*i<=N:\n if (N-7*i)%4==0:\n ans='Yes'\n i+=1\n\nprint(ans)"]
['Runtime Error', 'Accepted']
['s137841558', 's465121298']
[2940.0, 2940.0]
[17.0, 17.0]
[154, 102]
p03285
u391875425
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())\nf = False\nfor i in range(int(n/4)):\n for j in range(int(n/7)):\n if 4*i + 7*j == n:\n f = True\nif f:\n print('Yes')\nelse:\n print('No')", "n = int(input())\nf = False\nfor i in range(int(n/4)):\n for j in range(int(n/7)):\n if 4*i + 7*j == n:\n f = True\nif f and n>3:\n print('Yes')\nelse:\n print('No')", "n = int(input())\nf = False\nfor i in range(int(n/4)):\n for j in range((n/7)):\n if 4*i + 7*j == n:\n f = True\nif f:\n print('Yes')\nelse:\n print('No')", "n = int(input())\nf = False\nfor i in range(int(n/4)):\n for j in range(int(n/7)):\n if 4*i + 7*j == n:\n f = True\nif f and n>3:\n print('Yes')\nelse:\n print('No')", "import math\nn = int(input())\nans = 'No'\nfor i in range(math.ceil(n/4)+1):\n for j in range(math.ceil(n/7)+1):\n if 4*i + 7*j == n:\n ans = 'Yes'\nprint(ans)"]
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s123896945', 's343321010', 's877622877', 's998661142', 's690164611']
[2940.0, 2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[165, 173, 162, 179, 173]
p03285
u392029857
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 det(n)\n if n % 4 == 0:\n return 'Yes'\n elif n % 7 == 0:\n return 'Yes'\n elif n < 4 or (5 <= n and n <= 6):\n return 'No'\n seven = range(n//7 + 1)\n for i in seven:\n if (n - seven*7) % 4 == 0:\n return 'Yes'\n return 'No'\nn = int(input())\nprint(det(n))\n ", "def det(n):\n seven = range((n // 7) + 1)\n four = range((n // 4) + 1)\n for i in seven:\n for p in four:\n if (i*7 + p*4) == n:\n return 'Yes'\n return 'No'\nx = int(input)\nprint(det(x))", "def det(n):\n seven = range((n // 7) + 1)\n four = range((n // 4) + 1)\n for i in seven:\n for p in four:\n if (i*7 + p*4) == n:\n return 'Yes'\n return 'No'\nx = int(input())\nprint(det(x))"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s821913965', 's829981434', 's963171880']
[2940.0, 2940.0, 2940.0]
[18.0, 19.0, 17.0]
[311, 224, 226]
p03285
u395202850
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())\nswi = "No"\nfor a in range(100):\n if (n - 4*a) % 7 == 0 and n - 4*a >= 0:\n swi="Yes"\n break\nprint(swi)\n \n ', 'n=int(input())\nswi = "No"\nfor a in range(n//4 +1)\n if (n - 4*a) % 7 == 0 and n - 4*a >= 0:\n swi="Yes"\n break\nprint(swi)\n \n ', 'n=int(input())\nswi = "No"\nfor a in range(100)\n if (n - 4*a) % 7 == 0 and n - 4*a >= 0:\n swi="Yes"\n break\nprint(swi)\n \n ', 'n = int(input())\nswi = "No"\nfor a in range(100):\n b = n - 4*a\n if b % 7 == 0 and b >= 0:\n swi = "Yes"\n break\nprint(swi)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s688173924', 's742570167', 's891640863', 's034396570']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[139, 140, 136, 148]
p03285
u396391104
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 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 i*4 + j*7 == n:\n print("Yes")\n exit()\nprint("No")\n']
['Wrong Answer', 'Accepted']
['s235705137', 's930412150']
[2940.0, 2940.0]
[17.0, 17.0]
[129, 134]
p03285
u399721252
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())\ndmax = n // 7\nans = "No"\nfor i in range(dmax):\n if (n - i*7) % 4 == 0:\n ans = "Yes"\n break\nprint(ans)', 'n = int(input())\ndmax = n // 7\nans = "No"\nfor i in range(dmax+1):\n\tif (n - i*7) % 4 == 0:\n\t\tans = "Yes"\n\t\tbreak\nprint(ans)']
['Wrong Answer', 'Accepted']
['s557341338', 's928513451']
[2940.0, 2940.0]
[17.0, 17.0]
[125, 122]
p03285
u409542115
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\nsum = 0\nflag = 0\n\n\na = int(N / 7)\nre = N % 7\n\nif re == 0 and N != 0:\n print('Yes')\n flag += 1\nelse:\n for i in range(a+1):\n sum = 7 * i\n# print(sum)\n while sum<N:\n sum += 4\n# print(sum)\n if sum == N:\n print('Yed')\n flag += 1\n if flag == 1:\n break\n\nif flag == 0:\n print('No')\n \n", "N = int(input())\n\nsum = 0\nflag = 0\n\n\na = int(N / 7)\nre = N % 7\n\nif re == 0 and N != 0:\n print('Yes')\n flag += 1\nelse:\n for i in range(a+1):\n sum = 7 * i\n# print(sum)\n while sum<N:\n sum += 4\n# print(sum)\n if sum == N:\n print('Yes')\n flag += 1\n if flag == 1:\n break\n\nif flag == 0:\n print('No')\n \n"]
['Wrong Answer', 'Accepted']
['s578896593', 's874766971']
[3060.0, 3064.0]
[17.0, 17.0]
[423, 423]
p03285
u409974118
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 = False\nfor n in range(1,25):\n for i in range(1,15):\n if n * 4 + i*7 ==n:\n flag = True\nif flag :\n print("Yes")\nelse :\n print("No")', 'n = int(input())\nflag = False\nfor t in range(0,25):\n for i in range(0,15):\n if t !=0 or i != 0:\n if t*4 + i*7==n:\n flag = True\nif flag :\n print("Yes")\nelse :\n print("No")']
['Wrong Answer', 'Accepted']
['s275999375', 's572127251']
[2940.0, 2940.0]
[17.0, 17.0]
[179, 212]
p03285
u414877092
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 if i*4>N:\n continue\n if (N-i*4)%7==0:\n print("Yes")\n \nprint("No")', 'N=int(input())\nfor i in range(26):\n if (N-i*4)%7==0 and N-i*4>=0:\n print("Yes")\n exit()\n \nprint("No")']
['Wrong Answer', 'Accepted']
['s733926590', 's594118669']
[2940.0, 2940.0]
[17.0, 17.0]
[132, 129]
p03285
u432226259
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.
["cake = 4\ndonaut = 7\nN = int(input())\ncount = 0\n\nfor i in range(0, 20):\n\tfor k in range(0, 20):\n\t\tif N == cake * i + donaut * k:\n\t\t\tprint(str(i) + ',' + str(k))\n\t\t\tcount = 1\n\t\t\tbreak\n\nif count == 0:\n\tprint('No')\nelse:\n\tprint('Yes')", "cake = 4\ndonaut = 7\nN = int(input())\ncount = 0\n\nfor i in range(0, 20):\n\tfor k in range(0, 20):\n\t\tif N == cake * i + donaut * k:\n\t\t\tcount = 1\n\t\t\tbreak\n\nif count == 0:\n\tprint('No')\nelse:\n\tprint('Yes')"]
['Wrong Answer', 'Accepted']
['s975029424', 's528876337']
[3060.0, 3060.0]
[18.0, 17.0]
[230, 198]
p03285
u432805419
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 = int(input())\n\nif a <= 3:\n print("No")\nelse:\n while a >= 0:\n if a % 4 == 0:\n print("YES")\n break\n else:\n a -= 7\n if a < 0:\n print("No")\n break\n', 'a = int(input())\n\nif a <= 3:\n print("No")\nelse:\n while a >= 0:\n if a % 4 == 0:\n print("YES")\n break\n else:\n a -= 7\n print("No")', 'a = int(input())\n\nif a <= 3:\n print("No")\nelse:\n while a >= 0:\n if a % 4 == 0:\n print("Yes")\n break\n else:\n a -= 7\n else:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s089274438', 's838891267', 's128440354']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[188, 151, 161]
p03285
u434872492
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 = N//4\ndonuts = N//7\nfor i in range(cake):\n for j in range(donuts):\n if (4*i+7*j) == N:\n print("Yes")\n exit()\nprint("No")', 'N = int(input())\n\ncake = N//4\ndonuts = N//7\nfor i in range(cake+1):\n for j in range(donuts+1):\n if (4*i+7*j) == N:\n print("Yes")\n exit()\nprint("No")']
['Wrong Answer', 'Accepted']
['s444461234', 's216939980']
[2940.0, 2940.0]
[17.0, 17.0]
[176, 180]
p03285
u437638594
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"\n\nfor i in range(N // 7):\n tmp = N - 7 * i\n if tmp % 4 == 0:\n ans = "Yes"\n break\n \nprint(ans)', 'N = int(input())\n\nans = "No"\n\nfor i in range(N // 7 + 1):\n tmp = N - 7 * i\n # print(tmp)\n if tmp % 4 == 0:\n ans = "Yes"\n break\n \nprint(ans)']
['Wrong Answer', 'Accepted']
['s677467987', 's248912881']
[2940.0, 2940.0]
[17.0, 17.0]
[132, 151]
p03285
u439333295
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.
["from math import floor\n\ndef main():\n n = int(input())\n\n for i in range(110):\n dp.append(10000000)\n dp[0] = 0\n\n seven = floor(n/7)\n for i in range(seven+1):\n mod = n - i*7\n if mod % 4 == 0:\n print('Yes')\n return\n print('No')\n\n\nmain()\n", "from math import floor\n\ndef main():\n n = int(input())\n\n seven = floor(n/7)\n for i in range(seven+1):\n mod = n - i*7\n if mod % 4 == 0:\n print('Yes')\n return\n print('No')\n\n\nmain()\n"]
['Runtime Error', 'Accepted']
['s470289855', 's811146633']
[3060.0, 2940.0]
[17.0, 17.0]
[294, 226]
p03285
u441320782
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(1,101,7):\n for j in range(1,101,4):\n if N==i*7+j*4:\n flag = 1\n break\n else:\n flag = 0\nif flag == 1:\n print("Yes")\nelse:\n print("No")\n ', 'N = int(input())\nflag = 0\nfor i in range(0, 101, 7):\n if flag==1:\n break\n for j in range(0, 101, 4):\n if N == i + j:\n flag = 1\n break\n\nif flag == 1:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s570456641', 's295058241']
[2940.0, 3060.0]
[17.0, 17.0]
[198, 229]
p03285
u444732068
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\ncounter = 0\nfor number_cake in range(0,N):\n\tif(((N-number_cake*4) % 7 == 0)&&(N >= number_cake*4)):\n\t\tcounter += 1\n\nif(counter > 0):\n\tprint("Yes")\nelse:\n\tprint("No")\n', 'N = int(input())\n\ncounter = 0\nfor number_cake in range(0,N):\n\tfor number_donut in range(0,N):\n\t\tif(N == number_cake*4+number_donut*7):\n\t\t\tcounter += 1\n\nif(counter > 0):\n\tprint("Yes")\nelse:\n\tprint("No")\n']
['Runtime Error', 'Accepted']
['s589187414', 's966562959']
[2940.0, 2940.0]
[17.0, 19.0]
[184, 202]
p03285
u444856278
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 == 0 and j == 0:\n continue\n if 4*i + 7*j == n:\n print("Yes")\n break\nelse:\n print("No")', 'from sys import exit\nn = int(input())\n\nfor i in range(n//4+1):\n for j in range(n//7+1):\n if i == 0 and j == 0:\n continue\n if 4*i + 7*j == n:\n print("Yes")\n exit()\nprint("No")\n']
['Wrong Answer', 'Accepted']
['s035489258', 's012060737']
[3060.0, 2940.0]
[17.0, 17.0]
[182, 197]
p03285
u445511055
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.
['# -*- coding: utf-8 -*-\n\n\ndef main():\n """Function."""\n n = int(input())\n\n check = set()\n for i in range(26):\n for j in range(15):\n temp = 4 * i + 7 * j\n print(i, j, temp)\n if temp > 100:\n pass\n else:\n check.add(temp)\n\n check.remove(0)\n\n if n in check:\n print("Yes")\n else:\n print("No")\n\n\nif __name__ == "__main__":\n main()\n', '# -*- coding: utf-8 -*-\n\n\ndef main():\n """Function."""\n n = int(input())\n\n check = set()\n for i in range(26):\n for j in range(15):\n temp = 4 * i + 7 * j\n if temp > 100:\n pass\n else:\n check.add(temp)\n\n check.remove(0)\n\n if n in check:\n print("Yes")\n else:\n print("No")\n\n\nif __name__ == "__main__":\n main()\n']
['Wrong Answer', 'Accepted']
['s443483863', 's799256764']
[3188.0, 3060.0]
[19.0, 18.0]
[443, 413]
p03285
u445927145
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.
['class Solver(object):\n def __init__(self):\n self.valids = self._generate_valid_list()\n self.n = int(input())\n\n def solve(self):\n if self.n in self.valids:\n print("Yes")\n else:\n print("No")\n\n def _generate_valid_list(self):\n valids = set()\n for cake in range(26): # 0 .. 25\n if cake == 1:\n continue\n for donut in range(16): # 0 .. 15\n if donut == 1:\n continue\n valids.add( (donut*7) + (cake*4) )\n return valids\n \n \n\n\nif __name__ == "__main__":\n s = Solver()\n s.solve()', 'class Solver(object):\n def __init__(self):\n self.valids = self._generate_valid_list()\n self.n = int(input())\n\n def solve(self):\n if self.n in self.valids:\n print("Yes")\n else:\n print("No")\n\n def _generate_valid_list(self):\n valids = set()\n for cake in range(26): # 0 .. 25\n for donut in range(16): # 0 .. 15\n valids.add( (donut*7) + (cake*4) )\n return valids\n\n\nif __name__ == "__main__":\n s = Solver()\n s.solve()']
['Wrong Answer', 'Accepted']
['s745572539', 's711362743']
[3064.0, 3060.0]
[21.0, 17.0]
[670, 525]
p03285
u454255725
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()\nN = int(n)\n\nfor x in range(25):\n\tfor y in range(14):\n\t\ta = 4*x + 7*y\n\n\t\tif a == N:\n\t\t\tprint("Yes")\n\t\t\tbreak\nelse:\n\tprint("No")', 'n = input()\nN = int(n)\n\nfor x in range(25):\n\tfor y in range(14):\n\t\ta = 4*x + 7*y\n\t\tif a == N:\n\t\t\tprint("Yes")\n\t\t\tbreak\n\telse:\n\t\tcontinue\n\tbreak\nelse:\n\tprint("No")']
['Wrong Answer', 'Accepted']
['s975780513', 's020806032']
[2940.0, 2940.0]
[17.0, 17.0]
[138, 162]
p03285
u455533363
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())\ncount = 0\n\nfor i in range(26):\n for j in range(26):\n if (4*i+7*j)==n:\n count += 1\n \nprint(count)', 'n = int(input())\ncount = 0\n\nfor i in range(n+1):\n for j in range(n+1):\n if (4*i+7*j)==n:\n count += 1\n \nprint(count)', 'n = int(input())\ncount = 0\n\nfor i in range(26):\n for j in range(26):\n if (4*i+7*j)==n:\n count += 1\nif count == 0:\n print("No")\n \nelse:\n print("Yes")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s474071470', 's727188665', 's593436734']
[3060.0, 2940.0, 2940.0]
[20.0, 19.0, 17.0]
[127, 129, 160]
p03285
u462214100
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 exit()\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\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 exit()\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', 'Runtime Error', 'Runtime Error', 'Accepted']
['s227055752', 's410256530', 's500850029', 's165065892']
[2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[217, 197, 216, 216]
p03285
u466331465
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 = int(input())\nfor i in range(0,26):\n for j in range(0,15):\n if a==(i*4+j*7):\n print("Yes")\nprint("No")', 'a = int(input())\nfor i in range(0,26):\n for j in range(0,15):\n if a==(i*4+j*7):\n print("Yes")\n exit()\nprint("No")']
['Wrong Answer', 'Accepted']
['s960224119', 's906980978']
[2940.0, 2940.0]
[17.0, 17.0]
[114, 127]
p03285
u466968658
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=0\nfor i in range(26):\n for j in range(15):\n if 4*i+7*j==int(N):\n flag=1\n break\n\nif flag==1:\n print("Yes")\nelse:\n print("No")', 'N=input()\nflag=0\nfor i in range(25):\n for j in range(14):\n if 4*i+7*j==int(N):\n flag=1\n break\n\nif flag==1:\n print("Yes")\nelse:\n print("No")', 'N=input()\nflag=0\nfor i in range(26):\n for j in range(15):\n if 4*i+7*j==int(N):\n flag=1\n break\n\nif flag==1:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s218539677', 's961848827', 's047292401']
[2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[152, 152, 153]
p03285
u468972478
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 4 * i + 7 * j == n:\n print("Yes")\n break\n else:\n continue\n break\nelse:\n print("No")', 'n = int(input())\nprint("Yes" if any((n - i*7) % 4 == 0 for i in range(n // 7 + 1) else "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 break\n else:\n continue\n print("No")\n break', 'n = int(input())\nprint("Yes" if any((n - i*7) % 4 == 0 for i in range(n // 7 + 1)) else "No")']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s514249834', 's608526073', 's635862774', 's635341911']
[9144.0, 9028.0, 9108.0, 9148.0]
[31.0, 26.0, 28.0, 29.0]
[181, 92, 175, 93]
p03285
u469239325
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())\nlista = [4:101:4]\nlistb = [7:101:7]\nflag = False\nfor i in lista:\n for j in listb:\n if i+j == n:\n flag = True\n break\nif flag:\n print('Yes')\nelse:\n print('No') \n", "n = int(input())\nlista = [4:101:4]\nlistb = [7:101:7]\nflag = False\nfor i in lista:\n for j in listb:\n if i+j == n:\n flag = True\n break\nif flag:\n print('Yes')\nelse:\n print('No') \n", "n = int(input())\nlista = [4*i for i in range((100//4)+1)]\nlistb = [7*i for i in range((100//7)+1)]\nflag = False\nfor i in lista:\n for j in listb:\n if i+j == n:\n flag = True\nif flag:\n print('Yes')\nelse:\n print('No') "]
['Runtime Error', 'Runtime Error', 'Accepted']
['s685090483', 's924200214', 's981877503']
[2940.0, 2940.0, 3060.0]
[18.0, 18.0, 17.0]
[217, 217, 244]
p03285
u472065247
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 = False\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:\n print('Yes')\nelse:\n print('No')\n", "n = int(input())\n \nflag = False\nfor i in range(n // 4 + 1):\n for j in range(n // 7 + 1):\n if i * 4 + j * 7 == n:\n flag = True\n\nif flag:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s151466071', 's786958914']
[2940.0, 3060.0]
[18.0, 17.0]
[171, 179]
p03285
u475675023
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=0\nfor A in range(26):\n for B in range(15):\n if 4*A+7*B==N:\n flag=1\nif flag==1:\n print("Yes")\nelse:\n print("No")\n ', 'N=int(input())\nflag=0\nfor A in range(26):\n for B in range(15):\n if 4*A+7*B==N:\n flag=1\nif flag==1:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s720549977', 's211901777']
[2940.0, 2940.0]
[17.0, 17.0]
[144, 142]
p03285
u481533080
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()\nans = "No"\nfor i in range(15):\n N = N-7\n print(N)\n if N <= 0:\n if N%3 == 0:\n ans="Yes"\n break\nprint(ans)', 'N = int(input())\nans = "No"\nif N%4==0:\n ans = "Yes"\nfor i in range(15) :\n N = N - 7\n if N < 0:\n break\n if N%4==0:\n ans = "Yes"\nprint(ans)']
['Runtime Error', 'Accepted']
['s499934170', 's578012183']
[9080.0, 9156.0]
[27.0, 29.0]
[150, 163]
p03285
u488934106
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 copy\n\ndef CakesandDonuts(n):\n\n ans = "No"\n a = copy.copy(n)\n\n if n % 7 == 0 or n % 4 == 0:\n ans = "Yes"\n else:\n while a < 0:\n n -= 7\n a -= 4\n if n % 4 == 0 or a % 7 == 0:\n ans = "Yes"\n\n return ans\n\ndef main():\n n = int(input())\n print(CakesandDonuts(n))\n\nif __name__ == \'__main__\':\n main()', 'import copy\n\ndef CakesandDonuts(n):\n\n ans = "No"\n a = copy.copy(n)\n\n if n % 7 == 0 or n % 4 == 0:\n ans = "Yes"\n else:\n while a > 0:\n n -= 7\n a -= 4\n if (n > 0 and n % 4 == 0) or (a > 0 and a % 7 == 0):\n ans = "Yes"\n\n return ans\n\ndef main():\n n = int(input())\n print(CakesandDonuts(n))\n\nif __name__ == \'__main__\':\n main()']
['Wrong Answer', 'Accepted']
['s773307405', 's048900200']
[3444.0, 3444.0]
[22.0, 22.0]
[382, 406]
p03285
u491656579
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 < 4:\n print('No')\n exit()\n \nfor i in range(1, n % 7):\n tmp = n - 7 * i\n if tmp % 4 == 0:\n print('Yes')\n exit()\nfor i in range(1, n & 4):\n tmp = n - 4 * i\n if tmp % 7 == 0:\n print('Yes')\n exit()\n\nprint('No')", "n = int(input())\n\nif n < 4:\n print('No')\n exit()\nelif n % 7 == 0 or n % 4 == 0:\n print('Yes')\n exit()\nelif n % 7 % 4 == 0 or n % 4 % 7 == 0:\n print('Yes')\n exit()\nelse:\n for i in range(1, n % 7):\n tmp = n - 7 * i\n if tmp < 0:\n break\n elif tmp % 4 == 0:\n print('Yes')\n exit()\n for i in range(1, n & 4):\n tmp = n - 4 * i\n if tmp < 0:\n break\n elif tmp % 7 == 0: \n print('Yes')\n exit()\n\nprint('No')"]
['Runtime Error', 'Accepted']
['s037338420', 's116538969']
[3060.0, 3064.0]
[17.0, 17.0]
[368, 611]
p03285
u503221936
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())\nn = N // 7\nflag = 0\nfor i in range(n + 1):\n if (N - n*7) % 4 == 0:\n print("Yes")\n flag = 1\n break:\nif flag == 0:\n print("No")', 'N = int(input())\nn = N // 7\nflag = 0\nfor i in range(n + 1):\n if (N - i*7) % 4 == 0:\n print("Yes")\n flag = 1\n break\nif flag == 0:\n print("No")']
['Runtime Error', 'Accepted']
['s318592599', 's677764097']
[2940.0, 3060.0]
[17.0, 17.0]
[153, 152]
p03285
u506549878
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\ncnt = 0\nflg = 0\nfor i in range(a+1):\n for j in range(b+1):\n if 4*i+7*j == n:\n flg = 1\n exit()\nprint('Yes' if flg==1 else 'No') ", "n = int(input())\na = n//4\nb = n//7\ncnt = 0\nflg = 0\nfor i in range(a+1):\n for j in range(b+1):\n if 4*i+7*j == n:\n flg = 1\n \nprint('Yes' if flg==1 else 'No') "]
['Wrong Answer', 'Accepted']
['s869436499', 's734101490']
[3060.0, 3060.0]
[17.0, 17.0]
[201, 195]
p03285
u508273185
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())\nwhile n>0:\n if n%4==0:\n print("Yes")\n break\n elif n%7==0:\n print("Yes")\n break\n elif n%11==0:\n print("Yes")\n break\n else:\n break\nwhile n>0:\n i=1\n n = n-4*i\n if n%7==0:\n print("Yes")\n break\n if n<=0:\n print("No")\n', 'n = int(input())\nwhile n>0:\n if n%4==0:\n print("Yes")\n break\n elif n%7==0:\n print("Yes")\n break\n elif n%11==0:\n print("Yes")\n break\n elif(1):\n i=1\n n = n-4*i\n if n%7==0:\n print("Yes")\n break\n if n<=0:\n print("No")']
['Wrong Answer', 'Accepted']
['s918233995', 's839541595']
[2940.0, 3060.0]
[18.0, 18.0]
[323, 356]
p03285
u509094491
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.
['answer=0\na=int(input())\n\nfor i in range(a):\n for j in range(a):\n sum=i*4+j*7\n if sum==a:\n answer+=1\nprint(answer)', 'answer=0\na=int(input())\n\nfor i in range(a):\n for j in range(a):\n sum=i*4+j*7\n if sum==a:\n answer+=1\nif answer>0:\n print("Yes")\nelse :\n print("No")\n \n ']
['Wrong Answer', 'Accepted']
['s421698364', 's697396094']
[2940.0, 2940.0]
[19.0, 19.0]
[141, 186]
p03285
u513081876
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 = False\nfor i7 in range(20):\n for i4 in range(30):\n if i7 * 7 + i4 * 4 == N:\n frag = True\n print('Yes')\n break\n if flag:\n break\n\nelse:\n print('No')", "N = int(input())\nfor i7 in range(20):\n for i4 in range(30):\n if i7 * 7 + i4 * 4 == N:\n print('Yes')\n break\n else:\n continue\n \n break\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s943864564', 's926751869']
[3060.0, 2940.0]
[17.0, 17.0]
[225, 202]
p03285
u513793759
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 = []\nif N%7==0 or N%4==0:\n ans='Yes'\n T.append(ans)\nelse:\n for i in range(25):\n if (N-4*i)%7==0 and (N-4*i)%7>0:\n ans='Yes'\n T.append(ans)\n elif (N-7*i)%4==0 and (N-7*i)%4>0:\n ans='Yes'\n T.append(ans)\n else:\n ans='No'\n T.append(ans)\nif 'Yes' in T:\n print('Yes')\nelse:\n print('No')", "N=int(input())\nans='No'\nfor n in range(N//4+1):\n if ans=='Yes':\n break\n for m in range(N//7+1):\n if N==4*n+7*m:\n ans='Yes'\n break\nprint(ans) "]
['Wrong Answer', 'Accepted']
['s743049070', 's638278621']
[3064.0, 2940.0]
[19.0, 17.0]
[399, 183]
p03285
u514299323
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\n\njudge = False\nfor i in range(a):\n for j in range(b):\n if 4*i+7*k == N:\n judge =True\n break\n if 4*i+7*j > N:\n break\n if judge:\n break\n\nif judge:\n print('Yes')\nelse:\n print('No')\n \n ", "N = int(input())\na = N//4\nb = N//7\n \njudge = False\nfor i in range(a):\n for j in range(b):\n if 4*i+7*j == N:\n judge =True\n break\n if 4*i+7*j > N:\n break\n if judge:\n break\n \nif judge:\n print('Yes')\nelse:\n print('No')", "N = int(input())\na = N//4\nb = N//7\n \njudge = False\n\nfor i in range(a):\n for j in range(b):\n if 4*i+7*j == N:\n judge =True\n break\n \n #if 4*i+7*j > N:\n # break\n \n if judge:\n break\n \nif judge:\n print('Yes')\nelse:\n print('No')", "N = int(input())\na = N//4 +1\nb = N//7 +1\n \njudge = False\nfor i in range(a):\n for j in range(b):\n if 4*i+7*j == N:\n judge =True\n break\n if 4*i+7*j > N:\n break\n if judge:\n break\n \nif judge:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s104265438', 's607217002', 's894092448', 's812093258']
[2940.0, 3060.0, 3064.0, 3060.0]
[18.0, 17.0, 17.0, 17.0]
[250, 242, 262, 256]