ZhenlongDai/ACPR huggingface dataset:
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
b = 0
N = int(input())
for i in range(N,N+1):
    if i % 3 == 0 and i % 5 == 0:
        pass
    elif i % 5 == 0:
        pass
    else:
        b = b + 1
    
print(b)


Failing test case input:
1111010

Expected output:
329158562362


Actual output:
0


Fixed submission (verdict: Accepted):
total = []

N = int(input())

for i in range(1, N + 1):
    if i % 3 == 0 and i % 5 == 0:
        pass
    elif i % 3 == 0:
        pass
    elif i % 5 == 0:
        pass
    else:
        total.append(i)

print(sum(total))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
total=0
for i in range(n):
  if i%3!=0 and i%5!=0:
    total=total+i
print(total)    

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n=int(input())
total=0
for i in range(n+1):
  if i%3!=0 and i%5!=0:
    total=total+i
print(total)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = (int(input()) + 1)
ans = 0

for i in range(1, a):
    if i % 15 == 0:
        ans += i
    elif i % 3 == 0:
        ans += i
    elif i % 5 == 0:
        ans += i

print(ans)

Failing test case input:
1111110

Expected output:
329217448560


Actual output:
288065823045


Fixed submission (verdict: Accepted):
a = (int(input()) + 1)
ans = 0

for i in range(1, a):
    if i % 15 == 0:
        pass
    elif i % 3 == 0:
        pass
    elif i % 5 == 0:
        pass
    else:
        ans += i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
ans = 0
for i in range(N):
  if i % 3 != 0 and i % 5 != 0:
    ans += i
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())
ans = 0
for i in range(N):
  j = i + 1
  if j % 3 != 0 and j % 5 != 0:
    ans += j
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
num = int(input())

sum_i = 0
for i in range(1, num):
  if i % 3 != 0 and i % 5 != 0:
    sum_i += i
print(sum_i)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
num = int(input())

sum_i = 0
for i in range(1, num+1):
  if i % 3 != 0 and i % 5 != 0:
    sum_i += i
print(sum_i)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
print(sum([i for i in range(n) if not (i%3==0 or i%5==0)]))


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n=int(input())
print(sum([i for i in range(1,n+1) if not (i%3==0 or i%5==0)]))
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
ans = 0
for i in range(N):
  if i % 15 != 0 and i % 5 != 0 and i % 3 != 0:
    ans += i
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N=int(input())
ans = 0
for i in range(N+1):
  if i % 15 != 0 and i % 5 != 0 and i % 3 != 0:
    ans += i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
b=[]
for i in range(a):
    if i%3==0 or i%5==0:
        continue
    else:
        b.append(i)
print(sum(b))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
a=int(input())
b=[]
for i in range(a+1):
    if i%3==0 or i%5==0:
        continue
    else:
        b.append(i)
print(sum(b))

Problem: p02712
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())
ans = 0
for i in range(N):
    if i%15 != 0 and i%3 != 0 and i%5 != 0:
        
        ans += i
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())
ans = 0
for i in range(N+1):
    if i%15 != 0 and i%3 != 0 and i%5 != 0:
        ans += i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
t = 0
for n in range(n):
    if (n % 3) != 0:
        if (n % 5) != 0:
            t += n
print(t)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
t = 0
for n in range(1, n + 1):
    if (n % 3) != 0:
        if (n % 5) != 0:
            t += n
print(t)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


n=int(input())
li=[]
for i in range(1,n+1):
    li.append(i)
sum=0
for j in li:
    if j%15==0:
        sum+=j
    elif j%3==0:
        sum+=j
    elif j%5==0:
        sum+=j
print(sum)

Failing test case input:
1101100

Expected output:
323311955632


Actual output:
282899199918


Fixed submission (verdict: Accepted):
n=int(input())
li=[]
for i in range(1,n+1):
    li.append(i)
sum=0
for j in li:
    if j%15==0:
        sum+=j
    elif j%3==0:
        sum+=j
    elif j%5==0:
        sum+=j
print(int(((n+1)*n/2) - sum))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
s=0
for i in range(n):
    if i%3==0 and i%5==0:
        s=s
    elif i%3==0:
        s=s
    elif i%5==0:
        s=s
    else:
        s=s+i
print(s)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n=int(input())
s=0
for i in range(n+1):
    if i%3==0 and i%5==0:
        s=s
    elif i%3==0:
        s=s
    elif i%5==0:
        s=s
    else:
        s=s+i
