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
|
|---|---|---|---|---|---|---|---|---|---|---|
p02711
|
u921729430
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N = int(input())\nres = 0\nfor i in range(N+1):\n if i % 3 != 0 and i % 5 != 0:\n res += i\nprint(res)', "N = input()\nif N.count('7') != 0:\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s104962699', 's790525705']
|
[9164.0, 9036.0]
|
[20.0, 21.0]
|
[101, 68]
|
p02711
|
u922911026
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['s = input()\nif \'7\' in s:\n print("Yes)\nelse:\n print("No")', 's = input()\nif \'7\' in s:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s388952288', 's090882720']
|
[8872.0, 8964.0]
|
[19.0, 22.0]
|
[58, 59]
|
p02711
|
u924783770
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['from collections import Counter\nN=int(input())\nS=[0]*5000\nS=list(input())\n\nS_count=Counter(S)\nr=S_count["R"]\ng=S_count["G"]\nb=S_count["B"]\n\nans=0\n\nfor i in range(N-2):\n for j in range(1,N):\n if i+2*j>=N:\n break\n if S[i]!=S[i+j] and S[i+j]!=S[i+2*j] and S[i]!=S[i+2*j]:\n ans+=1\n\nprint(r*g*b-ans)', 'import sys\nK=str(input())\nK=list(K) \nK=[int(i) for i in K]\n\nfor i in K:\n if i==7:\n print("Yes")\n sys.exit()\nprint("No")']
|
['Runtime Error', 'Accepted']
|
['s869659796', 's756058023']
|
[9304.0, 9168.0]
|
[23.0, 20.0]
|
[333, 155]
|
p02711
|
u926585789
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["answer='No'\nfor i in str(N):\n if i==7:\n print(answer)\nreturn answer", "answer='No'\nfor i in str(N):\n if i=='7':\n answer='Yes'\nreturn answer", "n=input()\n\nif '7' in str(n):\n print('Yes')\nelse:\n print('No')"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s348790587', 's728203582', 's130834812']
|
[8904.0, 9092.0, 9088.0]
|
[20.0, 23.0, 24.0]
|
[71, 72, 63]
|
p02711
|
u927807968
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['n = input()\nlist(n)\nhan=False\nfor i in n:\n print(i)\n if i=="7":\n han=True\nif han=True:\n print("Yes")\nelse:\n print("No")', 'n = input()\nlist(n)\nhan=False\nfor i in n:\n if i=="7":\n han=True\nif han==True:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s068911170', 's743458036']
|
[9020.0, 9024.0]
|
[21.0, 24.0]
|
[138, 126]
|
p02711
|
u927839462
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["n=input()\nprint(n[0])\nprint(n[1])\nprint(n[2])\nif(n[0]=='7'or n[1]=='7'or n[2]=='7'):\n print('Yes')\nelse:\n print('No')", "n=input()\nif(n[0]=='7'or n[1]=='7'or[2]=='7'):\n print('Yes')\nelse:\n print('No')", "n=input()\nif(n[0]=='7'or n[1]=='7'or n[2]=='7'):\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s262423497', 's652102346', 's723023347']
|
[9132.0, 9032.0, 9036.0]
|
[23.0, 22.0, 20.0]
|
[123, 85, 87]
|
p02711
|
u929217794
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['\n\nN = input()\n\nfor n in N:\n if n == "7":\n print("Yes")\nelse:\n print("No")', '\n\nN = input()\n\nfor n in N:\n if n == "7":\n print("Yes")\n exit()\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s559344934', 's105719411']
|
[8956.0, 8940.0]
|
[29.0, 27.0]
|
[89, 100]
|
p02711
|
u931567479
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['a = int(input( ))\nb = a % 10\nif (b == 7):\n\tprint("yes")\nelse:\n\tprint("NO")\n', 'N = int(input( ))\nb = N % 10\nif (b == 7):\n\tprint("yes")\nelse:\n\tprint("NO")\n ', 'N = input ()\nif \'7\' in str(N):\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s313148652', 's922251504', 's595756218']
|
[9156.0, 9156.0, 9108.0]
|
[21.0, 22.0, 22.0]
|
[75, 79, 65]
|
p02711
|
u932828048
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['n=str(N)\nif n.find(7)!=-1\n print("Yes")\nelse \n print("No")', 'import math\nfrom functools import reduce\na=1;b=1;c=1;d=0\nn=int(input());\nfor i1 in range(n):\n\tfor i2 in range(n):\n\t\tfor i3 in range(n):\n\t\t\td+=reduce(math.gcd,(a,b,c))\n\t\t\tc+=1\n\t\tb+=1;c=1\n\ta+=1;b=1\nprint(d)', 'n=str(N)\nif n.find("7")!= -1:\n print(\'Yes\')\nelse:\n print(\'No\')\n', 'n=str(N)\nif n.find("7")!=-1\n print("Yes")\nelse \n print("No")', 'n=str(N)\nif n.find("7")!= -1:\n print("Yes")\nelse:\n print("No")', 'n=str(N)\nif n.find("7")!= -1:\n print("Yes")\nelse:\n print("No")\n', 'n=str(input())\nif n.find("7")!= -1:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s125518192', 's428907054', 's453340823', 's556733694', 's742017199', 's763164762', 's670454426']
|
[8848.0, 9640.0, 9084.0, 8952.0, 9024.0, 8920.0, 9080.0]
|
[25.0, 2206.0, 21.0, 22.0, 20.0, 25.0, 23.0]
|
[62, 204, 67, 64, 66, 67, 72]
|
p02711
|
u932937501
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["N=input()\nN=N.replace('7')\nprint('Yes' if len(N)<3 else 'No')", "N=input()\nN=N.replace('7','')\nprint('Yes' if len(N)<3 else 'No')"]
|
['Runtime Error', 'Accepted']
|
['s894248471', 's103308420']
|
[9088.0, 9092.0]
|
[21.0, 19.0]
|
[61, 64]
|
p02711
|
u935089856
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['num = int(input())\nn10 = num - 70\nn1 = num - 7\nif num - 700 <= 99 and 0 <= num - 700:\n print("Yes")\nelif n10 % 100 >= 0 and n10 % 100 <=9:\n print("Yes")\nelif n1 % 10 == 0:\n print("Tes")\nelse:\n print("No")', 'num = int(input())\nn100 = num - 700\nn10 = num - 70\nn1 = num - 7\nif n100 <= 99 and 0 <= n100:\n print("Yes")\nelif n10 % 100 >= 0 and n10 % 100 <=9:\n print("Yes")\nelif n1 % 10 == 0:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s182980711', 's408422475']
|
[9048.0, 9184.0]
|
[22.0, 21.0]
|
[208, 216]
|
p02711
|
u935151656
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N = str(input())\nif "7" in N:\n "Yes"\nelse:\n "No"', 'N = str(input())\nif "7" in N:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s684222192', 's400285116']
|
[9080.0, 9092.0]
|
[20.0, 21.0]
|
[55, 69]
|
p02711
|
u935585974
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["N = input()\ncount = 0\n\nfor i in range(N):\n if N[i] == 7:\n print('yes')\n count += 1\n break\n \nif count == 0:\n print('no')", "N = input()\nlength_N = len(N)\ncount = 0\n\nfor i in range(length_N):\n if N[i] == '7':\n print('yes')\n count += 1\n break\n \nif count == 0:\n print('no')", "N = input()\nlength_N = len(N)\ncount = 0\n\nfor i in range(length_N):\n if N[i] == '7':\n print('Yes')\n count += 1\n break\n \nif count == 0:\n print('No')"]
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s259337026', 's279339484', 's820318089']
|
[9044.0, 9044.0, 9044.0]
|
[22.0, 21.0, 21.0]
|
[149, 176, 176]
|
p02711
|
u936285815
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['c =0\n\nN = int(input())+1\nS = tuple(input())\n\n\nfor i in range(1,N):\n for j in range(1,N):\n if i > j:\n continue\n elif S[i-1] == S[j-1]:\n continue\n for k in range(1,N):\n if j > k:\n continue\n elif S[i-1] == S[k-1] or S[j-1] == S[k-1]:\n continue\n elif j - i == k - j:\n continue\n else:\n c += 1\nprint(c)', 'c =0\n\nN = int(input())+1\nS = tuple(input())\n\n\nfor i in range(1,N):\n for j in range(1,N):\n if i > j:\n continue\n elif S[i-1] == S[j-1]:\n continue\n for k in range(1,N):\n if j > k:\n continue\n elif S[i-1] == S[k-1] or S[j-1] == S[k-1]:\n continue\n elif j - i == k - j:\n continue\n else:\n c += 1\nprint(c)\n ', "n = input()\nc = 0\nfor letter in n:\n if letter == '7':\n c += 1\npass \n\nprint('Yes') if c > 0 else print('No')\n\n"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s363726938', 's839236270', 's254440142']
|
[9192.0, 9168.0, 9096.0]
|
[24.0, 19.0, 22.0]
|
[454, 475, 119]
|
p02711
|
u938718404
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['n=int(input())\nif n[-1]==7 or n[-3]==7 or n[-2]==7:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\nnum=map(int,str(n))\nif num[-1]=="7" or num[-3]=="7" or num[-2]=="7":\n print("Yes")\nelse:\n print("No")', 'n=str(input())\nif n[1]=="7" or n[0]=="7" or n[2]=="7"\n print("Yes")\nelse:\n print("No")', 'n=int(input())\nif n[-1]==7 or n[-3]==7 or n[-2]==7\n print("Yes")\nelse:\n print("No")', 'n=str(input())\nif n[-1]=="7" or n[-3]=="7" or n[-2]=="7"\n print("Yes")\nelse:\n print("No")', 'n=str(input())\nif n[-1]=="7" or n[-3]=="7" or n[-2]=="7":\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s213806823', 's256974919', 's431503623', 's691646256', 's708651619', 's683806914']
|
[9180.0, 9104.0, 8936.0, 9048.0, 8948.0, 9100.0]
|
[23.0, 22.0, 24.0, 23.0, 21.0, 22.0]
|
[90, 122, 92, 89, 95, 96]
|
p02711
|
u940332739
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['\nvv = list(input())\n\nccc = "7" in vv\n\nif ccc = True:\n print("Yes")\nelse:\n print("No")\n', 'vv = list(input())\n\nccc = "7" in vv\n\nif ccc = True:\n print("Yes")\nelse:\n print("No")\n', 'vv = int(input())\n\nif vv <= 999 and vv >= 100:\n vvvv = list(str(vv))\n\n\n ccc = "7" in vvvv\n\n if ccc == True:\n print("Yes")\n else:\n print("No")\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s764944919', 's849487683', 's617820579']
|
[9016.0, 8948.0, 9156.0]
|
[20.0, 23.0, 24.0]
|
[92, 91, 168]
|
p02711
|
u940533000
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["N = int(input())\nprint(N)\n\nif N/100==7:\n print('Yes')\nelif (N%100)/10==7:\n print('Yes')\nelif (N%10)==7:\n print('Yes')\nelse:\n print('No')", "N = int(input())\nprint(N)\n\nif N/100==7:\n print('Yes')\nelif (N%100)/10==7:\n print('Yes')\nelif (N%10)==7:\n print('Yes')\nelse:\n print('No')", "N = int(input())\n\nif int(N/100)==7:\n print('Yes')\nelif int((N%100)/10)==7:\n print('Yes')\nelif (N%10)==7:\n print('Yes')\nelse:\n print('No')\n"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s655805930', 's867773206', 's278808225']
|
[9064.0, 9168.0, 9100.0]
|
[19.0, 23.0, 21.0]
|
[140, 140, 142]
|
p02711
|
u942051624
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N=input()\n\nflag=True\nfor i in range(3):\n if N[i]=="7":\n flag=True\n print(\'Yes\')\n break\n \nif flag:\n print(\'No\')\n ', 'N=input()\n\nflag=True\nfor i in range(3):\n if N[i]=="7":\n flag=False\n print(\'Yes\')\n break\n \nif flag:\n print(\'No\')\n ']
|
['Wrong Answer', 'Accepted']
|
['s647404935', 's315922894']
|
[9100.0, 9028.0]
|
[22.0, 24.0]
|
[124, 125]
|
p02711
|
u942356554
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['s=int(input().split())\nfor i in s:\n if i==7:\n print("Yes")\nprint("No")', 's=str(input())\nh=1\nfor i in s:\n if i==\'7\':\n h=0\nif h==0:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s509144309', 's905554797']
|
[9028.0, 9036.0]
|
[20.0, 19.0]
|
[80, 105]
|
p02711
|
u944886577
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['n=str(input())\nif n[0] ==7 or n[1]==7 or n[2]==7:\n print("Yes")\nelse:\n print("No")\n', 'n=str(input())\nif n[0] =="7" or n[1]=="7" or n[2]=="7":\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s513003630', 's637048539']
|
[8848.0, 9032.0]
|
[31.0, 29.0]
|
[85, 90]
|
p02711
|
u945200821
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['def main():\n n = input()\n print("Yes" if n.count(7) > 0 else "No")\n \n\nif __name__ == "__main__":\n main()\n', 'def main():\n n = input()\n print("Yes" if n.count() > 0 else "No")\n \n\nif __name__ == "__main__":\n main()\n', 'def main():\n n = input()\n if n.count(7) > 0:\n print("Yes")\n else:\n print("No")\n \n\nif __name__ == "__main__":\n main()\n', 'def main():\n n = input()\n print("Yes" if n.count("7") > 0 else "No")\n \n\nif __name__ == "__main__":\n main()\n']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s389971892', 's431110802', 's933267045', 's582349643']
|
[9084.0, 9024.0, 9092.0, 9088.0]
|
[21.0, 22.0, 24.0, 20.0]
|
[109, 108, 128, 111]
|
p02711
|
u945405878
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N = str(input())\nif N.isin(\'7\'):\n print("Yes")\nelse:\n print("No")', 'N = str(input())\nif N in [\'7\']:\n print("Yes")\nelse:\n print("No")', 'N = str(input())\nif \'7\' in N:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s091382370', 's759796588', 's793323593']
|
[9064.0, 8836.0, 9032.0]
|
[22.0, 25.0, 21.0]
|
[71, 70, 68]
|
p02711
|
u947047288
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["N = str(input())\nflag = 0\nfor i in range(len(N))\n\tif int(N[i]) == 7:\n \tprint ('Yes')\n \tflag = 1\n \tbreak\nif flag == 0:\n print ('No')", "N = str(input())\nflag = 0\nfor i in range(len(N)):\n if int(N[i]) == 7:\n print ('Yes')\n flag = 1\n break\n101if flag == 0:\n print ('No')", "N = str(input())\nflag = 0\nfor i in range(len(N)):\n if int(N[i]) == 7:\n print ('Yes')\n flag = 1\n break\nif flag == 0:\n print ('No')"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s070788775', 's911868613', 's374594179']
|
[8992.0, 8976.0, 9156.0]
|
[20.0, 19.0, 19.0]
|
[143, 159, 156]
|
p02711
|
u947523546
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["N=input()\na=int(N[0])\nb=int(N[1])\nc=int(N[2])\n\nif a=7 or b=7 or c=7:\n print('Yes')\nelse :\n print('No')", "N=input()\na=int(N[0])\nb=int(N[1])\nc=int(N[2])\n \nif a==7 or b==7 or c==7:\n print('Yes')\nelse :\n print('No')"]
|
['Runtime Error', 'Accepted']
|
['s310168564', 's385627252']
|
[8960.0, 9160.0]
|
[27.0, 27.0]
|
[104, 108]
|
p02711
|
u948050032
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N = int(input())\nsum = 0\nfor i in range(1,N+1):\n if not(i % 3 == 0 or i % 5 == 0):\n sum += i\nprint(sum)', "from sys import stdin\n\nN = stdin.readline().rstrip()\nprint('Yes' if '7' in N else 'No')\n"]
|
['Wrong Answer', 'Accepted']
|
['s936902341', 's413088115']
|
[9176.0, 9108.0]
|
[21.0, 20.0]
|
[114, 88]
|
p02711
|
u949353021
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['n = int(input())\nif 7 in n:\n print("Yes")\nelse:\n print("No")', 'n = input()\nif "7" in n:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s010505687', 's113038169']
|
[9108.0, 8992.0]
|
[24.0, 19.0]
|
[62, 59]
|
p02711
|
u953265442
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["s = input()\nif '7' in s:\n print('YES')\nelse:\n print('NO')", "s = input()\nif '7' in s:\n print('Yes')\nelse:\n print('No')\n"]
|
['Wrong Answer', 'Accepted']
|
['s763807184', 's964589769']
|
[9024.0, 9020.0]
|
[20.0, 19.0]
|
[59, 60]
|
p02711
|
u953274507
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['\nimport math\n\n\ntext = 0\ncount = 0\n\n\nn = int(input())\n\n\nwhile count < n:\n if (count % 3 != 0) and (count % 5 != 0):\n text = text + count\n count += 1\n\n\nprint(text)\n', '\nn = str(input())\n\n\nif "7" in n :\n text = "Yes"\nelse :\n\ttext = "No"\n\n\nprint(text)']
|
['Wrong Answer', 'Accepted']
|
['s448674897', 's546484508']
|
[9164.0, 9092.0]
|
[23.0, 23.0]
|
[258, 145]
|
p02711
|
u953753178
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["N = str(input())\nif '7' in N:\n print('Yes'):\nelse:\n print('No')", "N = input()\nif '7' in N:\n print('Yes')\nelse:\n print('No')"]
|
['Runtime Error', 'Accepted']
|
['s704753776', 's714362913']
|
[8916.0, 8968.0]
|
[23.0, 19.0]
|
[65, 59]
|
p02711
|
u954153335
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['n=int(input())\nif n/100==7:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\ndata=[10**i for i in range(1,3+1)]\nfor i in data:\n if n%i==7*(i/10):\n print("Yes")\n exit()\n n-=n%i\nprint("No")']
|
['Wrong Answer', 'Accepted']
|
['s634832623', 's763567320']
|
[9096.0, 9092.0]
|
[19.0, 21.0]
|
[62, 133]
|
p02711
|
u954954040
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N=list(input())\nans=False\nif N[0]=="7":\n ans=True\nif N[1]=="7":\n ans=True\nif N[2]=="7":\n ans=True\nif ans:\n print("YES")\nelse:\n print("NO")', 'N=list(input())\nans=False\nif N[0]=="7":\n ans=True\nif N[1]=="7":\n ans=True\nif N[2]=="7":\n ans=True\nif ans:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s912687824', 's156867837']
|
[8928.0, 8752.0]
|
[25.0, 27.0]
|
[153, 153]
|
p02711
|
u955123468
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N = int(input("N = "))\nif 100 <= N <= 999:\n if "7" in str(N):\n print("Yes")\n else:\n print("No")\n', 'N = int(input("N = "))\nif 100 <= N <= 999:\n if "7" in str(N):\n print("Yes")\n else:\n print("No")\n', 'N = int(input("N = "))\nif 100 <= N <= 999:\n if "7" in str(N):\n print("Yes")\n else:\n print("No")\n', "n = input()\nif '7' in n:\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s211713210', 's436872687', 's554056544', 's441424296']
|
[9160.0, 9160.0, 9156.0, 9032.0]
|
[22.0, 23.0, 19.0, 19.0]
|
[132, 132, 132, 59]
|
p02711
|
u957957759
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["n=input()\n\nif s[0]=='7' or s[1]=='7' or s[2]=='7':\n print('Yes')\nelse:\n print('No')", "s=input()\n \nif s[0]==7 or s[1]==7 or s[2]==7:\n print('Yes')\n \nelse:\n print('No')", "n=input()\n \nif n[0]=='7' or n[1]=='7' or n[2]=='7':\n print('Yes')\nelse:\n print('No')"]
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s744483696', 's757122039', 's657219956']
|
[8872.0, 9108.0, 9100.0]
|
[23.0, 20.0, 19.0]
|
[85, 83, 86]
|
p02711
|
u958053648
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["n=int(input())\nif n%10==7:\n\tprint('Yes')\n\texit()\nelse:\n\tn=n//10\n\tif n%10==7:\n\t\tprint('Yes')\n\t\texit()\n\telse:\n\t\tn=n//10:\n\t\tif n%10==7:\n\t\t\tprint('Yes')\n\t\t\texit()\nprint('No')", "n=input()\nif n[0]=='7' or n[1]=='7' or n[2]=='7':\n\tprint('Yes')\nelse:\n\tprint('No')"]
|
['Runtime Error', 'Accepted']
|
['s472165968', 's673357091']
|
[8988.0, 9036.0]
|
[20.0, 23.0]
|
[170, 82]
|
p02711
|
u961916328
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['a = input()\nif "7" in a:\n print("YES")\nelse:\n print("NO")', 'a = input()\nif "7" in a:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s267737225', 's717835944']
|
[9036.0, 9092.0]
|
[20.0, 25.0]
|
[59, 59]
|
p02711
|
u962423738
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['n=int(input())\n\nans=count(n)\n\nif ans>=1:\n\tprint("Yes")\n \nelse:\n\tprint("No")', 'n=input()\n \nans=int(n.count("7"))\n \nif ans>=1:\n\tprint("Yes")\n \nelse:\n\tprint("No")']
|
['Runtime Error', 'Accepted']
|
['s856220531', 's651419038']
|
[9176.0, 9032.0]
|
[27.0, 29.0]
|
[78, 84]
|
p02711
|
u962609087
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["def main():\n n = int(input())\n flag = 0\n while n > 0:\n if n % 10 == 7:\n flag += 1\n n /= 10\n if flag > 0:\n print('Yes')\n else:\n print('No')\nmain()", "def main():\n n = int(input())\n flag = 0\n while n > 0:\n if n % 10 == 7:\n flag += 1\n n /= 10\n if flag > 0:\n print('Yes')\n else:\n print('No')\nmain()", "def main():\n n = int(input())\n flag = 0\n while n < 0:\n if n % 10 == 7:\n flag += 1\n n /= 10\n if flag > 0:\n print('Yes')\n else:\n print('No')\nmain()", "def main():\n n = int(input())\n flag = 0\n while n < 0:\n if n % 10 == 7:\n flag += 1\n if flag > 0:\n print('Yes')\n else:\n print('No')\nmain()", "def main():\n n = input()\n \n if n[0] == '7' or n[1] == '7' or n[2] == '7':\n print('Yes')\n else:\n print('No')\nmain()"]
|
['Time Limit Exceeded', 'Time Limit Exceeded', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s003738297', 's260804146', 's735113117', 's743044124', 's883737384']
|
[9040.0, 8916.0, 9136.0, 9036.0, 8912.0]
|
[2206.0, 2206.0, 27.0, 26.0, 28.0]
|
[183, 183, 183, 165, 128]
|
p02711
|
u962944068
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N=input().split()\nfor i in N:\n if i=="7":\n print("Yes")\n exit()\nprint("No")', 'N=input()\nfor i in range(3):\n if N[i]=="7":\n print("Yes")\n exit()\nprint("No")']
|
['Wrong Answer', 'Accepted']
|
['s683339072', 's399859478']
|
[9028.0, 9092.0]
|
[20.0, 20.0]
|
[92, 94]
|
p02711
|
u963747475
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["s= input()\ni=0\nwhile i< len(s):\n j=s[i:i+1]\n if j==7:\n print('Yes')\n break\n i+=1\n", "a= input()\ni=0\nwhile i< len(s):\n j=s[i:i+1]\n if j==7:\n print('Yes')\n break\n i+=1", "s= input()\ni=0\nres=[]\nwhile i< len(s):\n j=s[i:i+1]\n res.append(j)\n i+=1\nprint('Yes' if str(7) in res else 'No')"]
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s021930287', 's922697443', 's696162004']
|
[8984.0, 8932.0, 8992.0]
|
[22.0, 20.0, 20.0]
|
[90, 89, 114]
|
p02711
|
u966207392
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["N = list(input())\nif 7 in N:\n print('Yes')\nelse:\n print('No')", "N = list(input())\nif '7' in N:\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s934761136', 's361531990']
|
[9016.0, 8976.0]
|
[28.0, 28.0]
|
[67, 69]
|
p02711
|
u968167998
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['int main() {\n\tchar s[3]\n \tscanf("%s",s)\n \tif(s[0]=="7" ||s[1]=="7"||s[2]=="7"){\n \tprintf("Yes")\n }\n \telse{\n \tprintf("No")\n }\n}', 'n = input()\nif "7" in n:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s403942939', 's246560635']
|
[8948.0, 9096.0]
|
[22.0, 22.0]
|
[141, 59]
|
p02711
|
u968404618
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["n = input()\nfor i in range(len(n)):\n if n[i] == '7':\n print('Yes')\n exit\n\nprint('No')", "n = input()\nfor i in range(len(n)):\n if n[i] == '7':\n print('Yes')\n exit()\n\nprint('No')"]
|
['Wrong Answer', 'Accepted']
|
['s727689829', 's176868658']
|
[8968.0, 9096.0]
|
[20.0, 22.0]
|
[102, 104]
|
p02711
|
u969080040
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N=int(input())\na=str(N)\nif \'a\' in "7":\n print("Yes")\nelse:\n print("No")\n ', 'N=int(input())\na=str(N)\nfor i in range(1,4):\n if a[i]=7:\n print("Yes")\n break\nprint("No")\n ', 'N=int(input())\na=str(N)\nif a in 7:\n print("Yes")\nelse:\n print("No")\n ', 'N=int(input())\na=str(N)\nif \'a\' in 7:\n print("Yes")\nelse:\n print("No")\n ', 'N=int(input())\na=str(N)\nif a[1]=7:\n print("Yes")\nif a[2]=7:\n print("Yes")\nif a[3]=7:\n print("Yes")\nelse:\n print("No")\n ', 'N=int(input())\na=str(N)\nif "a" in "7":\n print("Yes")\nelse:\n print("No")\n ', 'N=int(input())\na=str(N)\nif \'a\' in \'7\':\n print("Yes")\nelse:\n print("No")\n ', 'N=int(input())\na=str(N)\nif int(a[1])==7:\n print("Yes")\nelif int(a[-2])==7:\n print("Yes")\nelif int(a[3])==7:\n print("Yes)\nelse:\n print("No")\n ', 'N=int(input())\na=str(N)\nif \'a\' in 7:\nelse:\n print("No")\n ', 'N=int(input())\na=str(N)\nif int(a[1])==7:\n print("Yes")\nelif int(a[2])==7:\n print("Yes")\nelif int(a[3])==7:\n print("Yes)\nelse:\n print("No")\n ', 'N=int(input())\na=str(N)\nfor i in range(1,4):\n if a[i]=7:\n print(Yes)\n break\n ', 'N=int(input())\na=str(N)\nif \'7\' in a:\n print("Yes")\nelse:\n print("No")\n ']
|
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s153079562', 's193564672', 's201020640', 's277421133', 's326483405', 's448466973', 's646472464', 's700464414', 's806219056', 's840354492', 's935132655', 's294022126']
|
[9052.0, 8852.0, 9092.0, 9132.0, 8952.0, 9172.0, 9148.0, 9040.0, 8948.0, 8968.0, 8812.0, 9072.0]
|
[20.0, 22.0, 23.0, 20.0, 20.0, 20.0, 20.0, 23.0, 23.0, 24.0, 24.0, 20.0]
|
[77, 100, 73, 75, 125, 77, 77, 147, 60, 146, 86, 75]
|
p02711
|
u969081133
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["N=input()\nif N in '7':\n print('Yes')\nelse:\n print('No')", "N=int(input())\nif 7 in N:\n print('Yes')\nelse:\n print('No')", "N=input()\nif '7' in N:\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s719880948', 's884878672', 's225423877']
|
[9024.0, 9124.0, 9080.0]
|
[26.0, 22.0, 27.0]
|
[57, 60, 57]
|
p02711
|
u969639186
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N = list(int(input()))\nanswer = "No"\n \nfor i in range(N):\n if N[i] == 7:\n answer = "Yes"\n \nprint(answer)', 'N = list(int(input()))\nanswer = "No"\n\nfor i in N:\n if i == 7:\n answer = "Yes"\n\nprint(answer)', 'N = list((input()))\nans = "No"\n \nfor i in N:\n if i == "7":\n ans = "Yes"\n \nprint(ans)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s332370997', 's516331104', 's764761149']
|
[9160.0, 9160.0, 9036.0]
|
[23.0, 20.0, 22.0]
|
[108, 96, 96]
|
p02711
|
u969848070
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["a = input()\nif a[0]==7 or a[1] == 7 or a[2] == 7:\n print('Yes')\nelse:\n print('No')", "a = input()\nif a.count(7)>=1:\n print('Yes')\nelse:\n print('No')", "a = input()\nif a[0]=='7' or a[1] == '7' or a[2] == '7':\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s735133942', 's788480124', 's082665561']
|
[9036.0, 8960.0, 9096.0]
|
[22.0, 21.0, 20.0]
|
[84, 64, 90]
|
p02711
|
u973013625
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['print(input())', "print('Yes' if '7' in input() else 'No')"]
|
['Wrong Answer', 'Accepted']
|
['s433572211', 's757662745']
|
[9020.0, 9052.0]
|
[19.0, 21.0]
|
[14, 40]
|
p02711
|
u973972117
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N = int(input())\nS = list(input())\nSum = 0\nfor k in range(3,N+1):\n for j in range(2,k):\n for i in range(1,j):\n if abs(j - i) != abs(k - j):\n if S[i-1] != S[j-1] and S[j-1] != S[k-1] and S[k-1] != S[i-1]:\n Sum += 1\nprint(Sum)', 'K = int(input())\nS = 0\n\ndef gcd(a,b):\n while b != 0:\n a, b = b, a % b\n if b ==0:\n return a\nA1 = [0,0]\nA2 = [0,0,0]\nfor i in range(1, K+1):\n S = S + i\n\nif K > 1:\n for j in range(1, K):\n A1[0] = j\n for k in range(j+1,K+1):\n A1[1] = k\n S += 6 * gcd(A1[1],A1[0])\n\nif K > 2:\n for i1 in range(1, K-1):\n A2[0] = i1\n for k1 in range(i1+1, K):\n A2[1] = k1\n for j1 in range(k1+1,K+1):\n A2[2] = j1\n G3 = gcd(A2[2],A2[1])\n if G3 >= A2[0]:\n S += 6 * gcd(G3,A2[0])\n else:\n S += 6 * gcd(A2[0],G3)\nprint(S)', 'N = int(input())\nS = 0\nfor i in range(0,N):\n if (i+1) % 3 != 0 and (i+1) % 5 != 0:\n S = S + i+1\nprint(S)', "N = list(str(input()))\n\nif str(7) in N:\n print('Yes')\nelse:\n print('No')\n"]
|
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s603752475', 's919274984', 's923403244', 's852003694']
|
[9124.0, 9252.0, 9104.0, 9048.0]
|
[21.0, 2205.0, 18.0, 21.0]
|
[277, 694, 108, 79]
|
p02711
|
u975445930
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['l = list(input())\n\nfor i in range(3):\n if list[i] == "7":\n print("Yes")\n exit()\n\nprint("No")', 'l = list(input())\n \nfor i in range(3):\n if l[i] == "7":\n print("Yes")\n exit()\n \nprint("No")']
|
['Runtime Error', 'Accepted']
|
['s671325737', 's247793018']
|
[9056.0, 9028.0]
|
[24.0, 22.0]
|
[99, 98]
|
p02711
|
u977490411
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["n = int(input())\ns = list(input())\n\nr = s.count('R')\ng = s.count('G')\nb = s.count('B')\n\n\nans = r * g * b\n\n\nc = 0\nfor i in range(n):\n for j in range(i+1,n):\n k = 2 * j -i\n if k > n-1:\n break\n if s[i] != s[j] and s[j] != s[k] and s[k] != s[i]:\n c += 1\n\nprint(ans - c)", "n = input()\n\nans = n.find('7')\n\nif ans == -1:\n print('No')\nelse:\n print('Yes')\n\n"]
|
['Runtime Error', 'Accepted']
|
['s119265345', 's609005106']
|
[9072.0, 9088.0]
|
[23.0, 20.0]
|
[389, 86]
|
p02711
|
u977922978
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['# -*- coding=utf_8 -*-\nN = int(input())\nl = [int(x) for x in list(str(N))]\n\nif 7 in l:\n print("yes")\nelse:\n print("No")', '# -*- coding=utf_8 -*-\n\nN = input()\nl = [int(x) for x in list(N)]\n\nif 7 in l:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s030536385', 's785221943']
|
[9164.0, 9156.0]
|
[20.0, 19.0]
|
[125, 116]
|
p02711
|
u979823197
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["n=input()\nif n[0]=='7' or n[1]=='7' or n[2]=='7':\n print(Yes)\nelse:\n print('No')", "n=input()\nif n[0]=='7' or n[1]=='7' or n[2]=='7':\n print('Yes')\nelse:\n print('No')\n"]
|
['Runtime Error', 'Accepted']
|
['s506728710', 's750205770']
|
[8972.0, 8920.0]
|
[25.0, 29.0]
|
[83, 86]
|
p02711
|
u980205854
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["\nN = input()\nif '7' in a:\n print('Yes')\nelse:\n print('No')", "\nN = input()\nif '7' in N:\n print('Yes')\nelse:\n print('No')"]
|
['Runtime Error', 'Accepted']
|
['s083640315', 's943695035']
|
[9008.0, 9012.0]
|
[22.0, 21.0]
|
[77, 77]
|
p02711
|
u981812192
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['isSeven = 0\nn = input()\nprint(len(n))\nif (len(n)!=3):\n print("No")\n quit()\nfor i in n:\n i = int(i)\n if (i==7):\n isSeven = 1\nif (isSeven!=0):\n print("Yes")\nelse:\n print("No")', 'isSeven = 0\nn = input()\n#print(len(n))\nif (len(n)!=3):\n print("No")\n quit()\nfor i in n:\n i = int(i)\n if (i==7):\n isSeven = 1\nif (isSeven!=0):\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s687927482', 's413604727']
|
[9184.0, 9112.0]
|
[18.0, 23.0]
|
[182, 183]
|
p02711
|
u982462877
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N = int(input())\ns=0\nif N/100 == 7:\n print("Yes")\n s+=1\n \n\nN = N % 100 \n \n\nif int(N / 10) == 7:\n print("Yes")\n s+=1\n\nN = N % 10 \n\nif N / 1 == 7:\n print("Yes")\nif s == 0:\n print("No")', 'N = int(input())\ns=0\nif int(N/100) == 7:\n print("Yes")\n s+=1\n \n\nN = N % 100 \n \n\nif s==0 and int(N / 10) == 7:\n print("Yes")\n s+=1\n\nN = N % 10 \n\nif s==0 and N / 1 == 7:\n print("Yes")\nif s == 0:\n print("No")', 'N = int(input())\ns=0\nif N/100 == 7:\n print("Yes")\n s+=1\n \n\nN = N % 100 \n \n\nif s==0 and int(N / 10) == 7:\n print("Yes")\n s+=1\n\nN = N % 10 \n\nif s==0 and N / 1 == 7:\n print("Yes")\nif s == 0:\n print("No")', 'N = int(input())\ns=0\nif int(N/100) == 7:\n print("Yes")\n s+=1\n \n\nN = N % 100 \n \n\nif s==0 and int(N / 10) == 7:\n print("Yes")\n s+=1\n\nN = N % 10 \n\nif s==0 and N / 1 == 7:\n print("Yes")\n s+=1\nif s == 0:\n print("No")\n']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s250299385', 's879134127', 's897601743', 's517182019']
|
[9180.0, 9192.0, 9216.0, 9188.0]
|
[21.0, 22.0, 22.0, 20.0]
|
[206, 229, 224, 239]
|
p02711
|
u984989720
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["N = int(input())\nif '7' in N:\n print('Yes')\nelse:\n print('No')", "n = input()\nans = 'No'\nfor i in n:\n if i == '7':\n ans = 'Yes'\nprint(ans) \n \n "]
|
['Runtime Error', 'Accepted']
|
['s988284396', 's086950004']
|
[9160.0, 9008.0]
|
[20.0, 22.0]
|
[68, 106]
|
p02711
|
u985419292
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["n = input()\nif 7 in n :\n print('Yes')\nelse :\n print('No')\n", "N = input()\na = N[0]\nb = N[1]\nc = N[2]\nd = 'No'\nfor i in (a,b,c):\n if i % 7 == 0:\n d ='Yes'\n break\nprint(d)", "n = input()\nif '7' in n :\n print('Yes')\nelse :\n print('No')\n"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s230483499', 's966648239', 's589048665']
|
[9016.0, 9000.0, 8900.0]
|
[22.0, 21.0, 22.0]
|
[60, 114, 62]
|
p02711
|
u989089752
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["s = intput()\n\nif ('7' in s):\n print('Yes')", "s = input()\n\nif '7' in s:\n print('Yes')\nelse:\n print('No')\n"]
|
['Runtime Error', 'Accepted']
|
['s395719307', 's174759359']
|
[8884.0, 9060.0]
|
[20.0, 20.0]
|
[43, 61]
|
p02711
|
u994935583
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['str = input()\nnum = int(str)\n\nhund = num // int(100) \nnum_tens = num % 100 \ntens = num_tens // 10 \nones = num_tens % 10\nprint (hund)\n\nif (hund == 7 or tens ==7 or ones == 7):\n\tprint("Yes")\nelse:\n\tprint("No")\n', 'num = int(input())\n\nhund = num // int(100) \nnum_tens = num % 100 \ntens = num_tens // 10 \nones = num_tens % 10\n\nif (hund == 7 or tens ==7 or ones == 7):\n\tprint("Yes")\nelse:\n\tprint("No")']
|
['Wrong Answer', 'Accepted']
|
['s794656895', 's365937394']
|
[9168.0, 9172.0]
|
[22.0, 21.0]
|
[209, 185]
|
p02711
|
u997389162
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['i = input()\nif \'7\' in i:\n print("True")\nelse:\n print("False")', 'Source Code \n\nCopy\nCopy\ni = input()\nif \'7\' in i:\n print("Yes")\nelse:\n print("No")', 'if "7" in input():\n print(\'Yes\')\nelse:\n print(\'No\')']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s487542715', 's781897374', 's173467082']
|
[9096.0, 8944.0, 9088.0]
|
[21.0, 22.0, 20.0]
|
[63, 83, 53]
|
p02711
|
u997393081
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
["n=input()\n\n'Yes' if '7' in n else 'No'", "n=input()\n \nprint('Yes') if '7' in n else print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s896728097', 's493963487']
|
[8988.0, 9028.0]
|
[25.0, 24.0]
|
[38, 53]
|
p02711
|
u997424670
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['N = str(input())\nenc = 0\n\nfor char in list(N):\n if char == "7":\n enc +=1\n \nif enc >= 1:\n return "Yes"\nelse:\n return "No"', 'N = str(input())\nenc = 0\n\nfor char in list(N):\n \tif char == 7:\n \tenc +=1\n\nif enc >= 1:\n return Yes\nelse:\n return No', 'N = str(input())\nenc = 0\n\nfor char in list(N):\n if char == "7":\n enc += 1\n \nif enc >= 1:\n print("Yes") \nelse:\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s439878222', 's948529233', 's804888352']
|
[9028.0, 8948.0, 9036.0]
|
[22.0, 21.0, 21.0]
|
[129, 122, 131]
|
p02711
|
u997576085
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['inputStr = input()\n\nfor c in inputStr:\n if c == \'7\':\n print("YES")\n exit()\n\nprint("NO")', "inputStr = input()\n\nout = 'NO'\nfor c in inputStr:\n if c == '7':\n out = 'YES'\n\nprint(out)", 'inputStr = input()\n\nfor c in inputStr:\n if c == \'7\':\n print("YES")\n exit()\n\nprint("NO")\n', 'inputStr = input()\n\nout = "NO"\nfor c in inputStr:\n if c == \'7\':\n out = "YES"\n\nprint(out)', 'inputStr = int(input())\n\nfor c in str(inputStr):\n if c == \'7\':\n print("YES")\n exit()\n\nprint("NO")\n', "inputStr = input()\n\nout = 'No'\nfor c in inputStr:\n if c == '7':\n out = 'Yes'\n\nprint(out)\n"]
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s148030781', 's472116014', 's795392458', 's899534555', 's950542326', 's082035693']
|
[9028.0, 9032.0, 9012.0, 9032.0, 9156.0, 9048.0]
|
[19.0, 22.0, 21.0, 18.0, 22.0, 22.0]
|
[104, 98, 105, 98, 115, 99]
|
p02711
|
u998082881
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['a = input() \n\nprint(\'7\' in a ,sep="\\n")', "\na = input() \n\nprint('7' in a)\n", 'import sys\na = input() \n\nif \'7\' in a:\n print("Yes")\nelse:\n print("No")\n\n']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s193840285', 's203507261', 's044363499']
|
[9020.0, 9076.0, 9020.0]
|
[22.0, 20.0, 22.0]
|
[39, 31, 78]
|
p02711
|
u998350437
| 2,000
| 1,048,576
|
Given is a three-digit integer N. Does N contain the digit 7? If so, print `Yes`; otherwise, print `No`.
|
['a=str(input())\nif a[0] ==7 or a[1] ==7 or a[2]==7:\n print("Yes")\nelse:\n print("No")', 'a=str(input())\nif a[0] or a[1] or a[2]==7:\n \n print("Yes")\nelif :\n print("No")', 'a=str(input())\nif a[0] ==\'7\' or a[1] ==\'7\' or a[2]==\'7\':\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s257468146', 's304984085', 's552833240']
|
[9096.0, 9020.0, 9040.0]
|
[22.0, 24.0, 21.0]
|
[89, 87, 95]
|
p02712
|
u000037600
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['a=int(input())\nans=0\nfor i in range(a):\n if not i%3==0 and not i%5==0:\n ans+=i', 'a=int(input())\nans=0\nfor i in range(1,a+1):\n if not i%3==0 and not i%5==0:\n ans+=i\nprint(ans)']
|
['Wrong Answer', 'Accepted']
|
['s318692565', 's990807741']
|
[9156.0, 9064.0]
|
[163.0, 158.0]
|
[82, 97]
|
p02712
|
u000085263
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['n = int(input())\nl=[]\nfor i in range(n): \n if ((i%3)!=0) and ((i%5)!=0):\n l.append(i)\nprint(l)', 'n = int(input())\nl=[]\nfor i in range(n): \n if ((i%3)!=0) and ((i%5)!=0):\n print(i)\n l.append(i)\nprint(l)', 'n = int(input())\nl=[]\nfor i in range(n+1):\n if ((i%3)!=0) and ((i%5)!=0):\n l.append(i)\nprint(sum(l))']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s107945336', 's270756079', 's206446734']
|
[38168.0, 40320.0, 30120.0]
|
[211.0, 366.0, 174.0]
|
[105, 122, 111]
|
p02712
|
u000513658
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['#B\nn = int(input())\n\nans = 0\nfor i in range(n+1):\n if i % 3 == 0 or i % 5 == 0:\n continue\n else:\n ans += i\n print(ans)\nprint(ans)', '#B\nn = int(input())\n\nans = 0\nfor i in range(n+1):\n if i % 3 == 0 or i % 5 == 0:\n continue\n else:\n ans += i\nprint(ans)']
|
['Wrong Answer', 'Accepted']
|
['s135259444', 's740862549']
|
[9344.0, 9168.0]
|
[332.0, 158.0]
|
[156, 137]
|
p02712
|
u003505857
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
["n = int(input())\nfor i in range(1, n + 1):\n if i % 3 == 0 and i % 5 == 0:\n print('FizzzBuzz')\n elif i % 3 == 0:\n print('Fizz')\n elif i % 5 == 0:\n print('Buzz')\n else:\n print(str(i))\n", 'n = int(input())\nanswer = 0\nfor i in range(1, n + 1):\n if i % 3 == 0 or i % 5 == 0:\n i = 0\n else:\n answer = answer + i\n\nprint(answer)\n\n']
|
['Wrong Answer', 'Accepted']
|
['s829748975', 's176149903']
|
[9352.0, 9160.0]
|
[481.0, 171.0]
|
[222, 155]
|
p02712
|
u004482945
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['a = int(input())\nb = []\nfor i in range(a + 1):\n if i % 3 == 0:\n pass\n elif i 5 5 == 0:\n pass\n else:\n b.append(i)\nc = sum(b)\nprint(c)', 'a = int(input())\nb = []\nfor i in range(a + 1):\n if i % 3 == 0:\n pass\n elif i % 5 == 0:\n pass\n else:\n b.append(i)\nc = sum(b)\nprint(c)']
|
['Runtime Error', 'Accepted']
|
['s634087315', 's634966002']
|
[9004.0, 29816.0]
|
[23.0, 175.0]
|
[144, 144]
|
p02712
|
u006425112
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['n = int(input())\nans = 0\nfor i in range(n+1):\n if not (i % 3 == 0 or i % 5 == 0):\n\tans += i\n \nprint(ans)', 'n = int(input())\nans = 0\nfor i in range(n+1):\n if not (i % 3 == 0 or i % 5 == 0):\n ans += i\nprint(ans)']
|
['Runtime Error', 'Accepted']
|
['s641566547', 's221728212']
|
[8860.0, 9168.0]
|
[23.0, 153.0]
|
[107, 106]
|
p02712
|
u007128301
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N=1000000\nsum=0\nfor i in range(1,N+1):\n if i % 3 != 0 and i % 5 != 0:\n #print(i)\n sum += i\nprint(sum)\n', 'N=input()\nsum=0\nfor i in range(1,N+1):\n if i % 3 != 0 and i % 5 != 0:\n #print(i)\n sum += i\nprint(sum)\n', 'N=input()\nsum=0\nfor i in range(1,int(N)+1):\n if i % 3 != 0 and i % 5 != 0:\n #print(i)\n sum += i\nprint(sum)\n']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s143736347', 's550338754', 's243725641']
|
[9084.0, 9096.0, 9164.0]
|
[163.0, 20.0, 149.0]
|
[119, 119, 124]
|
p02712
|
u010379708
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['t=int(input())\nS=0\nfor i in list(range(t+1)):\n if t%5!=0 and t%3!=0:\n sum += i\nprint(S)', 't=int(input())\nS=0\nfor i in range(t):\n if t%5!=0 and t%3!=0:\n sum += 1\nprint(S)', 't=int(input())\nS=0\nfor i in list(range(t+1)):\n if i%5!=0 and i%3!=0:\n S += i\nprint(S)\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s455855067', 's486408622', 's639902584']
|
[48268.0, 9160.0, 48328.0]
|
[132.0, 111.0, 179.0]
|
[91, 83, 90]
|
p02712
|
u010384197
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['def main():\n n=int(input())\n sum=0\n\n for count in range(n):\n if(count%3==0)|(count%5==0):\n continue\n else:\n sum=sum+count\n \nprint(str(sum))\n', 'n=int(input())\nsum=0\n\nfor count in range(1,n+1):\n if(count%3==0)|(count%5==0):\n continue\n else:\n sum=sum+count\n \nprint(sum)\n']
|
['Wrong Answer', 'Accepted']
|
['s536618939', 's624481773']
|
[9092.0, 9100.0]
|
[23.0, 167.0]
|
[192, 151]
|
p02712
|
u017050982
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['n = int(input())\nans = 0\nfor i in range(n):\n if n % 3 != 0 and n % 5 != 0:\n ans += i\nprint(ans)', 'n = int(input())\nans = 0\nfor i in range(n + 1):\n if i % 3 != 0 and i % 5 != 0:\n ans += i\nprint(ans)']
|
['Wrong Answer', 'Accepted']
|
['s926870620', 's656420164']
|
[9164.0, 9196.0]
|
[202.0, 156.0]
|
[99, 103]
|
p02712
|
u017624958
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
["N = input()\n\nanswer = 'Yes' if '7' in N else 'No'\n\nprint(answer)\n", 'N = int(input())\n\nis_Fizz = lambda number: number % 3 == 0\nis_Buzz = lambda number: number % 5 == 0\n\nanswer = 0\nfor i in range(N + 1):\n if is_Fizz(i) or is_Buzz(i): continue\n \n answer += i\n\nprint(answer)\n']
|
['Wrong Answer', 'Accepted']
|
['s447244206', 's579449626']
|
[9020.0, 9160.0]
|
[20.0, 237.0]
|
[65, 213]
|
p02712
|
u017849462
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N = int(input())\nsum = 0\n\nfor i in range(1,N+1):\n if not (i % 3 == 0) and not (i % 5 == 0):\n print(i)\n sum += i\n\nprint(sum)', 'N = int(input())\nsum = 0\n\nfor i in range(1,N+1):\n if not (i % 3 == 0) and not (i % 5 == 0):\n sum += i\n\nprint(sum)\n']
|
['Wrong Answer', 'Accepted']
|
['s398149012', 's374458398']
|
[9292.0, 9160.0]
|
[322.0, 155.0]
|
[141, 125]
|
p02712
|
u019075898
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['#B\nN = int(input())\nA = list(range(1, N + 1))\nans = 0\nfor a in A:\n if (a % 3 == 0 and a % 5 == 0) or (a % 3 == 0) or (a % 5 == 0):\n pass\n else:\n ans += A[a - 1]\nprint(A)\nprint(ans)\n\n', '#B\nN = int(input())\nA = list(range(1, N + 1))\nans = 0\nfor a in A:\n if (a % 3 == 0) or (a % 5 == 0):\n pass\n else:\n ans += A[a - 1]\nprint(A)\n\n', 'N = int(input())\nA = list(range(1, N))\nans = 0\nfor a in A:\n if (a % 3 == 0 and a % 5 == 0) or (a % 3 == 0) or (a % 3 == 0):\n pass\n else:\n ans += A[a - 1]\nprint(ans)', '#B\nN = int(input())\nA = list(range(1, N + 1))\nans = 0\nfor a in A:\n if (a % 3 == 0) or (a % 5 == 0):\n pass\n else:\n ans += A[a - 1]\nprint(ans)']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s084305560', 's625141107', 's707842675', 's815645988']
|
[65704.0, 65700.0, 48332.0, 48348.0]
|
[359.0, 305.0, 286.0, 215.0]
|
[202, 160, 184, 160]
|
p02712
|
u020798319
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N = int(input())\nli = []\nfor i in range(N):\n if i % 3 != 0 and i % 5 != 0 :\n li.append(i)\nprint(sum(li))\nprint(li)\n', 'N = int(input())\nli = 0\nfor i in range(1,N+1,1):\n if i % 3 != 0 and i % 5 != 0 :\n li += i\nprint(li)\n\n']
|
['Wrong Answer', 'Accepted']
|
['s857533440', 's922237487']
|
[38168.0, 9088.0]
|
[212.0, 162.0]
|
[119, 105]
|
p02712
|
u022658079
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N,=map(int, input().split()) \nfor i in range(1,N+1):\n if (i % 15==0):\n print("FizzBizz")\n elif(i % 5==0):\n print("Fizz")\n elif(i % 3==0):\n print("Bizz")\n else:\n print(i)', 'N,=map(int, input().split()) \nsum=0\nfor i in range(1,N+1):\n if (i % 3==0 or i% 5==0):\n continue\n sum=sum+i\nprint(sum)']
|
['Wrong Answer', 'Accepted']
|
['s783376357', 's669860890']
|
[9228.0, 9164.0]
|
[422.0, 156.0]
|
[289, 210]
|
p02712
|
u026002792
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['n = int(input())\nm = 0\n\nfor i in rane(n+1):\n if n%3 != 0 and n%5 != 0:\n m += i\n\nprint(m)\n\n', 'n = int(input())\nm = 0\n\nfor i in range(n+1):\n if i%3 != 0 and i%5 != 0:\n m += i\n\nprint(m)\n\n']
|
['Runtime Error', 'Accepted']
|
['s062725709', 's406248414']
|
[9156.0, 9152.0]
|
[23.0, 155.0]
|
[94, 95]
|
p02712
|
u026731851
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N=int(input())\ns=(N*(N-1))/2-(int(N/3)*3+3)*int(N/3)/2-(int(N/5)*5+5)*int(N/5)/2+(int(N/15)*15+15)*int(N/15)/2\n\n\nprint(s) \n', 'N=int(input())\ns=(N*(N+1))/2-(int(N/3)*3+3)*int(N/3)/2-(int(N/5)*5+5)*int(N/5)/2+(int(N/15)*15+15)*int(N/15)/2\n\n\nprint(int(s)) ']
|
['Wrong Answer', 'Accepted']
|
['s427325916', 's279323445']
|
[9172.0, 9180.0]
|
[19.0, 21.0]
|
[124, 128]
|
p02712
|
u027076164
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N = input()\n\na = 0\n\nfor val in range(1, N+1):\n if val%3 != 0 and val%3 != 0:\n a += val\n \nprint(a)', 'N = input()\n\na = 0\n\nfor val in range(1, N+1):\n if val%3 != 0 and val%3 != 0:\n a += val\n else:\n pass\n \nprint(a)', 'N = int(input())\n\na = 0\n\nfor val in range(1, N+1):\n if val%3 != 0 and val%5 != 0:\n a += val\n \nprint(a)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s030515738', 's541822498', 's446330339']
|
[9088.0, 9024.0, 9064.0]
|
[19.0, 22.0, 148.0]
|
[102, 119, 107]
|
p02712
|
u027403702
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N = int(input())\ntotal = 0\nfor i in range(1,N + 1):\n if i % 3 == 0 or i % 5 == 0:\n continue\n t = t + i\nprint(total)', 'N = int(input())\ntotal = 0\nfor i in range(1,N + 1):\n if i % 3 == 0 or i % 5 == 0:\n continue\n total = total + i\nprint(total)']
|
['Runtime Error', 'Accepted']
|
['s328935139', 's516041412']
|
[9172.0, 9160.0]
|
[22.0, 153.0]
|
[128, 136]
|
p02712
|
u028014940
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
["\nimport sys\nsys.setrecursionlimit(10**6)\nN = int(input())\n\nfizzbuzz = []\n\nfor i in range(1, N):\n if i % 15 == 0:\n fizzbuzz.append('0')\n elif i % 3 == 0:\n fizzbuzz.append('0')\n elif i % 5 == 0:\n fizzbuzz.append('0')\n else:\n fizzbuzz.append(str(i))\n\nnum = [int(s) for s in fizzbuzz]\nprint(int(sum(num))\n", "\n\nN = int(input())\n\nfizzbuzz = []\n\nfor i in range(1, N):\n if i % 15 == 0:\n fizzbuzz.append('0')\n elif i % 3 == 0:\n fizzbuzz.append('0')\n elif i % 5 == 0:\n fizzbuzz.append('0')\n else:\n fizzbuzz.append(str(i))\n\nnum = [int(s) for s in fizzbuzz]\nprint(int(sum(num))L)", "\n\nN = int(input())\n\nfizzbuzz = []\n\nfor i in range(1, N+1):\n if i % 3 == 0 or i % 5 == 0:\n fizzbuzz.append('0')\n else:\n fizzbuzz.append(str(i))\n\nnum = [int(s) for s in fizzbuzz]\nprint(sum(num))"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s537512139', 's700195764', 's485078169']
|
[8984.0, 9052.0, 75040.0]
|
[19.0, 22.0, 427.0]
|
[341, 303, 212]
|
p02712
|
u031722966
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N = int(input())\ni = 0\nresult = 0\nwhile i <= N:\n i += 1\n if i % 3 != 0 and i % 5 != 0:\n result += i\nprint(result)', 'N = int(input())\ni = 1\nresult = 0\nwhile i <= N:\n if i % 3 != 0 and i % 5 != 0:\n result += i\n i += 1\nprint(result)']
|
['Wrong Answer', 'Accepted']
|
['s403163696', 's513483197']
|
[9168.0, 9192.0]
|
[202.0, 205.0]
|
[126, 126]
|
p02712
|
u036340997
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['n = int(input())\nprint(n*(n+1)//2 - n//3 - n//5 + n//15)', 'n = int(input())\na = n//3\nb = n//5\nc = n//15\ndef s(x):\n return x*(x+1)//2\nprint(s(n) - 3*s(a) - 5*s(b) + 15*s(c))']
|
['Wrong Answer', 'Accepted']
|
['s774230745', 's548422301']
|
[9092.0, 9172.0]
|
[21.0, 20.0]
|
[56, 114]
|
p02712
|
u039189422
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N = int(input())\ns = N*(N+1)/2\n\np = N//3\nq = N//5\nr = N//15\n\npp = p*(p+1)*3/2\nqq = q*(q+1)*5/2\nrr = r*(r+1)*15/2\n\nprint(s-pp-qq+rr)', 'N = int(input())\ns = N*(N+1)/2\n\np = N//3\nq = N//5\nr = N//15\n\npp = p*(p+1)*3/2\nqq = q*(q+1)*5/2\nrr = r*(r+1)*15/2\n\nprint(int(s-pp-qq+rr))']
|
['Wrong Answer', 'Accepted']
|
['s119253944', 's653694437']
|
[9120.0, 9080.0]
|
[22.0, 22.0]
|
[131, 136]
|
p02712
|
u042497514
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N = input()\ntip = "No"\nif (N[0] == 7) or (N[1] == 7) or (N[2] == 7):\n tip = "Yes"\nprint(tip)', 'N = int(input())\n\nx = N // 3\ny = N // 5\nz = N // 15\n\np = N * (N + 1) / 2\nq = 3 * x * (x + 1) / 2\nr = 5 * y * (y + 1) / 2\ns = 15 * z * (z + 1) / 2\nSum = p - q - r + s\nprint(int(Sum))']
|
['Runtime Error', 'Accepted']
|
['s884493858', 's322263284']
|
[9100.0, 9180.0]
|
[21.0, 20.0]
|
[93, 181]
|
p02712
|
u045953894
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['n = int(input())\nprint(sum(n)-sum(n/3)*3-sum(n/5)*5+sum(n/15)*15)', 'n = int(input())\ns = 0\nfor i in range(1, n+1):\n if i % 15 == 0:\n pass\n elif i % 3 == 0:\n pass\n elif i % 5 == 0:\n pass\n else:\n s += i\nprint(s)\n']
|
['Runtime Error', 'Accepted']
|
['s189836226', 's658661772']
|
[9160.0, 9164.0]
|
[25.0, 182.0]
|
[65, 182]
|
p02712
|
u046158516
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['import math\nNstring=int(input())\nans=(N*(N+1))/2\nans=ans-math.floor(N/3)\nans=ans-math.floor(N/5)\nans=ans+math.floor(N/15)\nprint(ans)', 'import math\nN=int(input())\nans=(N*(N+1))/2\nans=ans-3*math.floor(N/3)*(math.floor(N/3)+1)/2\nans=ans-5*math.floor(N/5)*(math.floor(N/5)+1)/2\nans=ans+15*math.floor(N/15)*(math.floor(N/15)+1)/2\nprint(int(ans))']
|
['Runtime Error', 'Accepted']
|
['s884297668', 's783995507']
|
[9048.0, 9216.0]
|
[22.0, 19.0]
|
[132, 205]
|
p02712
|
u046187684
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
["def solve(string):\n return str(sum(i for i in range(n + 1) if i % 3 > 1 and i % 5 > 1))\n\n\nif __name__ == '__main__':\n import sys\n print(solve(sys.stdin.read().strip()))\n", "def solve(string):\n return str(sum(i for i in range(int(string) + 1) if i % 3 > 1 and i % 5 > 1))\n\n\nif __name__ == '__main__':\n import sys\n print(solve(sys.stdin.read().strip()))\n", "def f(n):\n return n * (n + 1) // 2\n\n\ndef solve(string):\n n = int(string)\n return str(f(n) - 3 * f(n // 3) - 5 * f(n // 5) + 15 * f(n // 15))\n\n\nif __name__ == '__main__':\n import sys\n print(solve(sys.stdin.read().strip()))\n"]
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s684575621', 's824899357', 's318829262']
|
[9004.0, 9100.0, 9176.0]
|
[24.0, 83.0, 23.0]
|
[178, 188, 237]
|
p02712
|
u047502873
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
["for number in range(1, 30 + 1):\n if (number % 3 == 0) and (number % 5 == 0):\n print('FizzBuzz')\n elif number % 3 == 0:\n print('Fizz')\n elif number % 5 == 0:\n print('Buzz')\n else:\n print(str(number))\n", 'n = int(input())\ntotal = [] \n\nfor i in range(1, n + 1):\n if i % 3 == 0 and i % 5 == 0:\n "FizzBuzz"\n elif i % 3 == 0:\n "Fizz"\n elif i % 5 == 0:\n "Buzz"\n else:\n total.append(i) \nprint(sum(total)) ']
|
['Wrong Answer', 'Accepted']
|
['s726705623', 's773302495']
|
[8732.0, 30012.0]
|
[31.0, 218.0]
|
[239, 237]
|
p02712
|
u048915776
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['n = input()\nans=0\nfor i in range(1,n):\n if i%3==0 or i%5==0:\n continue\n ans+=i\nprint(ans)', 'n = input()\nans=0\nfor i in range(1,n+1):\n if i%3==0 or i%5==0:\n continue\n ans+=i\nprint(ans)', 'n = int(input())\nans=0\nfor i in range(1,n+1):\n if i%3==0 or i%5==0:\n continue\n ans+=i\nprint(ans)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s703223834', 's899422872', 's473920098']
|
[9096.0, 9096.0, 9172.0]
|
[21.0, 20.0, 151.0]
|
[102, 104, 109]
|
p02712
|
u049979154
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N = int(input())\n\nsum = 0\n\nfor i in N + 1:\n if i % 3 == 0 or i % 5 == 0:\n continue\n else:\n sum += i\n\nprint(sum)', 'N = int(input())\n\nsum = 0\n\nfor i in range(N + 1):\n if i % 3 == 0 or i % 5 == 0:\n continue\n else:\n sum += i\n\nprint(sum)']
|
['Runtime Error', 'Accepted']
|
['s530268052', 's323811791']
|
[9168.0, 9160.0]
|
[20.0, 151.0]
|
[131, 138]
|
p02712
|
u050641473
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['x = int(input())\nans = 0\n\nfor i in range(x+1):\n if i % 15 == 0 :\n pass\n elif i % 3 == 0:\n pass\n elif i % 5 == 0:\n pass\n else:\n ans += i\n print(i)\n\nprint(ans)', 'x = int(input())\nans = 0\n\nfor i in range(1, x+1):\n if i % 3 != 0 and i % 5 != 0:\n ans += i\nprint(ans)']
|
['Wrong Answer', 'Accepted']
|
['s746756751', 's006214479']
|
[9760.0, 9020.0]
|
[507.0, 152.0]
|
[174, 105]
|
p02712
|
u051928503
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N=1000000\nn=N//15\nans=60*(n**2)\nif N%15==1:\n\tans+=(1+15*(n))\nelif N%15==2 or N%15==3:\n\tans+=(3+30*(n))\nelif N%15==4 or N%15==5 or N%15==6:\n\tans+=(7+45*(n))\nelif N%15==7:\n\tans+=(14+60*(n))\nelif N%15==8 or N%15==9 or N%15==10:\n\tans+=(22+75*(n))\nelif N%15==11 or N%15==12:\n\tans+=(33+90*(n))\nelif N%15==13:\n\tans+=(46+105*(n))\nelif N%15==14:\n\tans+=(60+120*(n))\nprint(ans)', 'N=int(input())\nn=N//15\nans=60*(n**2)\nif N%15==1:\n\tans+=(1+15*(n))\nelif N%15==2 or N%15==3:\n\tans+=(3+30*(n))\nelif N%15==4 or N%15==5 or N%15==6:\n\tans+=(7+45*(n))\nelif N%15==7:\n\tans+=(14+60*(n))\nelif N%15==8 or N%15==9 or N%15==10:\n\tans+=(22+75*(n))\nelif N%15==11 or N%15==12:\n\tans+=(33+90*(n))\nelif N%15==13:\n\tans+=(46+105*(n))\nelif N%15==14:\n\tans+=(60+120*(n))\nprint(ans)']
|
['Wrong Answer', 'Accepted']
|
['s022964303', 's807638714']
|
[9100.0, 9236.0]
|
[25.0, 23.0]
|
[366, 371]
|
p02712
|
u054825571
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N=int(input())\nans=0\nfor i in range(N):\n if N%3!=0 and N%5!=0:\n ans+=i\nprint(ans)', 'N=int(input())\nans=0\nfor i in range(1,N+1):\n if i%3!=0 and i%5!=0:\n ans+=i\nprint(ans)']
|
['Wrong Answer', 'Accepted']
|
['s512998447', 's536686093']
|
[9088.0, 9064.0]
|
[187.0, 155.0]
|
[85, 89]
|
p02712
|
u058264533
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['import numpy as np\n\n\nn = int(input())\n\n\ndef multiples_3(matrix):\n \n m_de = np.delete(fizzbuzz_list,2, axis=1)\n \n f_list = np.zeros(j).reshape(-1, 1)\n \n result = np.concatenate([m_de, f_list], 1)\n return result\n\n\nj = -(-n // 3)\n\n\nfizzbuzz_list = np.arange(1,n+1)\n\nbefore_size = fizzbuzz_list.size\n\nfizzbuzz_list.resize((j,3))\n\n\nfizzbuzz_list = multiples_3(fizzbuzz_list)\n\n\nn_b_1 = np.arange(3,j,5)\nn_b_2 = np.arange(1,j,5)\n\nfizzbuzz_list[n_b_1,0] = 0\nfizzbuzz_list[n_b_2,1] = 0\n\n\nn_fb = np.arange(4,j,5)\nfizzbuzz_list[n_fb,2] = 0\n\nprint(np.sum(fizzbuzz_list))\n\n# np.where(fizzbuzz_list[:,2:3],fizzbuzz_list,"F")\n\n', 'import numpy as np\n\n\nn = int(input())\n\n\ndef multiples_3(matrix):\n \n m_de = np.delete(fizzbuzz_list,2, axis=1)\n \n f_list = np.zeros(j).reshape(-1, 1)\n \n result = np.concatenate([m_de, f_list], 1)\n return result\n\n\nj = -(-n // 3)\n\n\nfizzbuzz_list = np.arange(1,n+1)\n\nbefore_size = fizzbuzz_list.size\n\nfizzbuzz_list.resize((j,3))\n\n\nfizzbuzz_list = multiples_3(fizzbuzz_list)\n\n\nn_b_1 = np.arange(3,j,5)\nn_b_2 = np.arange(1,j,5)\n\nfizzbuzz_list[n_b_1,0] = 0\nfizzbuzz_list[n_b_2,1] = 0\n\n\nn_fb = np.arange(4,j,5)\nfizzbuzz_list[n_fb,2] = 0\n\nprint(np.sum(fizzbuzz_list))\n\n# np.where(fizzbuzz_list[:,2:3],fizzbuzz_list,"F")\n\n', 'import numpy as np\n\n\nn = int(input())\n\n\ndef element_check(before,after,matirx):\n diff = after - before\n if diff == 1:\n a = np.delete(matirx,-1)\n return a\n if diff == 2:\n a = np.delete(matirx,-1)\n b = np.delete(a,-1)\n return b\n\n\ndef multiples_3(matrix):\n \n m_de = np.delete(fizzbuzz_list, [2, 3], axis=1)\n \n f_list = np.zeros(j,dtype = object).reshape(-1, 1)\n f_list.fill("F")\n \n result = np.concatenate([m_de, f_list], 1)\n return result\n\n\nj = -(-n // 3)\n\n\nfizzbuzz_list = np.arange(1,n+1,dtype=object)\n\nbefore_size = fizzbuzz_list.size\n\nfizzbuzz_list.resize((j,3))\n\n\nfizzbuzz_list = multiples_3(fizzbuzz_list)\n\n\nn_b_1 = np.arange(3,j,5)\nn_b_2 = np.arange(1,j,5)\n\nfizzbuzz_list[n_b_1,0] = "B"\nfizzbuzz_list[n_b_2,1] = "B"\n\n\nn_fb = np.arange(4,j,5)\nfizzbuzz_list[n_fb,2] = "FB"\n\n\nresult = element_check(before_size,fizzbuzz_list.ravel().size,fizzbuzz_list.ravel())\n\nprint(np.sum(result))\n\n# np.where(fizzbuzz_list[:,2:3],fizzbuzz_list,"F")\n', 'import numpy as np\n\n\nn = int(input())\n\n\ndef multiples_3(matrix):\n \n m_de = np.delete(fizzbuzz_list,2, axis=1)\n \n f_list = np.zeros(j).reshape(-1, 1)\n \n result = np.concatenate([m_de, f_list], 1)\n return result\n\n\nj = -(-n // 3)\n\n\nfizzbuzz_list = np.arange(1,n+1)\n\nbefore_size = fizzbuzz_list.size\n\nfizzbuzz_list.resize((j,3))\n\n\nfizzbuzz_list = multiples_3(fizzbuzz_list)\n\n\nn_b_1 = np.arange(3,j,5)\nn_b_2 = np.arange(1,j,5)\n\nfizzbuzz_list[n_b_1,0] = 0\nfizzbuzz_list[n_b_2,1] = 0\n\n\nn_fb = np.arange(4,j,5)\nfizzbuzz_list[n_fb,2] = 0\n\nprint(fizzbuzz_list)\nprint(int(np.sum(fizzbuzz_list)))\n\n\n', 'import numpy as np\n\n\nn = int(input())\n\n\ndef multiples_3(matrix):\n \n m_de = np.delete(fizzbuzz_list, [2, 3], axis=1)\n \n f_list = np.zeros(j).reshape(-1, 1)\n \n result = np.concatenate([m_de, f_list], 1)\n return result\n\n\nj = -(-n // 3)\n\n\nfizzbuzz_list = np.arange(1,n+1)\n\nbefore_size = fizzbuzz_list.size\n\nfizzbuzz_list.resize((j,3))\n\n\nfizzbuzz_list = multiples_3(fizzbuzz_list)\n\n\nn_b_1 = np.arange(3,j,5)\nn_b_2 = np.arange(1,j,5)\n\nfizzbuzz_list[n_b_1,0] = 0\nfizzbuzz_list[n_b_2,1] = 0\n\n\nn_fb = np.arange(4,j,5)\nfizzbuzz_list[n_fb,2] = 0\n\nprint(np.sum(fizzbuzz_list))\n\n# np.where(fizzbuzz_list[:,2:3],fizzbuzz_list,"F")\n\n', 'import numpy as np\n\n\nn = int(input())\n\n\ndef multiples_3(matrix):\n \n m_de = np.delete(fizzbuzz_list,2, axis=1)\n \n f_list = np.zeros(j).reshape(-1, 1)\n \n result = np.concatenate([m_de, f_list], 1)\n return result\n\n\nj = -(-n // 3)\n\n\nfizzbuzz_list = np.arange(1,n+1)\n\nbefore_size = fizzbuzz_list.size\n\nfizzbuzz_list.resize((j,3))\n\n\nfizzbuzz_list = multiples_3(fizzbuzz_list)\n\n\nn_b_1 = np.arange(3,j,5)\nn_b_2 = np.arange(1,j,5)\n\nfizzbuzz_list[n_b_1,0] = 0\nfizzbuzz_list[n_b_2,1] = 0\n\n\nn_fb = np.arange(4,j,5)\nfizzbuzz_list[n_fb,2] = 0\n\nprint(np.sum(fizzbuzz_list))\n\n# np.where(fizzbuzz_list[:,2:3],fizzbuzz_list,"F")\n\n', 'import numpy as np\n\n\nn = int(input())\n\n\ndef multiples_3(matrix):\n \n m_de = np.delete(fizzbuzz_list,2, axis=1)\n \n f_list = np.zeros(j).reshape(-1, 1)\n \n result = np.concatenate([m_de, f_list], 1)\n return result\n\n\nj = -(-n // 3)\n\n\nfizzbuzz_list = np.arange(1,n+1)\n\nbefore_size = fizzbuzz_list.size\n\nfizzbuzz_list.resize((j,3))\n\n\nfizzbuzz_list = multiples_3(fizzbuzz_list)\n\n\nn_b_1 = np.arange(3,j,5)\nn_b_2 = np.arange(1,j,5)\n\nfizzbuzz_list[n_b_1,0] = 0\nfizzbuzz_list[n_b_2,1] = 0\n\n\nn_fb = np.arange(4,j,5)\nfizzbuzz_list[n_fb,2] = 0\n\nsum = 0\nsum = np.sum(fizzbuzz_list)\nprint(int(sum))\n']
|
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s132409059', 's259865436', 's328247558', 's478664308', 's844704535', 's869255947', 's077013248']
|
[47484.0, 47672.0, 91416.0, 47568.0, 47872.0, 47588.0, 47676.0]
|
[113.0, 120.0, 230.0, 117.0, 117.0, 120.0, 116.0]
|
[897, 897, 1311, 872, 903, 897, 867]
|
p02712
|
u058320631
| 2,000
| 1,048,576
|
Let us define the **FizzBuzz sequence** a_1,a_2,... as follows: * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}. * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}. * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}. * If none of the above holds, a_i=i. Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
|
['N=int(input())\nk=0\nfor i in range(N):\n if ((i+1)%3!=0)&&((i+1)%5!=0):\n k=k+i\nprint(k)\n ', 'N=int(input())\nk=0\nfor i in range(N):\n j=i+1\n if (j%3!=0)&&(j%5!=0):\n k=k+j\nprint(k)\n', 'N=int(input())\nk=0\nfor i in range(N):\n if (i%3!=0)&&(i%5!=0):\n k=k+i\nprint(k)', 'N=int(input())\nk=0\nfor i in range(N):\n j=i+1\n if (j%3!=0)and(j%5!=0):\n k=k+j\nprint(k)\n']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s053482507', 's266140172', 's540717020', 's186217733']
|
[9016.0, 8960.0, 8948.0, 9156.0]
|
[27.0, 22.0, 23.0, 199.0]
|
[92, 90, 81, 91]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.