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
p02712
u059238013
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 itertools\nimport math\n\nk=200\nklis = list(range(1,k+1))\nlis = list(itertools.product(klis, klis, klis))\ntemp = []\nfor i in range(len(lis)):\n temp.append(math.gcd(math.gcd(lis[i][0],lis[i][1]),lis[i][2]))\n\nprint(sum(temp))', 'n = int(input())\n\nall = int((n+1)*(n/2))\nfizz = int(3*((n//3 + 1)*((n//3)/2)))\nbuzz = int(5*((n//5 + 1)*((n//5)/2)))\nfizzbuzz = int(15*((n//15 + 1)*((n//15)/2)))\n\nresult = all - fizz - buzz + fizzbuzz\nprint(result)']
['Time Limit Exceeded', 'Accepted']
['s504648222', 's256306806']
[611996.0, 9204.0]
[2221.0, 24.0]
[230, 215]
p02712
u075595666
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 = n*(n+1)//2\nd = n%3\nans -= 3*(d+1)*d//2\ne = n%5\nans -= 5*(e+1)*e//2\nf = n%15\nans -= 15*(f+1)*f//2\nprint(ans)', 'n = int(input())\nans = n*(n+1)//2\nd = n//3\nans -= 3*(d+1)*d//2\ne = n//5\nans -= 5*(e+1)*e//2\nf = n//15\nans -= 15*(f+1)*f//2\nprint(ans)\n', 'n = int(input())\nans = n*(n+1)//2\nd = n//3\nans -= 3*(d+1)*d//2\ne = n//5\nans -= 5*(e+1)*e//2\nf = n//15\nans += 15*(f+1)*f//2\nprint(ans)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s392749954', 's627892336', 's823914805']
[9180.0, 9168.0, 9176.0]
[21.0, 21.0, 22.0]
[130, 134, 134]
p02712
u076065707
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())\nSum= A*(A+1)/2\nB=(A//3)\nC=(A//5)\nD=(A//15)\n\nE=B*(6+(B-1)*3)/2\nF=C*(10+(C-1)*5)/2\nG=D*(30+(D-1)*15)/2\n\nprint(Sum-E-F+G)', 'A=int(input())\nSum= A*(A+1)/2\nB=(A//3)\nC=(A//5)\nD=(A//15)\n\nE=B*(6+(B-1)*3)/2\nF=C*(10+(C-1)*5)/2\nG=D*(30+(D-1)*15)/2\n\nprint(int(Sum-E-F+G))']
['Wrong Answer', 'Accepted']
['s669936289', 's374417217']
[9188.0, 9216.0]
[20.0, 21.0]
[133, 138]
p02712
u076363290
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\nfor i in range(1,N +1):\n if i % 3 == 0 and i % 5 == 0:\n print('FizzBuzz')\n if i % 3 == 0:\n print('Fizz')\n if i % 5 == 0:\n print('Buzz')\n else:\n sum = sum + i\nprint(sum)", 'N = int(input())\nsum = 0\nfor i in range(1,N +1):\n if i % 5 != 0 and i % 3 != 0:\n sum += i\nprint(sum)\n']
['Wrong Answer', 'Accepted']
['s089799291', 's108175510']
[9108.0, 9128.0]
[394.0, 161.0]
[233, 111]
p02712
u080200554
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 = 0\nfor i in range(1, N+1):\n if i%3==0 or i%5==0 or (i%3==0 and i%5==0):\n\tcontinue\n S+=i\nprint(S) ', 'N = int(input())\nout = 0\nfor in in range(1,N+1):\n if i%3==0 and i%5==0 or i%3==0 or i%5==0\n\tcontinue\n out +=i\nprint(out) ', 'N = int(input())\nS = 0\nfor i in range(1, N+1):\n if i%3==0 or i%5==0 or i%3==0 and i%5==0\n\tcontinue\n S+=i\nprint(S) ', 'N = int(input())\nS = 0\nfor i in range(1,N+1):\n if i%3==0 or i%5==0 or i%3==0 and i%5==0\n\tcontinue\n S +=i\nprint(S) ', 'N = int(input())\nS = 0\nfor i in range(1, N+1):\n if i%3==0 or i%5==0 or i%3==0 and i%5==0\n\t\tcontinue\n S+=i\nprint(S) ', 'N = int(input())\nS = 0\nfor in in range(1,N+1):\n if i%3==0 or i%5==0 or i%3==0 and i%5==0\n\tcontinue\n S +=i\nprint(S) ', 'N = int(input())\nout = 0\nfor i in range(1,N+1):\n if i%3 == 0 and i%5 == 0 or i%3==0 or i%5==0:\n continue\n out += i\nprint(out)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s134825141', 's174735678', 's420440464', 's578701090', 's624437453', 's665544255', 's951218402']
[8968.0, 9008.0, 9024.0, 9024.0, 8984.0, 9004.0, 9164.0]
[21.0, 20.0, 21.0, 21.0, 22.0, 20.0, 205.0]
[119, 123, 116, 116, 117, 117, 137]
p02712
u082978753
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())\nres = 0\nfor i in range(1,N+1):\n if i%15==0:\n dp = 0\n elif i%5==0:\n dp = 0\n elif i%3==0:\n dp = 0\n else :å\n dp = i\n res = res+dp\nprint(res)', 'N = int(input())\nres = 0\nfor i in range(1,N+1):\n if i%15==0:\n dp = 0\n elif i%5==0:\n dp = 0\n elif i%3==0:\n dp = 0\n else :\n dp = i\n res = res+dp\nprint(res)']
['Runtime Error', 'Accepted']
['s118382018', 's900772924']
[9028.0, 9180.0]
[21.0, 251.0]
[198, 196]
p02712
u083874202
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\n\nI = int(input())\n\n#H, W = map(int, input().split())\n\n#N = input()\n\n#listA = list(N)\n\na = 0\nfor num in range(I+1):\n print(num)\n if num%3 == 0 and num%5 == 0:\n print('FizzBuzz')\n elif num%3 == 0:\n print('Fizz')\n elif num%5 == 0:\n print('Buzz')\n else:\n a = a + num\n\nprint(a)", 'import math\n\nI = int(input())\n\n#H, W = map(int, input().split())\n\n#N = input()\n\n#listA = list(N)\na = 0\nfor num in range(I):\n if num%3 == 0 and num%5 == 0:\n\n elif num%3 == 0:\n\n elif num%5 == 0:\n\n else:\n a = a + num\n\nprint(a)', "import math\n\nI = int(input())\n\n#H, W = map(int, input().split())\n\n#N = input()\n\n#listA = list(N)\n\na = 0\nfor num in range(I):\n print(num)\n if num%3 == 0 and num%5 == 0:\n print('FizzBuzz')\n elif num%3 == 0:\n print('Fizz')\n elif num%5 == 0:\n print('Buzz')\n else:\n a = a + num\n\nprint(a)\n", "import math\n\nI = int(input())\n\n#H, W = map(int, input().split())\n\n#N = input()\n\n#listA = list(N)\na = 0\nfor num in range(I):\n if num%3 == 0 and num%5 == 0:\n print('FizzBuzz')\n elif num%3 == 0:\n print('Fizz')\n elif num%5 == 0:\n print('Buzz')\n else:\n a = a + num\n\nprint(a)\n", "import math\n\nI = int(input())\n\n#H, W = map(int, input().split())\n\n#N = input()\n\n#listA = list(N)\nI = I + 1\na = 0\nfor num in range(I):\n if num%3 == 0 and num%5 == 0:\n print('FizzBuzz')\n elif num%3 == 0:\n print('Fizz')\n elif num%5 == 0:\n print('Buzz')\n else:\n a = a + num\n\nprint(a)", 'import math\n\nI = int(input())\n\n#H, W = map(int, input().split())\n\n#N = input()\n\n#listA = list(N)\na = 0\nI = I + 1\nfor num in range(I):\n if num%3 == 0 and num%5 == 0:\n a = a\n elif num%3 == 0:\n a = a\n elif num%5 == 0:\n a = a\n else:\n a = a + num\n\nprint(a)\n']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s280382257', 's314038830', 's573428609', 's580598754', 's584668404', 's951595130']
[12332.0, 8988.0, 12244.0, 9192.0, 9200.0, 9052.0]
[615.0, 20.0, 645.0, 317.0, 319.0, 224.0]
[419, 334, 418, 402, 411, 384]
p02712
u089142196
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 i%3==0 or i%5==0:\n pass\n else:\n ans += i\n \nprint(ans)', 'N=int(input())\nans=0\n\nfor i in range(1,N+1):\n if i%3==0 or i%5==0:\n pass\n else:\n ans += i\n \nprint(ans)']
['Runtime Error', 'Accepted']
['s096972156', 's528743940']
[9160.0, 9168.0]
[20.0, 152.0]
[113, 113]
p02712
u089376182
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\n\nfor i in range(1, n+1):\n if i%3!=0 and i%5!=0:\n ans += i\n \nprint(ans)', 'n = int(input())\nans = 0\n\nfor i in range(1, n+1):\n if i%3!=0 and i%5!=0:\n ans += i\n \nprint(ans)']
['Runtime Error', 'Accepted']
['s771363501', 's891075901']
[9124.0, 9104.0]
[22.0, 146.0]
[97, 102]
p02712
u091307273
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 a, b = n // 15, n % 15\n\n fbeg = [i for i in range(1, 16) if i % 3 != 0 and i % 5 != 0]\n fend = [i for i in range(a * 15, n + 1) if i % 3 != 0 and i % 5 != 0]\n\n ne = len(fbeg)\n fbs = sum(fbeg) # sum of first terms in [1, 15]\n fes = sum(fend)\n step = 15 * ne\n first = fbs\n last = fbs + (a-1) * step\n\n tot = (first + last) * (last - first + step) // step // 2 + sum(fend)\n\n print(tot)\n\n', 'def main():\n n = int(input())\n a, b = n // 15, n % 15\n\n fbeg = [i for i in range(1, 16) if i % 3 != 0 and i % 5 != 0]\n fend = [i for i in range(a * 15, n + 1) if i % 3 != 0 and i % 5 != 0]\n\n ne = len(fbeg)\n fbs = sum(fbeg) # sum of first terms in [1, 15]\n fes = sum(fend)\n step = 15 * ne\n first = fbs\n last = fbs + (a-1) * step\n\n tot = (first + last) * a // 2 + fes\n\n print(tot)\n\nmain()\n']
['Wrong Answer', 'Accepted']
['s527967869', 's936778484']
[9072.0, 9124.0]
[28.0, 24.0]
[450, 423]
p02712
u094158322
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.
['s = input().split()\nn = int(s)\nsum = 0\nfor i range(1:n+1):\n #print(n)\n if ((i mod 3 )!=0 ) and ((i mod 5 )!=0 ) :\n sum += i\nprint(sum)\n', 's = input().split()\nn = int(s)\nsum = 0\nfor i range(1,n+1):\n print(n)\n if ((i mod 3 )!=0 ) and ((i mod 5 )!=0 ) :\n sum += i\nprint(sum)\n', 's = input().split()\nn = int(s[0])\nsum = 0\nfor i in range(1,n+1):\n #print(n)\n if ((i % 3 )!=0 ) and ((i % 5 )!=0 ) :\n sum += i\nprint(sum)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s267915008', 's875114142', 's020368133']
[9008.0, 8952.0, 9100.0]
[25.0, 20.0, 154.0]
[140, 139, 142]
p02712
u096025032
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())\n\nb = range(1, a)\n\nc = [i for i in b if i%15 == 0 and i%5 == 0 and i%3 == 0]\n\nd = sum(c)\nprint(d)', 'a = int(input())\nb = []\nif a <= 1000000:\nfor i in range(a):\n if i % 15 == 0:\n pass\n elif i % 3 == 0:\n pass\n elif i % 5 == 0:\n pass\n else:\n b.append(i)\nelse:\n pass\nprint(sum(b))\n', 'a = int(input())\nb = []\n\nfor i in range(a+1):\n if i % 3 == 0 and i % 5 == 0:\n pass\n elif i % 3 == 0:\n pass\n elif i % 5 == 0:\n pass\n else:\n b.append(i)\nprint(sum(b))\n\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s156366384', 's955204442', 's246187959']
[11564.0, 8960.0, 30024.0]
[78.0, 20.0, 221.0]
[113, 210, 198]
p02712
u096446417
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())\ntext = ""\nresult = 0\nfor i in range(1, n+1,1):\n print("in loop",i)\n if (i/3 != 0):\n print("A",i)\n result +=i\n else:\n pass\n\n\n\nprint(result)', " fizzBuzz = []\n inputNumber = int(input())\n for i in range(inputNumber + 1):\n if i % 3 == 0 and i % 5 == 0:\n metCondition = 'FizzBuzz'\n elif i % 5 == 0:\n metCondition = 'Buzz'\n elif i % 3 == 0:\n metCondition = 'Fizz'\n else:\n metCondition = i\n fizzBuzz.append(metCondition)\n metCondition_2 = [num for num in fizzBuzz if isinstance(num, (int, float))]\n print(sum(metCondition_2))", "fizzBuzz = []\ninputNumber = int(input())\nfor i in range(inputNumber + 1):\n if i % 3 == 0 and i % 5 == 0:\n metCondition = 'FizzBuzz'\n elif i % 5 == 0:\n metCondition = 'Buzz'\n elif i % 3 == 0:\n metCondition = 'Fizz'\n else:\n metCondition = i\n fizzBuzz.append(metCondition)\nmetCondition_2 = [num for num in fizzBuzz if isinstance(num, (int, float))]\nprint(sum(metCondition_2))"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s942176999', 's976797595', 's951085396']
[26256.0, 8944.0, 37744.0]
[1055.0, 22.0, 408.0]
[185, 429, 415]
p02712
u096845660
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.
['\nN = int(input())\n\n\nresult = 0\n\n\nfor i in range(1,N + 1):\n if not (i % 15 == 0 or i % 5 == 0 or i % 3 == 0):\n result += i\n print(result)', '\nN = int(input())\n\n\nresult = 0\n\n\nfor i in range(1, N + 1):\n if (i % 15 == 0 or i % 3 == 0 or i % 5 == 0):\n result += 0\n else:\n result += i\n print(result)', '\n\n\n\n\n\n\n\n\n\n\n\n\n\nN = int(input())\n\n\nresult = 0\n\n\nfor i in range(1, N + 1):\n if not (i % 15 == 0 or i % 3 == 0 or i % 5 == 0):\n result += i\n print(result)', '\nN = int(input())\n\n\nresult = 0\n\n\nfor i in range(1, N + 1):\n if i % 15 == 0:\n result += 0\n elif i % 3 == 0:\n result += 0\n elif i % 5 == 0:\n result += 0\n else:\n result += i\n print(result)', '\nN = int(input())\n\n\nresult = 0\n\n\nfor i in range(1, N + 1):\n if i % 15 == 0:\n result += 0\n elif i % 3 == 0:\n result += 0\n elif i % 5 == 0:\n result += 0\n else:\n result += i\nprint(result)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s004768172', 's465106441', 's507886693', 's665721470', 's564113720']
[15176.0, 15192.0, 15156.0, 15144.0, 9172.0]
[502.0, 525.0, 515.0, 522.0, 219.0]
[230, 281, 820, 333, 329]
p02712
u100277898
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\n\nans = 0\n\nfor i in range(1,N+1):\n if i%3 != 0 and i % 5 != 0:\n ans += i\nprint(ans)', 'N = int(input())\n\nans = 0\n\nfor i in range(1,N+1):\n if i%3 != 0 and i % 5 != 0:\n ans += i\nprint(ans)']
['Wrong Answer', 'Accepted']
['s104515323', 's185929525']
[9088.0, 9172.0]
[158.0, 149.0]
[98, 103]
p02712
u100873497
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\nans=0\nfor i in range(n+1):\n \n if not i%3==0 and i%5==0:\n ans+=i\n \nprint(ans)\n', 'n=int(input())\n\nans=0\nfor i in range(0,n+1):\n if i%3!=0 and i%5!=0:\n ans+=i\n \nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s214404542', 's127005390']
[9092.0, 9156.0]
[131.0, 146.0]
[109, 103]
p02712
u101350975
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())\ncount_list = []\nfor i in range(N + 1):\n if i % 15 == 0:\n count_list.append('FizzBuzz')\n elif i % 3 == 0:\n count_list.append('Fizz')\n elif i % 5 == 0:\n count_list.append('Buzz')\n else:\n count_list.append(i)\nint_list = []\nfor i in count_list:\n try:\n int_list.append(int(i))\n except:\n pass\nprint(int_list)\n", "N = int(input())\ncount_list = []\nfor i in range(N * 15 + 1):\n if i % 15 == 0:\n count_list.append('FizzBuzz')\n elif i % 3 == 0:\n count_list.append('Fizz')\n elif i % 5 == 0:\n count_list.append('Buzz')\n else:\n count_list.append(i)\nint_list = []\nfor i in count_list:\n try:\n int_list.append(int(i))\n except:\n pass\nprint(sum(int_list))\n", "N = int(input())\ncount_list = []\nfor i in range(N + 1):\n if i % 15 == 0:\n count_list.append('FizzBuzz')\n elif i % 3 == 0:\n count_list.append('Fizz')\n elif i % 5 == 0:\n count_list.append('Buzz')\n else:\n count_list.append(i)\nint_list = []\nfor i in count_list:\n try:\n int_list.append(int(i))\n except:\n pass\nprint(sum(int_list))\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s150651688', 's514157171', 's702585292']
[45984.0, 286304.0, 37804.0]
[771.0, 2213.0, 760.0]
[380, 390, 385]
p02712
u101839330
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.
['list = []\nfor i in range(1,1000010):\n if(i%3==0 or i%5==0):\n list.append(0)\n else:\n list.append(i)\nn = int(input())\nprint(list[:n-1])', 'list = []\nfor i in range(1,1000010):\n if(i%3==0 or i%5==0):\n list.append(0)\n else:\n list.append(i)\nn = int(input())\nprint(sum(list[:n]))']
['Wrong Answer', 'Accepted']
['s128415746', 's445673681']
[52336.0, 41368.0]
[276.0, 215.0]
[141, 144]
p02712
u102461423
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 sys\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nimport numpy as np\n\nN = int(read())\nx = np.arange(1, N + 1, dtype=np.int64)\nx[::3] = 0\nx[::5] = 0\nprint(x.sum())\n', 'import sys\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nimport numpy as np\n\nN = int(read())\nx = np.arange(N + 1, dtype=np.int64)\nx[::3] = 0\nx[::5] = 0\nprint(x.sum())\n']
['Wrong Answer', 'Accepted']
['s185744107', 's364628433']
[34488.0, 34424.0]
[106.0, 112.0]
[229, 226]
p02712
u104005543
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 i + 1 // 3 != 0 and i + 1 // 5 != 0:\n ans += i + 1\nprint(ans)', 'n = int(input())\nans = 0\nfor i in range(n):\n if (i + 1) % 3 != 0 and (i + 1) % 5 != 0:\n ans += i + 1\nprint(ans)']
['Wrong Answer', 'Accepted']
['s014634331', 's988138908']
[9164.0, 9164.0]
[242.0, 192.0]
[119, 121]
p02712
u104931745
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\nresult = 0\n\nfor i in range(1,N + 1):\n if i % 3 == 0 or i % 5 == 0:\n continue\n result += i\n \n print(result)\n ', 'N = int(input())\n\nresult = 0\nfor i in range(N + 1):\n if i % 3 != 0 and i % 5 != 0:\n result += i\n \nprint(result)\n \n\n']
['Wrong Answer', 'Accepted']
['s991628962', 's387207996']
[9296.0, 9112.0]
[320.0, 151.0]
[149, 127]
p02712
u104935308
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 = input()\n sum = 0\n for i in range(N):\n i = i+1\n if i%3 ==0 or i%5 ==0 or i%15 ==0:\n continue\n else:\n sum = sum + i\n\n print(sum)\n\n\n\n\nif __name__ == "__main__":\n main()', 'def main():\n N = int(input())\n sum = 0\n for i in range(N):\n i = i+1\n if i%3 == 0 or i%5 == 0 or i%15 == 0:\n continue\n else:\n sum = sum + i\n\n print(sum)\n\n\n\n\nif __name__ == "__main__":\n main()']
['Runtime Error', 'Accepted']
['s378952708', 's550623016']
[9044.0, 9112.0]
[20.0, 163.0]
[240, 248]
p02712
u106074637
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 = int(0)\nfor i in range(1,n+1):\n if i%15==0:\n print('FizzBuzz')\n elif i%5==0:\n print('Buzz')\n elif i%3==0:\n print('Fizz')\n else:\n print(i)\n sum = sum+i\nprint(sum)", "n = int(input())\nsum = 0\n\nfor i in range(1,n+1):\n if i%15==0:\n print('FizzBuzz')\n elif i%5==0:\n print('Buzz')\n elif i%3==0:\n print('Fizz')\n else:\n print(i)\n sum += i\nprint(sum)", "n = int(input())\nsum = 0\n\nfor i in range(1,n+1):\n if i%15==0:\n print('FizzBuzz')\n elif i%5==0:\n print('Buzz')\n elif i%3==0:\n print('Fizz')\n else:\n print(i)\n sum += i\nprint(sum)", "n = int(input())\nsum = int(0)\nfor i in range(1,n+1):\n if i%15==0:\n print('FizzBuzz')\n elif i%5==0:\n print('Buzz')\n elif i%3==0:\n print('Fizz')\n else:\n print(i)\n sum += i\nprint(sum)", 'n = int(input())\nsum = 0\nfor i in range(1,n+1):\n if i%15!=0:\n if i%5!=0:\n if i%3!=0:\n sum += i\nprint(sum)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s071804753', 's075176001', 's430259627', 's454150815', 's203392527']
[9228.0, 9232.0, 9256.0, 9176.0, 9168.0]
[476.0, 479.0, 474.0, 479.0, 195.0]
[202, 195, 195, 199, 121]
p02712
u106954338
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 = 0\nfor i in range(N):\n if i+1%3 and i+1%5 or i+1%3 or i+1%5:\n break\n else:\n global S = S+1+i\n \n \n', 'N = int(input())\nS = 0\nfor i in range(N):\n if (i+1)%3 == 0 and (i+1)%5==0 or (i+1)%3 ==0 or (1+i)%5 ==0 :\n continue\n else:\n S = S+1+i\n\nprint(S)\n \n']
['Runtime Error', 'Accepted']
['s433487655', 's958962272']
[8992.0, 9156.0]
[23.0, 298.0]
[147, 169]
p02712
u108375911
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\ni = 1\nwhile i <=a :\n if i%3 == 0:\n i += 1\n continue\n elif i%5 == 0:\n i += 1\n continue\n ans += a\n \nprint(ans)\n', 'a = input()\nans = 0\ni = 1\nfor i in range(0,a,1):\n if i%3 == 0:\n i += 1\n continue\n elif i%5 == 0:\n i += 1\n continue\n ans += a\n \nprint(ans)\n', 'a = int(input())\nans = 0\ni = 1\nwhile i <= a:\n if i%15 == 0:\n i += 1\n continue\n elif i%3 == 0:\n i += 1\n continue\n elif i%5 == 0:\n i += 1\n continue\n ans += i\n i += 1\n \nprint(ans)\n']
['Time Limit Exceeded', 'Runtime Error', 'Accepted']
['s058627321', 's712357337', 's997097994']
[9064.0, 9008.0, 9140.0]
[2206.0, 21.0, 233.0]
[174, 178, 237]
p02712
u108918063
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())\nnum_list=[]\nfor i in range(N+1):\n if i%3!=0 or i%5!=0:\n num_list.append(i)\nprint(sum(num_list))', 'N=int(input())\nnum_list=[]\nfor i in range(N+1):\n if i%3!=0 and i%5!=0:\n num_list.append(i)\n \nprint(num_list)\nprint(sum(num_list))', 'N=int(input())\nnum_list=[]\nfor i in range(N+1):\n if i%3!=0 and i%5!=0:\n num_list.append(i)\nprint(sum(num_list))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s585842203', 's826311769', 's139660478']
[45672.0, 38288.0, 30128.0]
[177.0, 211.0, 160.0]
[114, 136, 115]
p02712
u111473084
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\nans = 0\nfor i in range(n):\n if i % 3 != 0 or i % 3 != 5:\n ans += i\nprint(ans)', 'n = int(input())\n\nans = 0\nfor i in range(n):\n if i % 3 != 0 and i % 3 != 5:\n ans += i\nprint(ans)', 'n = int(input())\n\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', 'Wrong Answer', 'Accepted']
['s121308576', 's501678645', 's764079156']
[9156.0, 9164.0, 9168.0]
[169.0, 153.0, 159.0]
[105, 106, 111]
p02712
u113971909
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())\nret = n*(n+1)//2\nret -= 3*(1+n//3)//2\nret -= 5*(1+n//5)//2\nret += 15*(1+n//15)//2\nprint(ret)', "#!/usr/bin python3\n# -*- coding: utf-8 -*-\n\nimport sys\ninput = sys.stdin.readline\n\ndef main():\n n=int(input())\n ret = 0\n for i in range(1,n+1):\n if i%3!=0 and i%5!=0:\n ret += i\n print(ret)\n\nif __name__ == '__main__':\n main()"]
['Wrong Answer', 'Accepted']
['s170875465', 's941391169']
[9168.0, 9184.0]
[22.0, 100.0]
[107, 257]
p02712
u113991073
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 sum(x):\n a=int(x//3)\n b=int(x//5)\n c=int(x//15)\n sall=int((1+x)*(x/2))\n print(sall)\n s3=int((3*(a-1)+6)*(a/2))\n print(s3)\n s5=int((5*(b-1)+10)*(b/2))\n print(s5)\n s15=int((15*(c-1)+30)*(c/2))\n print(s15)\n ans=int(s15-s3-s5+sall)\n print(ans)\nn=int(input())\nsum(n)', 'print(sum([x for x in range(a,int(input())+1) if (x%3!=0)and(x%5!=0)]))', 'print(sum([x for x in range(1,int(input())+1) if (x%3!=0)and(x%5!=0)]))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s015058710', 's411804935', 's983352070']
[9180.0, 9044.0, 29992.0]
[22.0, 21.0, 108.0]
[304, 71, 71]
p02712
u114148255
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\ntotalsum = []\n\nfor i in range(1, n + 1):\n if i % 15 == 0:\n print("FizzBuzz")\n elif i % 5 == 0:\n print("Buzz")\n elif i % 3 == 0:\n print("Fizz")\n else:\n totalsum.append(i)\n\nprint(sum(totalsum))', 'n = int(input())\n\ntotal = []\n\nfor i in range(1, n + 1):\n if i % 15 == 0:\n "FizzBuzz"\n elif i % 5 == 0:\n "Buzz"\n elif i % 3 == 0:\n "Fizz"\n else:\n total.append(i)\n\nprint(sum(total))']
['Wrong Answer', 'Accepted']
['s295977309', 's143064395']
[30136.0, 29920.0]
[335.0, 218.0]
[249, 219]
p02712
u115877451
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=((a//3)*(3+(3*(a//3))))*(1/2)\nc=((a//5)*(5+(5*(a//5))))*(1/2)\nd=((a//15)*(15+(15*(a//15))))*(1/2)\ne=(a*(1+a)*(1/2))-(b+c-d)\nprint(e)', 'a=int(input())\nb=((a//3)*(3+(3*(a//3))))*(1/2)\nc=((a//5)*(5+(5*(a//5))))*(1/2)\nd=((a//15)*(15+(15*(a//15))))*(1/2)\ne=(a*(1+a)*(1/2))-(b+c-d)\nprint(e)', 'a=int(input())\nb=((a//3)*(3+(3*(a//3))))*(1/2)\nc=((a//5)*(5+(5*(a//5))))*(1/2)\nd=((a//15)*(15+(15*(a//15))))*(1/2)\ne=(a(1+a)*(1/2))-(b+c-d)\nprint(e)', 'a=int(input())\nb=((a//3)*(3+(3*(a//3))))*(1/2)\nc=((a//5)*(5+(5*(a//5))))*(1/2)\nd=((a//15)*(15+(15*(a//15))))*(1/2)\ne=(a*(1+a)*(1/2))-(b+c-d)\nprint(int(e))']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s272452056', 's897463914', 's927453689', 's731449694']
[9040.0, 9012.0, 9132.0, 9192.0]
[23.0, 19.0, 24.0, 20.0]
[149, 149, 148, 154]
p02712
u117078923
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.
['\ns = int(input())\nprint(s)\nans =0\n\nfor i in range(1, s+1):\n #print(i)\n if (i%3 != 0) and (i%5 != 0):\n ans += i\nprint(ans)', '\ns = int(input())\nans =0\n\nfor i in range(1, s+1):\n #print(i)\n if (i%3 != 0) and (i%5 != 0):\n ans += i\nprint(ans)']
['Wrong Answer', 'Accepted']
['s968838467', 's660243487']
[9140.0, 9156.0]
[156.0, 151.0]
[168, 159]
p02712
u124662294
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\nfor i in range(1,N+1):\n if i % 15 == 0:\n print("FizzBuzz")\n elif i % 3 == 0:\n print("Fizz")\n elif i % 5 == 0:\n print("Buzz")\n else:\n print(i)', 'N = int(input())\nA = 0\nfor i in range(1,N+1):\n if(i % 3 !=0) and (i % 5 !=0):\n A+=1\n \nprint(A)', 'N = int(input())\nA = 0\nfor i in range(1, N+1):\n if (i % 3 != 0) and (i % 5 != 0):\n A += i\n\nprint(A)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s434202159', 's666894662', 's252563138']
[9320.0, 9084.0, 8848.0]
[409.0, 159.0, 158.0]
[199, 111, 109]
p02712
u125337618
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([i for i in range(1, n+1) if and i%5 != 0 and i%3 != 0]))', 'n = int(input())\nprint(sum([i for i in range(1, n+1) if i%5 != 0 and i%3 != 0]))\n']
['Runtime Error', 'Accepted']
['s300009486', 's547986425']
[9024.0, 29916.0]
[20.0, 109.0]
[84, 81]
p02712
u126183307
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**2-3-3(n//3)-3((n//3)**2)-5(n//5)-5((n//5)**2)+15(n//15)+15((n//15)**2))/2)', 'n=int(input())\nprint((n+n**2-3*(n//3)*(1+(n//3))-5*(n//5)*(1+(n//5))+15*(n//15)*(1+(n//15)))//2)']
['Runtime Error', 'Accepted']
['s940416182', 's769441267']
[9176.0, 9112.0]
[20.0, 20.0]
[101, 96]
p02712
u126844573
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.
['print("Yes" if input().find("7") >= 0 else "No")\nn = int(input()) + 1\na = set(range(0, n))\nfs = set(range(0, n, 3))\nbs = set(range(0, n, 5))\nprint(sum(a - fs - bs))', 'n = int(input()) + 1\na = set(range(0, n))\nfs = set(range(0, n, 3))\nbs = set(range(0, n, 5))\nprint(sum(a - fs - bs))']
['Runtime Error', 'Accepted']
['s428066877', 's072170598']
[9120.0, 178744.0]
[20.0, 244.0]
[164, 115]
p02712
u139282395
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()\nsum = 0\nfor i in range(1,n+1):\n if i % 3 == 0 or i % 5 == 0:\n continue\n else: \n sum += i\nprint(sum)', 'n = int(input())\nsum = 0\nfor i in range(1,n+1):\n if i % 3 == 0 or i % 5 == 0:\n continue\n else: \n sum += i\nprint(sum)']
['Runtime Error', 'Accepted']
['s306966592', 's129208355']
[9100.0, 9164.0]
[24.0, 157.0]
[119, 124]
p02712
u141419468
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 = input()\nN = 0\n\nfor i in range(x):\n if i%3==0 and i%5==0:\n i = 'FizzBuzz'\n elif i%3==0:\n i = 'Fizz'\n elif i%5==0:\n i = 'Buzz'\n else:\n N = i + N\n \nprint(N)", 'x = int(input())\nN = 0\n \nfor i in range(1,x+1):\n if i%3==0 and i%5==0:\n pass\n elif i%3==0:\n pass\n elif i%5==0:\n pass\n else:\n N = i + N\n \nprint(N)']
['Runtime Error', 'Accepted']
['s933923254', 's002869056']
[9044.0, 9164.0]
[21.0, 213.0]
[204, 192]
p02712
u144072139
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\nans=0\nfor i in range(1,N+1):\n if i%3!=0 and i%5!=0:\n ans+=i\n else:\n continue\n\nprint(ans)', 'N=int(input())\n\nans=0\nfor i in range(1,N+1):\n if i%3!=0 and i%5!=0:\n ans+=i\nprint(ans)']
['Runtime Error', 'Accepted']
['s355805333', 's980902259']
[9040.0, 9152.0]
[22.0, 153.0]
[119, 96]
p02712
u145600939
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(1,n+1):\n if n%3 and n%5:\n ans += i\nprint(ans)\n', 'n = int(input())\nans = 0\nfor i in range(1,n+1):\n if (n%3 != 0) and (n%5 != 0):\n ans += i\nprint(ans)\n', '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)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s129704106', 's961291804', 's604371917']
[9152.0, 9160.0, 9128.0]
[170.0, 200.0, 155.0]
[90, 104, 104]
p02712
u152252650
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\nfor i in range(N+1):\n if(i % 3 != 0 and i % 5 != 0):\n sum += i\n \n if(i > )', 'N = int(input())\nsum = 0\nfor i in range(N+1):\n if(i % 3 != 0 and i % 5 != 0):\n sum += i\n \n', 'N = int(input())\nsum = 0\nfor i in range(N+1):\n if(i % 3 != 0 and i % 5 != 0):\n sum += i\n\nprint(sum)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s147993983', 's982321886', 's654291683']
[8912.0, 8988.0, 9064.0]
[26.0, 163.0, 155.0]
[105, 95, 103]
p02712
u153259685
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(n):\n if i%3==0 or i%5==0:\n break\n else:\n sum+=i\nprint(sum)\n', 'n=int(input())\nsum=0\nfor i in range(n+1):\n if i%3!=0 and i%5!=0:\n sum+=i\nprint(sum)\n']
['Wrong Answer', 'Accepted']
['s394111572', 's089334575']
[9160.0, 9160.0]
[25.0, 154.0]
[104, 88]
p02712
u154403054
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\nsumsum = 0\nfor i in range(N):\n \n val = i+1\n if val % 3 == 0 & val % 5 == 0:\n \n print('FizzBuzz')\n \n elif val % 3 == 0:\n \n print('Fizz')\n \n elif val % 5 == 0:\n \n print('Buzz')\n \n else:\n \n sumsum += val\n \nprint(sumsum)", 'N = int(input())\n\nsumsum = 0\nfor i in range(N):\n \n val = i+1\n if val % 3 == 0 & val % 5 == 0:\n \n pass\n \n \n elif val % 3 == 0:\n \n pass\n \n \n elif val % 5 == 0:\n \n pass\n \n \n else:\n \n sumsum += val\n \nprint(sumsum)']
['Wrong Answer', 'Accepted']
['s658410199', 's350887576']
[9196.0, 9172.0]
[378.0, 270.0]
[328, 370]
p02712
u159975271
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 s = i % 3\n t = i % 5\n if s !=0 and t != 0:\n K += i\nprint(K)\n', 'N = int(input())\nK = 0\nfor i in range(N):\n s = i % 3\n t = i % 5\n if s !=0 and t != 0:\n K += i\n\nprint(K)', 'N = int(input())\nK = 0\nfor i in range(N):\n s = (i+1) % 3\n t = (i +1) % 5\n if s !=0 and t != 0:\n K +=( i+1)\nprint(K)\n \n ']
['Runtime Error', 'Runtime Error', 'Accepted']
['s228887182', 's446239423', 's468502648']
[8952.0, 9016.0, 9192.0]
[20.0, 22.0, 280.0]
[118, 127, 141]
p02712
u163529815
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(["FizzBuzz" if n % 15 == 0 else "Fizz" if n % 3 == 0 else "Buzz" if n % 5 == 0 else n for n in range(1,N)])\n\n', 'N = int(input())\na = [0 if i % 3 == 0 or i % 5 == 0 else i for i in range(1,N+1)]\nprint(sum(a))\n\n']
['Wrong Answer', 'Accepted']
['s300899313', 's312489830']
[51932.0, 33732.0]
[240.0, 124.0]
[132, 97]
p02712
u165268875
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\nfor i in range(1, N+1) :\n if (i%3) != 0 and (i%5) != 0 :\n print(i)\n sum = sum + int(i)\nprint(sum)', 'N = int(input())\nsum = 0\nfor i in range(1, N+1) :\n if (i%3) != 0 and (i%5) != 0 :\n sum = sum + int(i)\nprint(sum)']
['Wrong Answer', 'Accepted']
['s054387000', 's586738011']
[9220.0, 9104.0]
[342.0, 194.0]
[139, 122]
p02712
u166340293
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=0\nfor i in range(1,N+1):\n print(i)\n if i%3!=0 and i%5!=0:\n s+=i\nprint(s)', 'N=int(input())\ns=0\nfor i in range(1,N+1):\n if i%3!=0 and i%5!=0:\n s+=i\nprint(s)']
['Wrong Answer', 'Accepted']
['s500683185', 's433407109']
[9740.0, 9156.0]
[450.0, 152.0]
[94, 83]
p02712
u166849422
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())\ndef S(n):\n return N/2 * (1+N//n)\nprint(S(1) - S(3) - S(5) + S(15))', 'N = int(input())\ndef S(n):\n return (N//n)/2 * (n+(N//n)*n)\nprint(int(S(1) - S(3) - S(5) + S(15)))']
['Wrong Answer', 'Accepted']
['s793646507', 's123491330']
[9164.0, 9096.0]
[24.0, 21.0]
[86, 100]
p02712
u169350228
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())\nn3 = n/3\nn5 = n/5\nn15 = n/15\ndef sum(k):\n return k*(k+1)/2\nans = sum(n)+15*sum(n15)-3*sum(n3)-5*sum(n5)\nprint(ans)\n', 'n = int(input())\nprint(n-n/3-n/5+n/15)\n', 'n = int(input())\nn3 = n//3\nn5 = n//5\nn15 = n//15\ndef sum(k):\n return k*(k+1)//2\nans = sum(n)+15*sum(n15)-3*sum(n3)-5*sum(n5)\nprint(ans)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s931579720', 's953327428', 's139389668']
[9164.0, 9144.0, 9168.0]
[20.0, 21.0, 23.0]
[135, 39, 139]
p02712
u171255092
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.
['sum([i for i in range(1, 1+int(input())) if i%3 * i%5]) ', 'print(sum([i for i in range(1, 1+int(input())) if i%3 * i%5]))']
['Wrong Answer', 'Accepted']
['s740672380', 's695929168']
[29992.0, 29920.0]
[112.0, 112.0]
[56, 62]
p02712
u174849391
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.
['number = int(input())\nresult = []\n\nfor i in range(1, number + 1):\n if number % 3 == 0 and i % 5 == 0:\n print("FizzBuzz")\n elif i % 3 ==0:\n print("Fizz")\n elif i % 5 == 0:\n print("Buzz")\n else:\n result.append(i)\n\nprint(sum(result))', 'N = int(input())\nsum = 0\n\nfor i in range(1,N+1):\n if i % 3 == 0 and i % 5 == 0:\n i = ["FizzBuzz"]\n elif i % 3 == 0:\n i = ["Fizz"]\n elif i % 5 == 0:\n i = ["Buzz"]\n # if i % 3 == 0 and i % 5 == 0:\n else:\n sum += i\nprint(sum)']
['Wrong Answer', 'Accepted']
['s728063408', 's313933244']
[30020.0, 9180.0]
[309.0, 215.0]
[270, 297]
p02712
u178465329
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 \ncnt = 0\nfor i in range(n):\n if i % 3 != 0 and i % 5 != 0:\n print(i)\n cnt += i \n\n\nprint(cnt)\n', 'n = int(input())\n \ncnt = 0\nfor i in range(1,n+1):\n #print(i)\n if i % 3 != 0 and i % 5 != 0:\n #print(i)\n cnt += i\n\nprint(cnt)']
['Wrong Answer', 'Accepted']
['s238596502', 's232208419']
[9280.0, 9116.0]
[315.0, 154.0]
[128, 144]
p02712
u178465658
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.
['# coding: utf-8\n# Your code here!\n\ndef main():\n number = int(input())\n answear = sum([result for result in range(number) if result % 3 != 0 or result % 5 != 0])\n print(answear)\nif __name__ == "__main__":\n main()\n ', '# coding: utf-8\n# Your code here!\ndef main():\n numbers = int(input())\n result = 0\n for number in range(1,numbers+1):\n if number % 3 != 0 and number % 5 != 0:\n result += number\n print(result)\n \nif __name__ == "__main__":\n main()\n \n']
['Wrong Answer', 'Accepted']
['s671493235', 's070546101']
[45908.0, 9164.0]
[117.0, 110.0]
[228, 269]
p02712
u179750651
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.
['print(sum([i for i in (list(range(1,int(input())+1)) if i % 3 != 0 and i % 5 != 0]))\n', 'n=list(range(1,input()+1))\nn=([i for i in n if i % 3 != 0 and i % 5 != 0])\nprint(sum(n))\n', 'n=list(range(1,int(input())+1))\nprint(sum([i for i in n if i%3!=0andi%5!=0]))\n', 'n=list(range(1,int(input())+1))\nprint(sum[i for i in n if i % 3 != 0 and i % 5 != 0])', 'n=list(range(1,int(input())+1))\nprint(sum([i for i in n if i%3!=0and i%5!=0]))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s302786145', 's367101726', 's432752563', 's789597167', 's219061219']
[9048.0, 9096.0, 8960.0, 9020.0, 52704.0]
[22.0, 21.0, 19.0, 22.0, 142.0]
[85, 89, 78, 85, 79]
p02712
u183158695
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())\nls = []\n\nfor i in range(N+1):\n if i % 3 != 0 or i % 5 != 0:\n ls.append(i)\n\nprint(sum(ls))\n', 'N = int(input())\nls = []\n\nfor i in range(N+1):\n if i % 3 != 0 and i % 5 != 0:\n ls.append(i)\n\nprint(sum(ls))\n']
['Wrong Answer', 'Accepted']
['s343455453', 's445571814']
[45984.0, 30020.0]
[193.0, 172.0]
[111, 112]
p02712
u189516107
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())\nN3 = N//3\nN5 = N//5\nN15 = N//15\n\nS = N * (N+1) / 2\nS3 = N3 * (N3+1) / 2 *3\nS5 = N5 * (N5+1) / 2 *5\nS15 = N15 * (N15+1) / 2 *15\n\nsum = S - (S3 + S5 -S15)\nprint(sum)', 'N = int(input())\nN3 = N//3\nN5 = N//5\nN15 = N//15\n\nS = N * (N+1) // 2\nS3 = N3 * (N3+1) // 2 *3\nS5 = N5 * (N5+1) // 2 *5\nS15 = N15 * (N15+1) // 2 *15\n\nsum = S - (S3 + S5 -S15)\nprint(sum)']
['Wrong Answer', 'Accepted']
['s058715216', 's400525861']
[9200.0, 9192.0]
[25.0, 23.0]
[180, 184]
p02712
u190691489
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(inupt())\nsum = 0\nfor i in range(1, n+1):\n if n % 3 == 0 or n % 5 == 0:\n sum += i\n \nprint(sum)', '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\n \nprint(sum)']
['Runtime Error', 'Accepted']
['s729140906', 's186777201']
[9100.0, 9112.0]
[23.0, 152.0]
[108, 114]
p02712
u197610362
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\nfor i in range(1, n+1):\n if i%3==0 or i%5==0:\n sum += i\nprint(sum)', 'n = int(input())\n\nsum = 0\nfor i in range(1, n+1):\n if not(i%3==0 or i%5==0):\n sum += i\nprint(sum)']
['Runtime Error', 'Accepted']
['s643819643', 's913790070']
[9160.0, 9168.0]
[21.0, 157.0]
[94, 107]
p02712
u197909530
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=0\nfor i in range(a):\n if a%3!=0 and a%5!=0:\n b=b+i\nprint(b)', 'a=int(input())\n\nb=0\nfor i in range(a):\n c=i+1\n if c%3!=0 and c%5!=0:\n b=b+c\n\nprint(b)']
['Wrong Answer', 'Accepted']
['s132733646', 's812163531']
[9096.0, 9164.0]
[188.0, 200.0]
[80, 90]
p02712
u198905553
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\nans = 0\n\nfor i in range(N):\n if i % 3 != 0 or i % 5 != 0:\n ans += i\n \nprint(ans)', 'N = int(input())\n\nans = 0\n\nfor i in range(N+1):\n if i % 15 == 0:\n ans += 0\n elif i % 3 == 0:\n ans += 0\n elif i % 5 == 0:\n ans += 0\n else:\n ans += i\n \nprint(ans)']
['Wrong Answer', 'Accepted']
['s028351701', 's892834376']
[9164.0, 9172.0]
[159.0, 205.0]
[105, 207]
p02712
u199290844
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 getInput():\n return [int(i) for i in input().rstrip().split(' ')]\n\nN = getInput()[0]\nsums = 0\nfor i in range(1, N+1):\n if i%3 == 0 or i%5 == 0:\n continue\n else:\n sums += i\n", 'print(sum(list(i for i in range(int(input())+1) if i%3 > 0 < i%5)))']
['Wrong Answer', 'Accepted']
['s897109256', 's186884181']
[9160.0, 29908.0]
[153.0, 114.0]
[199, 67]
p02712
u202577948
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 = eval(input())\nk=0\nfor i in range(0,N):\n if i%3!=0 or i%5!=0:\n k = k+1\nprint (k)', 'N = eval(input("Enter sonething: "))\nk=0\nfor i in range(0,N):\n if i%3!=0 and i%5!=0:\n k=k+i\nprint (k)', 'N = eval(input())\nk = 0\nfor i in range(0, N+1):\n if i % 3 != 0 and i % 5 != 0:\n k = k+i\nprint(k)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s365982921', 's757031200', 's786087268']
[9100.0, 9104.0, 9100.0]
[140.0, 153.0, 158.0]
[86, 107, 106]
p02712
u202684257
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\ns = 0\nfor i in range(N):\n x = i+1\n if x // 3 == 0 or x // 5 == 0:\n continue\n s += x\n \nprint(s)', 'N = int(input())\n\ns = 0\nfor i in range(N):\n x = i+1\n if x % 3 == 0 or x % 5 == 0:\n continue\n s += x\n \nprint(int(s))']
['Wrong Answer', 'Accepted']
['s043045652', 's188629825']
[9156.0, 9164.0]
[255.0, 190.0]
[119, 122]
p02712
u203471639
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.
['user = int(input())\ncontainer = []\nfor i in range(1, user+1):\n if (i % 3) == 0 or (i % 5) == 0:\n continue\n container.append(i)', 'user = int(input())\ncontainer = []\nfor i in range(1, user+1):\n if (i % 3) == 0 or (i % 5) == 0:\n continue\n container.append(i)\nprint(sum(container))']
['Wrong Answer', 'Accepted']
['s207091701', 's835385251']
[29920.0, 29924.0]
[166.0, 162.0]
[139, 161]
p02712
u206352909
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())\nanser=0\nfor i in range(a+1):\n print(i)\n if i%3!=0 and i%5!=0:\n anser+=i\nprint(anser)\n', 'a=int(input())\nanser=0\nfor i in range(a+1):\n print(i)\n if i%3!=0 and i%5!=0:\n anser+=i\nprint(anser)', 'a=int(input())\nanser=0\nfor i in range(a+1):\n if i%3!=0 and i%5!=0:\n anser+=i\nprint(anser)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s383960328', 's744173929', 's659771515']
[9740.0, 9800.0, 9160.0]
[432.0, 426.0, 146.0]
[105, 104, 94]
p02712
u209418188
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())\nresult = 0\n\nfor i in range(1, n + 1):\n if not i % 3 == 0 and i % 5 == 0:\n result += i\n \nprint(result)\n', 'n = int(input())\nresult = 0\n\nfor i in range(1, n + 1):\n if not i % 3 == 0 or i % 5 == 0:\n result += i\n \nprint(result)\n', 'n = int(input())\nans = 0\n\nfor i in range(1, n+1):\n if i % 3 != 0 and i % 5 != 0:\n ans += i\n \nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s642577674', 's748551833', 's878701632']
[9148.0, 9008.0, 9140.0]
[133.0, 148.0, 162.0]
[126, 125, 110]
p02712
u210828934
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())\nresult = 0\nfor i in range(n):\n if(i%3 !=0 and i % 5 !=0):\n result += i\nprint(i)\n', 'n = int(input())\nresult = 0\nfor i in range(1,n+1):\n if(i%3 !=0 and i % 5 !=0):\n result += i\nprint(result)\n']
['Wrong Answer', 'Accepted']
['s527560683', 's194336490']
[9156.0, 9192.0]
[163.0, 151.0]
[111, 116]
p02712
u211277872
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())\nf = n//3\ns_f = 3*f*(f+1)/2\nb = n//5\ns_b = 5*b*(b+1)/2\nfb = n//15\ns_fb = 15*fb*(fb+1)/2\nprint(n*(n+1)/2-s_f-s_b+s_fb)', 'n = int(input())\nf = n//3\ns_f = 3*f*(f+1)/2\nb = n//5\ns_b = 5*b*(b+1)/2\nfb = n//15\ns_fb = 15*fb*(fb+1)/2\nprint(int(n*(n+1)/2-s_f-s_b+s_fb))']
['Wrong Answer', 'Accepted']
['s145625879', 's900695796']
[9164.0, 9160.0]
[23.0, 23.0]
[133, 138]
p02712
u212328220
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\ncount = 0\nfor i in range(int(N)+1):\n if i % 15 == 0:\n print('FizzBuzz')\n elif i % 5 ==0:\n print('Buzz')\n elif i % 3 ==0:\n print('Fizz')\n else:\n count += i\nprint(count)", "N = int(input())\n\nfor i in range(int(N)+1):\n if i % 15 == 0:\n print('FizzBuzz')\n elif i % 5 ==0:\n print('Buzz')\n elif i % 3 ==0:\n print('Fizz')\n else:\n print(i)\n\n", 'N = int(input())\n\ncount = 0\nfor i in range(int(N)+1):\n if i % 15 == 0:\n continue\n elif i % 5 ==0:\n continue\n elif i % 3 ==0:\n continue\n else:\n count += i\nprint(count)\n\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s584887322', 's984787470', 's822622567']
[9136.0, 9220.0, 9160.0]
[285.0, 428.0, 200.0]
[225, 202, 208]
p02712
u218506594
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 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)\n\n']
['Runtime Error', 'Accepted']
['s607284865', 's999156947']
[9160.0, 9156.0]
[22.0, 158.0]
[97, 107]
p02712
u221940831
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\nfor i in range(1, n + 1):\n if i % 15 == 0:\n print("FizzBuzz")\n elif i % 3 == 0:\n print("Fizz")\n elif i % 5 == 0:\n print("Buzz")\n else:\n print(i)', 'n = int(input())\nnumber_list = []\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 number_list.append(i)\n\nprint(sum(number_list))']
['Wrong Answer', 'Accepted']
['s673384628', 's722747749']
[9300.0, 30016.0]
[410.0, 221.0]
[202, 225]
p02712
u222668979
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\ncnt = 0\nfor i in range(n+1):\n if (i % 3 != 0) and (i % 5 != 0):\n cnt += 1\n\nprint(cnt)\n', 'n = int(input())\n\ncnt = 0\nfor i in range(n+1):\n if (i % 3 == 0) or (i % 5 == 0):\n continue\n cnt += i\n\nprint(cnt)\n']
['Wrong Answer', 'Accepted']
['s252257073', 's480102626']
[9108.0, 9164.0]
[155.0, 150.0]
[114, 126]
p02712
u223264651
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())\nc = 0\nfor i in range(1,N+1):\n if(N%3!=0 and N%5!=0):\n c += i\nprint(c)', 'N = int(input())\nc = 0\nfor i in range(1,N+1):\n if(i%3!=0 and i%5!=0):\n c += i\nprint(c)']
['Wrong Answer', 'Accepted']
['s581891879', 's860088442']
[9156.0, 9032.0]
[192.0, 163.0]
[90, 90]
p02712
u224119985
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()\nsum1=0\nfor i in range(n):\n if not(i%3==0 or i%5==0):\n sum1=sum1+i\n else:\n sum1=sum1\nprint(sum1)', 'n=input()\nsum1=0\nfor i in range(n):\n if not(i%3==0 or i%5==0):\n sum1=sum1+i\n else:\n sum1=sum1\nprint(sum1)', 'n=int(input())\nsum1=0\nfor i in range(1,n+1):\n if not(i%3==0 or i%5==0):\n sum1=sum1+i\nprint(sum1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s553526295', 's705762088', 's965216494']
[9100.0, 9100.0, 9112.0]
[23.0, 24.0, 152.0]
[125, 125, 106]
p02712
u235066013
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())\nN=0\nfor i in range(1,N+1):\n if not i%3==0 and not i%5==0:\n N+=i\n\nprint(N)', 'n=int(input())\nN=0\nfor i in range(1,n+1):\n if not i%3==0 and not i%5==0:\n N+=i\n\nprint(N)']
['Wrong Answer', 'Accepted']
['s916143424', 's046934952']
[9068.0, 9120.0]
[23.0, 156.0]
[92, 92]
p02712
u241544828
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())\nA=N//3\nB=N//5\nAanB=N//15\nSsum=(1+N)*N*(1/2)\nAsum=(1+A)*A*(1/2)*3\nBsum=(1+B)*B*(1/2)*5\nAanBsum=(1+AanB)*AanB*(1/2)*15\nprint(Ssum-Asum-Bsum-AanBsum)', 'N = int(input())\nA=N//3\nB=N//5\nAanB=N//15\nSsum=(1+N)*N*(1/2)\nAsum=(1+A)*A*(1/2)*3\nBsum=(1+B)*B*(1/2)*5\nAanBsum=(1+AanB)*AanB*(1/2)*15\nprint(Ssum-Asum-Bsum+AanBsum)', 'N=int(input())\n\nA=N//3\nB=N//5\nAanB=N//15\nSsum=(1+N)*N*(1/2)\nAsum=(1+A)*A*(1/2)*3\nBsum=(1+B)*B*(1/2)*5\nAanBsum=(1+AanB)*AanB*(1/2)*15\nprint(int(Ssum-Asum-Bsum+AanBsum))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s144786612', 's294566850', 's613921708']
[9188.0, 9128.0, 9144.0]
[21.0, 21.0, 22.0]
[163, 163, 167]
p02712
u242890210
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()\ns = 0\nfor i in range (1, N + 1):\n if i % 3 == 0 and i % 5 == 0:\n break\n elif i % 3 == 0:\n break\n elif i % 5 == 0:\n break\n else:\n s += i', 'N = int(input())\ns = 0\nfor i in range (1, N + 1):\n if not (i % 3 == 0 or i % 5 == 0 or i % 15 == 0):\n s += i\nprint(s)']
['Runtime Error', 'Accepted']
['s554519909', 's939588634']
[8912.0, 9164.0]
[21.0, 197.0]
[187, 127]
p02712
u246492017
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.
['input=int(input())\n\noutput=0\na=0\nfor i in range(input+1):\n if i%3==0:\n a=1\n elif i%5==0:\n a=2\n else:\n output=output+i\n print(i)\nprint(output)', 'input=int(input())\n\noutput=0\na=0\nfor i in range(input+1):\n if i%3==0:\n a=1\n elif i%5==0:\n a=2\n else:\n output=output+i\nprint(output)']
['Wrong Answer', 'Accepted']
['s750360375', 's896718307']
[9292.0, 9176.0]
[337.0, 168.0]
[178, 161]
p02712
u248590811
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\nn = input()\nN = int(n)\n\ns = np.sum([i for i in range(N+1) if (i%3==0)and(i%5==0)])\nprint(s)', 'import numpy as np\n \nn = input()\nN = int(n)\n \ns = np.sum([i for i in range(N+1) if (i%3!=0)and(i%5!=0)])\nprint(s)']
['Wrong Answer', 'Accepted']
['s630526754', 's601020733']
[29736.0, 52224.0]
[175.0, 227.0]
[111, 113]
p02712
u252964975
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(1,N+1):\n if i%3!=0 or i%5!=0:\n ans = ans + i\nprint(ans)', 'N=int(input())\nans = 0\nfor i in range(N):\n if i%3!=0 or i%5!=0:\n ans = 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 = ans + i\nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s224609729', 's418848357', 's549112545']
[9160.0, 9160.0, 9112.0]
[163.0, 166.0, 153.0]
[97, 93, 98]
p02712
u255595446
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.
['num = int(input())\nif num % 15 == 0 :\n print("FizzBuzz")\nelif num % 3 == 0:\n print("Fizz")\nelif num % 5 == 0:\n print("Buzz")\nelse:\n print(num)', 'num = int(input())\n\ndiv = num // 15\n\ncount = 60 * div ** 2\n\nif num % 15 != 0:\n for i in range(div*15+1,num+1):\n if i%3!=0 and i%5!=0:\n count += i\nprint(count)']
['Wrong Answer', 'Accepted']
['s535598224', 's341944655']
[9168.0, 9172.0]
[20.0, 21.0]
[154, 180]
p02712
u260068288
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())\no=list(i for i in range(1,n+1))\nsum=0\nl=[]\nfor j in o:\n if j % 5 or 3 == 0:\n o.remove(j)\nfor k in o:\n sum+=k\nprint(sum)', 'n=int(input())\no=list(i for i in range(1,n+1))\nsum=0\nl=[]\nfor j in o:\n if j % 5 == 0 or j % 3 == 0:\n o.remove(j)\nfor k in o:\n sum+=k\nprint(sum)\nprint(o)', 'n=int(input())\no=list(i for i in range(1,n+1))\nsum=0\nl=[]\nfor j in o:\n if j % 5 == 0 or j % 3 == 0:\n o.remove(j)\nfor k in o:\n sum+=k\nprint(sum)', 'n=int(input())\nl=[]\no=list(i for i in range(1,n+1))\nfor j in o:\n if j%5 ==0 or j%3 ==0:\n l.append(j)\nprint(sum(o)-sum(l))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s297303119', 's706820426', 's744486314', 's900637792']
[48584.0, 48584.0, 48580.0, 52228.0]
[2207.0, 2207.0, 2207.0, 238.0]
[147, 165, 156, 131]
p02712
u261082314
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())\nfizzbuzz = 0\nfor i in range(1,a+1):\n if (i%3) == 0:\n fizzbuzz += i\n elif (i%5) == 0:\n fizzbuzz += i\nall_ = (1+a)*a/2\nprint(all_-fizzbuzz)', 'a=int(input())\nfizzbuzz = 0\nfor i in range(1,a+1):\n if (i%3) == 0:\n fizzbuzz += i\n elif (i%5) == 0:\n fizzbuzz += i\nall_ = (1+a)*a/2\nprint(int(all_-fizzbuzz))']
['Wrong Answer', 'Accepted']
['s560974728', 's142950853']
[9176.0, 9176.0]
[163.0, 147.0]
[164, 169]
p02712
u262481526
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.
['U = int(input())\nk = 0\nl = 0\nm = 0\nfor i in range(1, U + 1) :\n if i / 3 == 0 and i/5 == 0:\n k += i\n break\n elif i / 3 == 0:\n l += i\n break\n elif i / 5 == 0:\n m += i\n break\n else:\n k += 0\nprint(int(U) - int(l + m - k))\n', 'N = int(input())\ntotal = 0\nfor i in range(1, N + 1):\n if i % 3 ==0 and i % 5:\n continue\n elif i % 5 == 0:\n continue\n elif i % 3 == 0:\n continue\n else:\n total += i\n \nprint(total)']
['Wrong Answer', 'Accepted']
['s936267022', 's604609719']
[9180.0, 9072.0]
[257.0, 192.0]
[243, 196]
p02712
u263129179
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 sys\na = sys.argv[1]\nt= sum([i for i in range(int(a)+1) if i %5 != 0 and i %3 != 0])\nprint(t)', '\na = input()\nt= sum([i for i in range(int(a)+1) if i %5 != 0 and i %3 != 0])\nprint(t)']
['Runtime Error', 'Accepted']
['s607550317', 's138110709']
[9092.0, 30052.0]
[22.0, 115.0]
[99, 85]
p02712
u263352518
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()\nN = int(N)\n \nallsum = (N+1)*int(N/2)\n \nfum = int(N / 3)\nbsum = int(N / 5)\nfbsum = int(N / 15)\n \nprint(allsum-fsum*3-bsum*5+fbsum*15)', 'N = input()\nN = int(N)\n\nallsum = int( (N + 1) * N / 2 )\n#print(allsum)\n\nf = int(N / 3)\nb = int(N / 5)\nfb = int(N / 15)\n\n\n#print(f)\n#print(b)\n#print(fb)\n\nfsum = int((f+1)*f/2)*3\nbsum = int((b+1)*b/2)*5\nfbsum = int((fb+1)*fb/2)*15\n\nprint(allsum - fsum - bsum + fbsum)']
['Runtime Error', 'Accepted']
['s349584751', 's326961215']
[9112.0, 9136.0]
[19.0, 21.0]
[144, 265]
p02712
u266143155
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())\na = []\nfor i in range(n):\n if (i+1) % 15 == 0:\n a.insert(i+1,"FizzBuzz") \n elif (i+1) % 3 == 0:\n a.insert(i+1,"Fizz") \n elif (i+1)% 5 == 0:\n a.insert(i+1,"Buzz") \n else:\n a.append(i+1)\n \nb = [num for num in a if isinstance(num, int)]\nsum(b)', 'n = int(input())\na = []\nfor i in range(n):\n if (i+1) % 15 == 0:\n a.insert(i+1,"FizzBuzz") \n elif (i+1) % 3 == 0:\n a.insert(i+1,"Fizz") \n elif (i+1)% 5 == 0:\n a.insert(i+1,"Buzz") \n else:\n a.append(i+1)\n \nb = [num for num in a if isinstance(num, int)]\nprint(sum(b))']
['Wrong Answer', 'Accepted']
['s224515956', 's310721314']
[37924.0, 37940.0]
[385.0, 369.0]
[304, 311]
p02712
u266294380
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 = 0\nfor i in range(N + 1):\n n = i + 1\n if n % 3 != 0 and n % 5 != 0:\n s += n\nprint(s)\n', 'N = int(input())\ns = 0\nfor i in range(N):\n n = i + 1\n if n % 3 != 0 and n % 5 != 0:\n s += n\nprint(s)\n']
['Wrong Answer', 'Accepted']
['s724658341', 's023800171']
[9032.0, 9164.0]
[210.0, 211.0]
[118, 114]
p02712
u266675845
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())\na = list()\nfor i in range(1,N):\n if i %3 != 0 and i%5 != 0:\n a.append(i)\n else:\n continue\n#print(a)\nsum(a)', 'N = int(input())\na = list()\nfor i in range(1,N):\n if i %3 != 0 and i%5 != 0:\n a.append(i)\n else:\n continue\n#print(a)\nsum(a)', 'N = int(input())\na = list()\nfor i in range(1,N+1):\n if i %3 != 0 and i%5 != 0:\n a.append(i)\n else:\n continue\n#print(a)\nprint(sum(a))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s028697123', 's302769495', 's563039274']
[30124.0, 29896.0, 30108.0]
[170.0, 169.0, 171.0]
[143, 143, 152]
p02712
u268181283
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())\nnum3 = N//3\nsum3 = 3*num3*(num3+1)//2\nnum5 = N//5\nsum5 = 5*num5*(num5+1)//2\nnum15 = N//15\nsum15 = 15*num15*(num15+1)//215\n\n_sum = N*(N+1)//2\n\nprint(_sum-sum3-sum5+sum15)', 'N = int(input())\nnum3 = N//3\nsum3 = num3*(num3+1)//2\nnum5 = N//5\nsum5 = num5*(num5+1)//2\nnum15 = N//15\nsum15 = num15*(num15+1)//2\n_sum = N*(N+1)//2\n\nprint(_sum-sum3-sum15+sum15)', 'N = int(input())\nnum3 = N//3\nsum3 = 3*num3*(num3+1)//2\nnum5 = N//5\nsum5 = 5*num5*(num5+1)//2\nnum15 = N//15\nsum15 = 15*num15*(num15+1)//2\n\n_sum = N*(N+1)//2\n\nprint(_sum-sum3-sum5+sum15)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s017834151', 's093436469', 's479887211']
[9184.0, 9180.0, 9180.0]
[22.0, 21.0, 19.0]
[187, 178, 185]
p02712
u268504600
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(1, N+1):\n if i%3 == 0 or i%5 == 0:\n pass\n else:\n ans += i\nprint(i)', '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']
['s510186414', 's101418397']
[9156.0, 9164.0]
[152.0, 155.0]
[126, 103]
p02712
u273038590
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=1/2*N*(N+1)\nFB=N//15\nF=N//3\nB=N//5\n\nsum_FB=15*1/2*FB*(FB+1)\nsum_F=3/2*F*(F+1)\nsum_B=5/2*B*(B+1)\nprint(S-sum_B-sum_F+sum_FB)', 'N=int(input())\nS=1/2*N*(N+1)\nFB=N//15\nF=N//3\nB=N//5\n\nsum_FB=15*1/2*FB*(FB+1)\nsum_F=3/2*F*(F+1)\nsum_B=5/2*B*(B+1)\nprint(int(S-sum_B-sum_F+sum_FB))']
['Wrong Answer', 'Accepted']
['s825787449', 's445315991']
[9188.0, 9180.0]
[19.0, 22.0]
[140, 145]
p02712
u273186459
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())\nresult=0\na\nfor i in range(n): \n if i % 3 == 0 and i % 5 == 0:\n a=result \n elif i % 3 == 0:\n a=result\n elif i % 5 == 0:\n a=result\n else:\n result=result+i\n \nprint(result)\n ', 'n=int(input())\nresult=0\nfor i in range(n+1): \n if i % 3 == 0 and i % 5 == 0:\n result=result \n elif i % 3 == 0:\n result=result\n elif i % 5 == 0:\n result=result\n else:\n result=result+i\n \nprint(result)\n ']
['Runtime Error', 'Accepted']
['s618222065', 's182735342']
[9164.0, 9164.0]
[22.0, 206.0]
[238, 253]
p02712
u273345915
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 sum(n):\n return n*(n+1)/2\nN=int(input())\nprint(sum(N)-sum(N/3)*3-sum(N/5)*5+sum(N/15)*15)', 'def sum(n):\n return n*(n+1)//2\nN=int(input())\nprint((sum(N)-sum(N//3)*3-sum(N//5)*5+sum(N//15)*15))']
['Wrong Answer', 'Accepted']
['s583182400', 's443246569']
[9160.0, 9144.0]
[20.0, 21.0]
[96, 102]
p02712
u274080981
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(intput())\ncnt=0\nfor i in range(n+1):\n if i%3!=0:\n if i%5!=0:\n cnt=cnt+i\nprint(cnt)', 'n=int(input())\ncnt=0\nfor i in range(n+1):\n if i%3!=0:\n if i%5!=0:\n cnt=cnt+i\nprint(cnt)']
['Runtime Error', 'Accepted']
['s715747468', 's783467013']
[9092.0, 9164.0]
[19.0, 152.0]
[97, 96]
p02712
u275030199
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 = n//3\nl = n//5\nm = n//15\nprint(n*(n+1)/2-5*l*(l+1)/2-3*k*(k+1)/2+15*m*(m+1)/2)', 'n = int(input())\nk = n//3\nl = n//5\nm = n//15\nprint(int(n*(n+1)/2-5*l*(l+1)/2-3*k*(k+1)/2+15*m*(m+1)/2))']
['Wrong Answer', 'Accepted']
['s108860571', 's714652103']
[9172.0, 9200.0]
[21.0, 22.0]
[98, 103]
p02712
u276686572
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\nprint(int(n * (n+1)/2 - n//3 - n//5 + n//15))', 'n = int(input())\n\nsumall = int(n * (n+1)/2)\nsum3 = int(n//3 * (n//3 + 1) * 3/2)\nsum5 = int(n//5 * (n//5 + 1) * 5/2)\nsum15 = int(n//15 * (n//15 + 1) * 15/2)\n\nprint(sumall - sum3 - sum5 + sum15)']
['Wrong Answer', 'Accepted']
['s747574891', 's244052442']
[9148.0, 9176.0]
[30.0, 28.0]
[63, 192]
p02712
u277641173
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)\ncount = 0\nfor i in range(0,n):\n if (i+1)//3==0:\n count = count\n elif (i+1)//5==0:\n count = count\n else:\n count = count + i + 1\n\nprint(count)\n', 'n = int(input)\ncount = 0\nfor i in range(0,n):\n if (i+1)%3==0:\n count = count\n elif (i+1)%5==0:\n count = count\n else:\n count = count + i + 1\n\nprint(count)\n', "n = int(input())\ncount = 0\ntenwari = n%10\nbaiwari = n%100\nichi = tenwari\njyu = (baiwari-tenwari)//10\nhyaku = (n-jyu*10-ichi)//100\n\nif ichi != 7:\n count = count + 1\nif jyu != 7:\n count = count + 1\nif hyaku != 7:\n count = count + 1\n \nif count == 3:\n print('No')\nelse:\n print('Yes')\n", 'n = int(input())\ncount = 0\nfor i in range(0,n):\n if (i+1)%3==0:\n count = count\n elif (i+1)%5==0:\n count = count\n else:\n count = count + i + 1\n\nprint(count)\n']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s362332957', 's746175303', 's906352704', 's303004432']
[9100.0, 9096.0, 9188.0, 9164.0]
[22.0, 18.0, 21.0, 218.0]
[168, 166, 286, 168]
p02712
u280552586
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.
['from math import gcd\n\nk = int(input())\n\ncnt = 0\nfor i in range(1, k+1):\n for j in range(1, k+1):\n for k in range(1, k+1):\n cnt += gcd(gcd(i, j), k)\n\nprint(cnt)\n', 'n = int(input())\n\ncnt = 0\nfor i in range(1, n+1):\n if i % 15 != 0 and i % 3 != 0 and i % 5 != 0:\n cnt += i\n\nprint(cnt)\n']
['Wrong Answer', 'Accepted']
['s117937204', 's645305648']
[8996.0, 9160.0]
[2205.0, 190.0]
[181, 129]
p02712
u281796054
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())\nU=(1/2)*n*(n+1)\nU3=(3/2)*(n//3)*(n//3+1)\nU5=(5/2)*(n//5)*(n//5+1)\nU15=(15/2)*(n//15)*(n//15+1)\nans=U-U3-U5+U15\nprint(ans)\n', 'n=int(input())\nU=(1/2)*n*(n+1)\nU3=(3/2)*(n//3)*(n//3+1)\nU5=(5/2)*(n//5)*(n//5+1)\nU15=(15/2)*(n//15)*(n//15+1)\nans=U-U3-U5+U15\nprint(int(ans))\n']
['Wrong Answer', 'Accepted']
['s518949591', 's010452064']
[9180.0, 9092.0]
[25.0, 22.0]
[137, 142]