print(s)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

b=0
n=input()

for i in range(1, int(n)):

    if i%3==0 and i%5==0:
      a="FizzBuzz"
    elif i%3==0:
        a="Fizz"
    elif i%5==0:
      a="Buzz"
    else:
      b=b+i

print(b)




		

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):

b=0
n=input()

for i in range(1, int(n)+1):

    if i%3==0 and i%5==0:
      a="FizzBuzz"
    elif i%3==0:
        a="Fizz"
    elif i%5==0:
      a="Buzz"
    else:
      b=b+i

print(b)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
res = 0

for i in range(n):
    if i % 3 != 0 and i % 5 != 0:
        res = res + i

print(res)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
res = 0

for i in range(n + 1):
    if i % 3 != 0 and i % 5 != 0:
        res = res + i

print(res)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
for i in range(n):
    if (i%3 == 0 )or(i%5 == 0):
        ans = ans + 0
    else:
        ans = ans +i

print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0

for i in range(n+1):
    if i%3 == 0 or i%5 == 0:
        ans = ans + 0
    else:
        ans = ans +i
        

print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
x=0
for i in range(1,1+N):
  if (N % 3) != 0 and (N % 5) !=0:
    x = x + i
print(x)


Failing test case input:
1011010

Expected output:
272570655022


Actual output:
0


Fixed submission (verdict: Accepted):
N = int(input())
x = 0
for i in range(1, N+1):
    if (i % 3) != 0 and (i % 5) != 0:
        x = x+i
print(x)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
ans = 0
for i in range(N):
    if i % 3 == 0 or i % 5 == 0:
        continue
    ans += i
print(ans)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())
ans = 0
for i in range(1, N+1):
    if i % 3 == 0 or i % 5 == 0:
        continue
    ans += i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())

print(sum(i for i in range(1,N+1) if i%3==0 or  i%5==0))

Failing test case input:
1111110

Expected output:
329217448560


Actual output:
288065823045


Fixed submission (verdict: Accepted):
N=int(input())

print(sum(i for i in range(1,N+1) if i%3 and  i%5))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

num = 0
for i in range(1, N):
   if i % 3 != 0 and i % 5 != 0:
       num += i

print(num)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())

num = 0
for i in range(1, N+1):
   if i % 3 != 0 and i % 5 != 0:
       num += i

print(num)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
for i in range(n):
    if i % 3 != 0 and i % 5 != 0:
       ans += i
print(ans)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0
for i in range(n+1):
    if i % 3 != 0 and i % 5 != 0:
       ans += i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
sum = 0
for i in range(n):
  if i%3!=0 and i%5!=0:
    sum += i
print(sum)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
sum = 0
for i in range(1,n+1):
  if i%3!=0 and i%5!=0:
    sum += i
print(sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
total = []

N = int(input())

for i in range(1,N):
    if i % 3 == 0 and i % 5 == 0:
        pass
    elif i % 3 == 0 :
        pass
    elif i % 5 == 0 :
        pass
    else:
        total.append(i)
print(sum(total))


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
total = []

N = int(input())

for i in range(1, N + 1):
    if i % 3 == 0 and i % 5 == 0:
        pass
    elif i % 3 == 0:
        pass
    elif i % 5 == 0:
        pass
    else:
        total.append(i)

print(sum(total))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):



n=int(input())

print(sum(x for x in range(1,n) if x%3!=0 and x%5!=0))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):



n=int(input())

print(sum(x for x in range(1,n+1) if x%3!=0 and x%5!=0))

Problem: p02712
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())

result = 0

for i in range(N):
    if i % 3 == 0:
        continue
    elif i % 5 == 0:
        continue
    else:
        result += i
    
print(result)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())

result = 0
for i in range(1,N+1):
    if i % 3 == 0:
        continue
    elif i % 5 == 0:
        continue
    else:
        result += i
    
print(result)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())

count=0
for i in range(N):
    if i %15==0:
        i="FizzBuzz"
    elif i%3==0:
        i="Fizz"
    elif i%5==0:
        i="Buzz"
    else:
        count+=i
print(count)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N=int(input())

count=0
for i in range(N+1):
    if i %15==0:
        i="FizzBuzz"
    elif i%3==0:
        i="Fizz"
    elif i%5==0:
        i="Buzz"
    else:
        count+=i
print(count)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
ans = 0
for i in range(1, int(input())):
    if i % 3 != 0 and i % 5 != 0:
        ans += i
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
ans = 0
for i in range(1, int(input()) + 1):
    if i % 3 != 0 and i % 5 != 0:
        ans += i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


N = int(input())

total = 0

for i in range(1,N):
    if i % 3 == 0:
        continue
    if i % 5 == 0:
        continue
    else:
        total = total + i
print(total)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):


N = int(input())

total = 0

for i in range(1, N+1):
    if i % 3 == 0 or i % 5 == 0:
        continue
    else:
        total += i
print(total)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

import sys

n = int(input())
s = 0
for i in range(1, n):
    if i % 3 != 0 and i % 5 != 0:
        s += i
print(s)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):

import sys

n = int(input())
s = 0
for i in range(1, n + 1):
    if i % 3 != 0 and i % 5 != 0:
        s += i
print(s)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

other = []
n = int(input())
for i in range(n):
    if (i % 3 != 0) & (i % 5 != 0):
        other.append(i)

b = sum(other)

print(b)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
fizz = []
buzz = []
fizzbuzz = []
other = []
n = int(input())
for i in range(n):
    temp = i+1
    if (temp % 3 != 0) & (temp % 5 != 0):
        other.append(temp)

b = sum(other)

print(b)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

fizzbuzz = [i for i in range(1, n) if not(i % 5 == 0 or i % 3 == 0)]
print(sum(fizzbuzz))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())

fizzbuzz = [i for i in range(1, n+1) if not(i % 5 == 0 or i % 3 == 0)]
print(sum(fizzbuzz))

Problem: p02712
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())

sum_num = 0
for i in range(1, n):
    if i % 3 != 0 and i % 5 != 0:
        sum_num += i
print(sum_num)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())

sum_num = 0
for i in range(1, n + 1):
    if i % 3 != 0 and i % 5 != 0:
        sum_num += i
print(sum_num)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    n = int(input())
    ans = 0
    for i in range(n):
        if((i%3!=0)and(i%5!=0)):
            ans = ans + i
    print(ans)
main()

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
def main():
    n = int(input())
    ans = 0
    for i in range(1,n+1):
        if((i%3!=0)and(i%5!=0)):
            ans = ans + i
    print(ans)
main()

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
input = sys.stdin.readline

N = int(input())

count = 0

for i in range(N):
    if i % 3 == 0:
        continue
    if i % 5 == 0:
        continue
    count += i

print(count)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline

N = int(input())

count = 0

for i in range(1, N+1):
    if i % 3 == 0:
        continue
    if i % 5 == 0:
        continue
    count += i

print(count)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

sum = 0
for i in range(N):
  if i % 3 == 0 and i % 5 == 0:
    continue
  elif i % 3 == 0:
    continue
  elif i % 5 == 0:
    continue
  else:
    sum += i

print(i)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
1110000


Fixed submission (verdict: Accepted):
N = int(input())

N += 1
total = 0

for i in range(N):
    if i % 3 == 0 and i % 5 == 0:
        continue
    elif i % 3 == 0:
        continue
    elif i % 5 == 0:
        continue
    else:
        total += i

print(total)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def solve(string):
    return str(sum(i for i in range(int(string) + 1) if i % 3 > 1 and i % 5 > 1))


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
123210111000


Fixed submission (verdict: Accepted):
def solve(string):
    return str(sum(i for i in range(int(string) + 1) if i % 3 > 0 and i % 5 > 0))


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):




def main():
    n = int(input().strip())

    sum = 0
    for i in range(n):
        sum += i if i % 3 != 0 and i % 5 != 0 else 0
    print(sum)


if __name__ == '__main__':
    main()


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):




def main():
    n = int(input().strip())

    sum = 0
    for i in range(1, n + 1):
        sum += i if i % 3 != 0 and i % 5 != 0 else 0
    print(sum)


if __name__ == '__main__':
    main()
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

N = int(input())
ans = 0

for i in range(1, N):
	if(i % 3 != 0 and i % 5 != 0):
		ans += i

print(ans)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):

N = int(input())
ans = 0

for i in range(1, N+ 1):
	if i % 3 != 0 and i % 5 != 0:
		ans += i

print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

sum = 0
for i in range(n):
  if not (i % 3 == 0 or i % 5 ==0):
    sum += i
print(sum)
    

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())

sum = 0
for i in range(1,n+1):
  if not (i % 3 == 0 or i % 5 ==0):
    sum += i
print(sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
cnt=0
for i in range(n):
    if(i%3==0 or i%5==0):
        continue
    else:
        cnt+=i
print(cnt)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
cnt=0
for i in range(1,n+1):
    if(i%3==0 or i%5==0):
        continue
    else:
        cnt+=i

print(cnt)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def f(N):
  rt = 0
  for i in range(N):
    if i % 3 != 0 and i % 5 != 0:
      rt += i
  return rt

N = int(input())
print(f(N))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
def f(N):
  rt = 0
  for i in range(N+1):
    if i % 3 != 0 and i % 5 != 0:
      rt += i
  return rt

N = int(input())
print(f(N))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
sum = 0
for i in range(N):
  if i % 3 == 0 and i % 5 == 0:
    pass
  elif i % 3 == 0 or i % 5 == 0:
    pass
  else:
    sum += i
print(sum)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N=int(input())+1
sum = 0
for i in range(N):
  if i % 3 == 0 or i % 5 == 0:
    pass
  else:
    sum += i
print(sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math

x=int(input())
s=math.floor(x/3)
f=math.floor(x/5)
sf=math.floor(x/15)

s_sum=3*s*(s+1)/2
f_sum=5*f*(f+1)/2
sf_sum=15*sf*(sf+1)/2

sum=s_sum+f_sum-sf_sum
print(math.floor(sum))


Failing test case input:
1110010

Expected output:
328565550022


Actual output:
287496105033


Fixed submission (verdict: Accepted):
import math

x=int(input())
s=math.floor(x/3)
f=math.floor(x/5)
sf=math.floor(x/15)
sum=math.floor(x*(x+1)/2)

s_sum=math.floor(3*s*(s+1)/2)
f_sum=math.floor(5*f*(f+1)/2)
sf_sum=math.floor(15*sf*(sf+1)/2)

fl=sum-(s_sum+f_sum-sf_sum)
print(math.floor(fl))
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
ans = 0
for i in range(N):
  if i+1 % 3 != 0 and i+1 % 5 != 0:
    ans += i+1
print(ans)

Failing test case input:
1010000

Expected output:
272027003332


Actual output:
510050505000


Fixed submission (verdict: Accepted):
N = int(input())
ans = 0
for i in range(N):
  j = i + 1
  if j % 3 != 0 and j % 5 != 0:
    ans += j
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
sum_n=0
for i in range(n):
    if i%3==0:
        pass
    elif i%5==0:
        pass
    else:
        sum_n+=i
print(sum_n)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n=int(input())
sum_n=0
for i in range(n+1):
    if i%3==0:
        pass
    elif i%5==0:
        pass
    else:
        sum_n+=i
print(sum_n)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
sum = 0
for i in range(n):
    if i%5!=0 and i%3!=0:
        sum = sum + i
print(sum)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
sum = 0
for i in range(1,n+1):
    if i%5!=0 and i%3!=0:
        sum = sum + i
print(sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
ans=0
for i in range(n):
    if i%3==0 or i%5==0:
        i=0
    ans +=i
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n=int(input())
ans=0
for i in range(n+1):
    if i%3==0 or i%5==0:
        i=0
    ans +=i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=int(input())
list=[]
h=0
for i in range(1,s):
    if i%3!=0 and i%5!=0:
        list.append(i)
for j in list:
    h=h+j
print(h)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
s=int(input())
list1=[]
h=0
for i in range(1,s+1):
    if i%3!=0 and i%5!=0:
        list1.append(i)
for j in list1:
    h=h+j
print(h)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
ans=0
i = 1
while i < n:
    if i % 15 == 0:
      i += 1
    elif i % 3 == 0:
      i += 1
    elif i % 5 == 0:
      i += 1
    else:
        ans += i
        i += 1
    
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n=int(input())
ans=0
i = 1
while i <= n:
    if i % 15 == 0:
      i += 1
    elif i % 3 == 0:
      i += 1
    elif i % 5 == 0:
      i += 1
    else:
      ans += i
      i += 1
    
print(ans)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

res = 0

for i in range(N):
    if i%3 and i%5:
        res += i

print(res)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())

res = 0

for i in range(N+1):
    if i%3 and i%5:
        res += i

print(res)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
s=0
for i in range(1, n+1):
	if i%3 != 0 and i%5 != 0:
		s+=i
print(i)

Failing test case input:
1110000

Expected output:
328560000000


Actual output:
1110000


Fixed submission (verdict: Accepted):
n = int(input())
s=0
for i in range(1, n+1):
	if i%3 != 0 and i%5 != 0:
		s+=i
print(s)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

ans = 0
for i in range(n):
    if i % 3 != 0 and i % 5 != 0:
        ans += i

print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
 
ans = 0
for i in range(n+1):
    if i % 3 != 0 and i % 5 != 0:
        ans += i
 
print(ans)

Problem: p02712
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())

ans = 0

for i in range(N):
  if not(i % 3 == 0 or i % 5 == 0):
    ans += i
    
print(i)

Failing test case input:
1111110

Expected output:
329217448560


Actual output:
1111109


Fixed submission (verdict: Accepted):
N = int(input())

ans = 0

for i in range(1,N+1):
  if not(i % 3 == 0 or i % 5 == 0):
    ans += i
    
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def FizzBuzzSum():
  N = int(input())
  sum=0
  for i in range(N):
    if i%3!=0 and i%5!=0:
      sum=sum+i
  return sum
print(FizzBuzzSum())

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
def FizzBuzzSum():
  N = int(input())
  sum=0
  for i in range(N+1):
    if i%3!=0 and i%5!=0:
      sum=sum+i
  return sum
print(FizzBuzzSum())

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
i = int(input())
fizz=[]
for x in range(i):
  if x % 3 ==0 and x%5==0:
    continue
  elif x % 3==0:
    continue
  elif x%5==0:
    continue 
  else:
    fizz.append(x)
print(sum(fizz))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
i = int(input())
fizz=[]
for x in range(1, i+1):
  if x % 3 ==0 and x%5==0:
    continue
  elif x % 3==0:
    continue
  elif x%5==0:
    continue 
  else:
    fizz.append(x)
print(sum(fizz))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

ans = 0
for i in range(n):
    if i % 3 != 0 and i % 3 != 5:
        ans += i
print(ans)

Failing test case input:
1111110

Expected output:
329217448560


Actual output:
411521810700


Fixed submission (verdict: Accepted):
n = int(input())

ans = 0
for i in range(1, n+1):
    if i % 3 != 0 and i % 5 != 0:
        ans += i
print(ans)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
A=[i for i in range(N) if not(i%3==0 or i%5==0)]
print(str(sum(A)))


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
B=map(lambda x: x+1, list(range(int(input()))))

A=[i for i in list(B) if not(i%3==0 or i%5==0)]

print(str(sum(A)))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

ans = 0
for i in range(n):
    if i%3 !=0 and i%5!=0:
        ans += i
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())

ans = 0
for i in range(n+1):
    if i%3 !=0 and i%5!=0:
        ans += i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
sum = 0
for i in range(1,N):
  if not (i % 3 == 0 or i % 5 == 0):
    sum += i

print(sum)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())
sum = 0
for i in range(1,N+1):
  if not(i % 3 == 0 or i % 5 == 0):
    sum += i
 
print(sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print(sum([i*(i%3!=0)*(i%5!=0) for i in range(int(input()))]))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
print(sum([i*(i%3!=0)*(i%5!=0) for i in range(int(input())+1)]))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
import sys
import os
from operator import mul

sys.setrecursionlimit(10**7)

def _S(): return sys.stdin.readline().rstrip()
def I(): return int(_S())
def LS(): return list(_S().split())
def LI(): return list(map(int,LS()))

if os.getenv("LOCAL"):
    inputFile = basename_without_ext = os.path.splitext(os.path.basename(__file__))[0]+'.txt'
    sys.stdin = open(inputFile, "r")
INF = float("inf")


N = I()
ans = 0

for i in range(N):
    if i%3==0 or i%5==0:
        continue
    ans +=i

print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
import math
import sys
import os
from operator import mul

sys.setrecursionlimit(10**7)

def _S(): return sys.stdin.readline().rstrip()
def I(): return int(_S())
def LS(): return list(_S().split())
def LI(): return list(map(int,LS()))

if os.getenv("LOCAL"):
    inputFile = basename_without_ext = os.path.splitext(os.path.basename(__file__))[0]+'.txt'
    sys.stdin = open(inputFile, "r")
INF = float("inf")


N = I()
ans = 0

for i in range(1,N+1):
    if i%3==0 or i%5==0:
        continue
    ans +=i

print(ans)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
s = 0
for i in range(N):
    if i % 3 == 0 and i % 5 == 0:
        continue
    elif i % 3 == 0:
        continue
    elif i % 5 == 0:
        continue
    else:
        s += i
print(s)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())
s = 0
for ii in range(N):
    i = ii + 1
    if i % 3 == 0 and i % 5 == 0:
        continue
    elif i % 3 == 0:
        continue
    elif i % 5 == 0:
        continue
    else:
        s += i
print(s)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

sum = 0

for i in range(N):
    if i % 3 == 0 or i % 5 == 0:
        pass
    else:
        sum += i

print(sum)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())

sum = 0

for i in range(N+1):
    if i % 3 == 0 or i % 5 == 0:
        pass
    else:
        sum += i

print(sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
nums = []
for num in range(1, n):
  if num%3 !=0 and num%5!=0:
    nums.append(num)
    
print(sum(nums))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
totsum = 0
for num in range(1, n+1):
  if num%3!=0 and num%5!=0:
    totsum+=num
    
print(totsum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

print(sum(filter(lambda x : (x%3 != 0) and (x%5 !=0), range(N)))) 


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())

print(sum(filter(lambda x : (x%3 != 0) and (x%5 !=0), range(N+1))))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
ans=0
for i in range(a):
  if not i%3==0 and not i%5==0:
    ans+=i
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
a=int(input())
ans=0
for i in range(1,a+1):
  if not i%3==0 and not i%5==0:
    ans+=i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

a = []

for x in range(n):
	if x % 5 != 0 and x % 3 != 0:
		a.append(x)

print(sum(a))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())

a = []


for x in range(1,n+1):
	if x % 5 != 0 and x % 3 != 0:
		a.append(x)

print(sum(a))
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
sum = 0
for n in range(N):
    if n % 3 == 0:
        continue
    if n % 5 == 0:
        continue
    sum = sum + n

print(sum)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())
s = 0
for n in range(1, N + 1):
    if n % 3 == 0:
        continue
    if n % 5 == 0:
        continue
    s = s + n

print(s)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
for i in range(n):
    if i%3 != 0 and i%5 != 0:
        ans += i
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0
for i in range(1, n+1):
    if i%3 != 0 and i%5 != 0:
        ans += i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
B = 0

for i in range(1,N):
    if i % 3 != 0 and i % 5 != 0:
        B += i 

print(B)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())
B = 0

for i in range(1,N+1):
    if i % 3 != 0 and i % 5 != 0:
        B += i

print(B)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

A=[]
for i in range(N):
    if  i % 3 != 0 and i % 5 != 0:
        A.append(i)

print(sum(A))


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())

A=[]
for i in range(1,N+1):
    if  i % 3 != 0 and i % 5 != 0:
        A.append(i)

print(sum(A))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
a = list()
for i in range (int(N)):
    if i % 3 == 0 or i % 5 == 0:
        continue
    a.append(i)
print(sum(a))


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = input()
a = list()
for i in range(1,int(N)+1):
    if i % 3 == 0 or i % 5 == 0:
        continue
    else:
        a.append(i)
print(sum(a))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
count = 0
for n in range(N):
  if n%3!=0 and n%5!=0:
    count += n
        
print(count)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())
count = 0
for n in range(N+1):
  if n%3!=0 and n%5!=0:
    count += n       
print(count)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K=int(input())
n=0
for i in range(1,K+1):
    if(i%3==0):
        pass
    elif(i%5==0):
        pass
    elif(i%3==0 and i%5==0):
        pass
    else:
        n+=i

print()

Failing test case input:
1111010

Expected output:
329158562362


Actual output:

Fixed submission (verdict: Accepted):
K=int(input())
n=0
for i in range(1,K+1):
    if(i%3==0):
        pass
    elif(i%5==0):
        pass
    elif(i%3==0 and i%5==0):
        pass
    else:
        n+=i

print(n)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
a=0
for i in range(N):
    if i%3==0:
        continue
    if i%5==0:
        continue
    a+=i
print(a)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())
a=0
for i in range(1, N+1):
    if i%3==0:
        continue
    if i%5==0:
        continue
    a+=i
print(a)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
sum = 0
for i in range(int(N)):
    if (i%3!=0) and (i%5!=0):
        sum += i
print(sum)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = input()
sum = 0
for i in range(1, int(N)+1):
    if (i%3!=0) and (i%5!=0):
        sum += i
print(sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


iim = lambda: map(int, input().rstrip().split())

def resolve():
    N = int(input())

    ans = 0
    for i in range(N):
        if i % 3 == 0 or i % 5 == 0:
            continue
        ans += i
    print(ans)

if __name__ == "__main__":
    resolve()


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):


iim = lambda: map(int, input().rstrip().split())

def resolve():
    N = int(input())

    ans = 0
    for i in range(1, N+1):
        if i % 3 == 0 or i % 5 == 0:
            continue
        ans += i
    print(ans)

if __name__ == "__main__":
    resolve()

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())

ans=0
for i in range(N):
    if (i%5!=0) and (i%3!=0) :
        ans=ans+i
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N=int(input())

ans=0
for i in range(N+1):
    if (i%5!=0) and (i%3!=0):
        ans=ans+i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
su = 0
for i in range(n):
    if i % 3 != 0 and i % 5 != 0:
        su += i
print(su)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
su = 0
for i in range(1,n+1):
    if i % 3 != 0 and i % 5 != 0:
        su += i
print(su)
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
for i in range(n+1):
    if (i % 3 != 0) or (i % 5 != 0):
        ans += 0
print(ans)

Failing test case input:
1111010

Expected output:
329158562362


Actual output:
0


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0
for i in range(n+1):
    if (i % 3 != 0) and (i % 5 != 0):
        ans += i
print(ans)

Problem: p02712
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())
sum=0
for i in range(1,n):
  if((i%3!=0)&(i%5!=0)):
    sum=sum+i
print(sum)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
sum=0
for i in range(n+1):
  if((i%3!=0)&(i%5!=0)):
    sum=sum+i
print(sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def could_divide(num):
  return (num%3==0 or num%5==0)
n=int(input())
answer=0
for i in range(1,n+1):
  if(could_divide(i)):
    answer+=i
print(answer)

Failing test case input:
1110000

Expected output:
328560000000


Actual output:
287490555000


Fixed submission (verdict: Accepted):
def could_divide(num):
  return (num%3==0 or num%5==0)
n=int(input())
answer=0
for i in range(1,n+1):
  if(not could_divide(i)):
    answer+=i
print(answer)

Problem: p02712
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a = int(input())

ans = 0

for i in range(a):
  if i % 3 != 0 and i % 5 != 0:
    ans += i

print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
a = int(input())

ans = 0

for i in range(a+1):
  if i % 3 != 0 and i % 5 != 0:
    ans += i

print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

N = int(input())


answer = 0
for i in range(N):
    if i % 5 == 0 or i % 3 == 0 or i % 15 == 0:
        continue
    else:
        answer += i

print(answer)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):

N = int(input())


answer = 0
for i in range(1, N+1):
    if i % 5 == 0:
        continue
    elif i % 3 == 0:
        continue
    elif i % 15 == 0:
        continue
    else:
        answer += i

print(answer)

Problem: p02712
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())

L = []
for i in range(1, N+1):
    if i % 3 ==0 and i % 5 ==0:
        L.append(i)
    elif i%3==0:
        L.append(i)
    elif i%5==0:
        L.append(i)

print(sum(L))

Failing test case input:
1110010

Expected output:
328565550022


Actual output:
287496105033


Fixed submission (verdict: Accepted):
N = int(input())
 
L = []
for i in range(1, N+1):
    if i % 15 == 0:
        continue
    elif i % 3 == 0:
        continue
        L.append(i)
    elif i % 5 == 0:
        continue
    else:
        L.append(i)
 
print(sum(L))
Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = int(input())
count = 0
for i in range(x):
  if i % 3 == 0:
    pass
  elif i % 5 == 0:
    pass
  else:
    count += i

print(count)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
x = int(input()) + 1
count = 0
for i in range(x):
  if i % 3 == 0:
    pass
  elif i % 5 == 0:
    pass
  else:
    count += i

print(count)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
s=(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


print(s)  


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000.0


Fixed submission (verdict: Accepted):
N=int(input())
s=(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


print(int(s))

Problem: p02712
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n =int(input())
sum = 0
for i in range(1, n):
    if i % 3 != 0 and i % 5 != 0:
        sum += i
print(sum)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n =int(input())
sum = 0
for i in range(1, n+1):
    if i % 3 != 0 and i % 5 != 0:
        sum += i
print(sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
num = int(input('')) 

ans_sum = 0

for now_num in range(num):
    if now_num % 3 != 0 and now_num % 5 != 0:
        ans_sum = ans_sum + now_num
    
print(ans_sum)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
num = int(input('')) 

ans_sum = 0

for now_num in range(num+1):
    if now_num % 3 != 0 and now_num % 5 != 0:
        ans_sum = ans_sum + now_num
    
print(ans_sum)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
 
cnt = 0
for i in range(1, N+1):
  if i%3!=0 and i%5!=0:
    cnt += i
print(i)

Failing test case input:
1101000

Expected output:
323253600000


Actual output:
1101000


Fixed submission (verdict: Accepted):
N = int(input())
 
total = sum([i for i in range(1,N+1) if i%3!=0 and i%5!=0])
print(total)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
ans = 0

for i in range(a+1):
    if(i % 3 == 0 or i % 5 == 0):
        ans += i
print(ans)

Failing test case input:
1100010

Expected output:
322672533360


Actual output:
282339016695


Fixed submission (verdict: Accepted):
a = int(input())
ans = 0

for i in range(a+1):
    if(i % 3 != 0 and i % 5 != 0):
        ans += i
print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
 
ans = 0
for i in range(n):
    if i % 3 == 0 or i % 5 == 0: continue
    ans += i
    
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())

ans = 0
for i in range(1, n+1):
    if i % 3 == 0 or i % 5 == 0: continue
    ans += i
    
print(ans)
Problem: p02712
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())
ans = 0
for i in range(1, N + 1):
    if i % 3 == 0 or i % 5 == 0:
        ans += i

print(ans)

Failing test case input:
1110000

Expected output:
328560000000


Actual output:
287490555000


Fixed submission (verdict: Accepted):
N = int(input())
ans = 0

for i in range(N + 1):
    if not i % 3 == 0 and not i % 5 == 0:
        ans += i

print(ans)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
for i in range(n):
  if i % 3 == 0 and i % 5 == 0:
    a = 0
  elif i % 3 == 0:
    a = 0 
  elif i % 5 == 0:
    a = 0
  else:
    ans += i
print(ans)

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0
for i in range(1,n+1):
  if i % 3 == 0 and i % 5 == 0:
    a = 0
  elif i % 3 == 0:
    a = 0 
  elif i % 5 == 0:
    a = 0
  else:
    ans += i
print(ans)

Problem: p02712
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n=int(input())
total = 0
for i in range(n):
    if i%3 !=0:
        if i% 5!=0:
            total += i
print(total)


Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
n=int(input())
total = 0
for i in range(n+1):
    if i%3 !=0:
        if i% 5!=0:
            total += i
print(total)

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
n_list = [0 if (n % 15 == 0 or n % 3 == 0 or n % 5 == 0) else n for n in range(N)]
print(sum(n_list))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
N = int(input())
n_list = [0 if (n % 15 == 0 or n % 3 == 0 or n % 5 == 0) else n for n in range(1,N+1)]
print(sum(n_list))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
num = int(input())
li = [i for i in range(num)]
s = [li[i] for i in li if i % 3 == 0 or i % 5 == 0]
print(sum(li) - sum(s))

Failing test case input:
1110001

Expected output:
328561110001


Actual output:
328560000000


Fixed submission (verdict: Accepted):
num = int(input())
li = [i for i in range(1, num +1)]
oli = [i for i in li if i % 3 == 0 or i % 5 == 0]
print(sum(li) - sum(oli))

Problem: p02712
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = []
for i in range(n):
    if (i+1) % 15 == 0:
        a.insert(i+1,"FizzBuzz") 
    elif (i+1) % 3 == 0:
        a.insert(i+1,"Fizz") 
    elif (i+1)% 5 == 0:
        a.insert(i+1,"Buzz") 
    else:
        a.append(i+1)
        
b = [num for num in a if isinstance(num, int)]
sum(b)

Failing test case input:
1101000

Expected output:
323253600000


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())
a = []
for i in range(n):
    if (i+1) % 15 == 0:
        a.insert(i+1,"FizzBuzz") 
    elif (i+1) % 3 == 0:
        a.insert(i+1,"Fizz") 
    elif (i+1)% 5 == 0:
        a.insert(i+1,"Buzz") 
    else:
        a.append(i+1)
        
b = [num for num in a if isinstance(num, int)]
print(sum(b))