problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02833 | def g(N):
if N%2 == 1:
return 0
res = 0
N//=2
while N >= 5:
res += int(N/5)
N //= 5
return res
print(int(g(int(input())))) | def g(N):
if N%2 == 1:
return 0
res = 0
N//=2
while N >= 5:
res += N//5
N //= 5
return res
print(int(g(int(input())))) | [
"call.remove",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 636,403 | 636,404 | u007018214 | python |
p02833 | def g(N):
if N%2 == 1:
return 0
res = 0
N/=2
while N > 5:
res += int(N/5)
N //= 5
return res
print(int(g(int(input())))) | def g(N):
if N%2 == 1:
return 0
res = 0
N//=2
while N >= 5:
res += N//5
N //= 5
return res
print(int(g(int(input())))) | [
"expression.operator.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"call.remove",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 636,405 | 636,404 | u007018214 | python |
p02833 | def g(N):
if N%2 == 1:
return 0
res = 0
N/=2
while N > 1:
res += N/5
N /= 5
return res
print(int(g(int(input())))) | def g(N):
if N%2 == 1:
return 0
res = 0
N//=2
while N >= 5:
res += N//5
N //= 5
return res
print(int(g(int(input())))) | [
"expression.operator.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 636,406 | 636,404 | u007018214 | python |
p02833 | N = int(input())
count = 0
k = 5
if N % 2 == 0:
n = (N // 2 // 5) * 5
while(n > k):
count += n // k
k *= 5
print(count) | N = int(input())
count = 0
k = 5
if N % 2 == 0:
n = (N // 2 // 5) * 5
while(n >= k):
count += n // k
k *= 5
print(count) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,409 | 636,410 | u744920373 | python |
p02833 | N = int(input())
Answer = 0
if N%2 == 0:
fig = int(N/2)
while fig >= 5:
Answer += fig // 5
fig = fig // 5
print(Answer) | N = int(input())
Answer = 0
if N%2 == 0:
fig = N//2
while fig >= 5:
Answer += fig // 5
fig = fig // 5
print(Answer) | [
"call.remove",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 636,411 | 636,412 | u760794812 | python |
p02833 | N = int(input())
Answer = 0
if N%2 == 0:
fig = int(N/2)
while fig >= 5:
Answer += fig//5
fig = fig //5
print(Answer) | N = int(input())
Answer = 0
if N%2 == 0:
fig = N//2
while fig >= 5:
Answer += fig // 5
fig = fig // 5
print(Answer) | [
"call.remove",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 636,413 | 636,412 | u760794812 | python |
p02833 | n = int(input())
s,i = 0,10
if n%2:
print(0)
else:
while i<n:
s += (n//i)
i *= 5
print(s) | n = int(input())
s,i = 0,10
if n%2:
print(0)
else:
while i<=n:
s += (n//i)
i *= 5
print(s) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,417 | 636,418 | u514687406 | python |
p02833 | # E - Double Factorial
N = int(input())
if N % 2 == 1:
print(0)
else:
ans = 0
tmp = 10
while N > tmp:
ans += N // tmp
tmp *= 5
print(ans) | # E - Double Factorial
N = int(input())
if N % 2 == 1:
print(0)
else:
ans = 0
tmp = 10
while N >= tmp:
ans += N // tmp
tmp *= 5
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,435 | 636,436 | u018250459 | python |
p02833 |
"""
a=[0]*(n)
for i in range(n):
if(i<2):
a[i]=1
else:
a[i]=i*a[i-2]
for i in range(n):
print(i,a[i]))
"""
def cal(n):
res=0
while(n>0):
res+=n//5
n//=5
return res
n=int(input())
if(n==0):
print(0)
elif(n%2==1):
print(0)
else:
print(cal(int(n/2))) | """
a=[0]*(n)
for i in range(n):
if(i<2):
a[i]=1
else:
a[i]=i*a[i-2]
for i in range(n):
print(i,a[i]))
"""
def cal(n):
res=0
while(n>0):
res+=n//5
n//=5
return res
n=int(input())
if(n==0):
print(0)
elif(n%2==1):
print(0)
else:
print(cal(int(n//2)))
| [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 636,455 | 636,456 | u908372127 | python |
p02833 | N = int(input())
if N % 2 == 1:
print(0)
else:
k = 30
count = 0
for i in range(k):
count += int(N / (5**(k-i)) / 2)
print(count)
| N = int(input())
if N % 2 == 1:
print(0)
else:
k = 25
count = 0
for i in range(k):
count += N // ((5**(k-i)) * 2)
print(count)
| [
"literal.number.integer.change",
"assignment.value.change",
"call.remove",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 636,457 | 636,458 | u037190233 | python |
p02833 | N = int(input())
if N % 2 == 1:
print(0)
else:
k = 25
count = 0
for i in range(k):
count += int(N / (5**(k-i)) / 2)
print(count) | N = int(input())
if N % 2 == 1:
print(0)
else:
k = 25
count = 0
for i in range(k):
count += N // ((5**(k-i)) * 2)
print(count)
| [
"call.remove",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 636,459 | 636,458 | u037190233 | python |
p02833 | N=int(input())
c=N%10
if c%2==1:
print("0")
else:
i=1
b=0
while i<=27:
b+=int(N/(2*(5**i)))
i+=1
else:
print(b) | N=int(input())
c=N%10
if c%2==1:
print("0")
else:
i=1
b=0
while i<=100:
b+=N//(2*(5**i))
i+=1
else:
print(b)
| [
"literal.number.integer.change",
"control_flow.loop.condition.change",
"call.remove",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 636,479 | 636,478 | u654640743 | python |
p02833 | n = int(input())
p = 10
su = 0
while p <= n:
su += math.floor(n//p)
p*=5
if n%2==1:
print(0)
else:
print(su) | n = int(input())
p = 10
su = 0
while p <= n:
su += n//p
p*=5
if n%2==1:
print(0)
else:
print(su) | [
"call.remove",
"call.arguments.change"
] | 636,482 | 636,483 | u645181206 | python |
p02833 | n = int(input())
if n % 2 == 1:
print(0)
exit()
ans = 0
for i in range(1,50):
ans += (n // (5 ** i))
print(ans) | n = int(input())
if n % 2 == 1:
print(0)
exit()
n = n//2
ans = 0
for i in range(1,50):
ans += (n // (5 ** i))
print(ans) | [
"assignment.add"
] | 636,487 | 636,488 | u667024514 | python |
p02833 | n = int(input())
if n % 2 == 1:
print(0)
else:
i = 10
ans = 0
while n > i:
ans += n // i
i *= 5
print(ans)
| n = int(input())
if n % 2 == 1:
print(0)
else:
i = 10
ans = 0
while n >= i:
ans += n // i
i *= 5
print(ans)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,497 | 636,498 | u745223262 | python |
p02833 | n = input()
test = len(n)
n = int(n)
print(test)
b = 0
if n % 2 == 0:
for i in range(1,test+11):
b = b + (n//(5**(i)))//2
print(b) | n = input()
test = len(n)
n = int(n)
b = 0
if n % 2 == 0:
for i in range(1,test+11):
b = b + (n//(5**(i)))//2
print(b)
| [
"call.remove"
] | 636,505 | 636,506 | u078816252 | python |
p02833 |
def even(n):
count = 0
i = 10
while(n/i>=1):
count += int(n/i)
i *= 10
return int(count)
def main():
N = int(input())
if N < 2:
print(0)
# even
elif N % 2 == 0:
print(even(N))
# odd
elif N % 2 == 1:
print(0)
if __name__ == "__main__":
main()
| def even(n):
count = 0
i = 10
while(n/i>=1):
count += n//i
i *= 5
return int(count)
def main():
N = int(input())
if N < 2:
print(0)
# even
elif N % 2 == 0:
print(even(N))
# odd
elif N % 2 == 1:
print(0)
if __name__ == "__main__":
main()
| [
"call.remove",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"literal.number.integer.change"
] | 636,509 | 636,510 | u544587633 | python |
p02833 | N = int(input())
if N%2 ==1 or N ==2:
print(0)
else:
half = N//2
sumone=0
p=1
while 5**p <half:
sumone += half//(5**p)
p+=1
print(sumone) | N = int(input())
if N%2 ==1 or N ==2:
print(0)
else:
half = N//2
sumone=0
p=1
while 5**p <=half:
sumone += half//(5**p)
p+=1
print(sumone) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,514 | 636,515 | u364061715 | python |
p02833 | N = int(input())
if N%2 ==1:
print(0)
else:
half = N//2
sumone=0
p=1
while 5**p <half:
sumone += half//(5**p)
p+=1
print(sumone) | N = int(input())
if N%2 ==1 or N ==2:
print(0)
else:
half = N//2
sumone=0
p=1
while 5**p <=half:
sumone += half//(5**p)
p+=1
print(sumone) | [
"control_flow.branch.if.condition.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,516 | 636,515 | u364061715 | python |
p02833 | def two_int():
N, K = map(int, input().split())
return N,K
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
N=one_int()
if N%2==0:
sums =0
for i in range(1,26):
sums += (N/2)//(5**i)
print(int(sums) - N//170000000000000000)
else:
print(0) | def two_int():
N, K = map(int, input().split())
return N,K
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
N=one_int()
if N%2==0:
sums =0
for i in range(1,26):
sums += (N//2)//(5**i)
print(int(sums))
else:
print(0) | [
"expression.operator.arithmetic.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 636,537 | 636,538 | u688375653 | python |
p02833 | def two_int():
N, K = map(int, input().split())
return N,K
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
N=one_int()
if N%2==0:
sums =0
for i in range(1,26):
sums += (N/2)//(5**i)
print(int(sums) - N//200000000000000000)
else:
print(0) | def two_int():
N, K = map(int, input().split())
return N,K
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
N=one_int()
if N%2==0:
sums =0
for i in range(1,26):
sums += (N//2)//(5**i)
print(int(sums))
else:
print(0) | [
"expression.operator.arithmetic.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 636,539 | 636,538 | u688375653 | python |
p02833 | N = int(input())
if N % 2 == 1:
print(0)
a = 0
i = 1
while (5**i * 2) <= N:
a += N // (5**i * 2)
i += 1
print(a) | N = int(input())
if N % 2 == 1:
print(0)
exit()
a = 0
i = 1
while (5**i * 2) <= N:
a += N // (5**i * 2)
i += 1
print(a) | [
"call.add"
] | 636,544 | 636,545 | u484139840 | python |
p02833 | N = int(input())
if N % 2 == 1:
print(0)
a = 0
i = 1
while (5**i * 2) < N:
a += N // (5**i * 2)
i += 1
print(a) | N = int(input())
if N % 2 == 1:
print(0)
exit()
a = 0
i = 1
while (5**i * 2) <= N:
a += N // (5**i * 2)
i += 1
print(a) | [
"call.add",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,546 | 636,545 | u484139840 | python |
p02833 | N = int(input())
if N%2==1:
print(ans)
else:
cnt = 0
NN = (N//10)*10
for i in range(25):
cnt += NN//((5**(i+1))*2)
print(cnt) | N = int(input())
if N%2==1:
print(0)
else:
cnt = 0
NN = (N//10)*10
for i in range(25):
cnt += NN//((5**(i+1))*2)
print(cnt) | [
"identifier.replace.remove",
"literal.replace.add",
"call.arguments.change",
"io.output.change"
] | 636,556 | 636,557 | u113971909 | python |
p02833 | n = int(input())
k = 10
ans = 0
if n%2!=0:
print(0)
def k_change():
global k
k = k*5
def func(n):
global ans,k
#print(k)
if n < k:
print(ans)
exit()
ans += n//k
k_change()
func(n)
func(n) | n = int(input())
k = 10
ans = 0
if n%2!=0:
print(0)
exit()
def k_change():
global k
k = k*5
def func(n):
global ans,k
#print(k)
if n < k:
print(ans)
exit()
ans += n//k
k_change()
func(n)
func(n) | [
"call.add"
] | 636,589 | 636,590 | u372144784 | python |
p02833 | count=0
k=5
n=int(input())
if n%2==1:
print(0)
else:
n/=2
for i in range(1,100):
count+=int(n//(k))
k*=5
print(count)
| count=0
k=10
n=int(input())
if n%2==1:
print(0)
else:
for i in range(1,100):
count+=int(n//(k))
k*=5
print(count)
| [
"literal.number.integer.change",
"assignment.value.change"
] | 636,595 | 636,596 | u070246438 | python |
p02833 | k=10
n=int(input())
if n%2==1:
print(0)
else:
for i in range(1,100):
count+=n//(k)
k*=5
print(count) | count=0
k=10
n=int(input())
if n%2==1:
print(0)
else:
for i in range(1,100):
count+=int(n//(k))
k*=5
print(count)
| [
"call.add",
"call.arguments.change"
] | 636,597 | 636,596 | u070246438 | python |
p02833 | k=10
n=int(input())
if n%2==1:
print(0)
else:
for i in range(1,100):
count+=n//(k)
k*=5
print(count) | count=0
k=10
n=int(input())
if n%2==1:
print(0)
else:
for i in range(1,100):
count+=n//(k)
k*=5
print(count) | [
"assignment.add"
] | 636,597 | 636,598 | u070246438 | python |
p02833 | import sys
N = int(input())
if N%2 == 1:
print(0)
sys.exit()
ans = 0
i = 1
while (N//2)>5**i:
ans += (N//2)//(5**i)
i += 1
print(ans) | import sys
N = int(input())
if N%2 == 1:
print(0)
sys.exit()
ans = 0
i = 1
while (N//2)>=5**i:
ans += (N//2)//(5**i)
i += 1
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,603 | 636,604 | u847758719 | python |
p02833 | import sys
N = int(input())
if N % 2 != 0:
print(0)
sys.exit()
answer = 0
for i in range(18, 0, -1):
n = 10 ** i
answer += (N // n)
print(answer) | import sys
N = int(input())
if N % 2 != 0:
print(0)
sys.exit()
answer = 0
for i in range(36, 0, -1):
n = 5 ** i
answer += (N // n // 2)
print(answer) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.lower.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 636,605 | 636,606 | u956937655 | python |
p02833 | n = int(input())
if n % 2 == 1:
print(0)
quit()
i = 10
ans = 0
while n > i:
ans += n // i
i *= 5
print(ans)
| n = int(input())
if n % 2 == 1:
print(0)
quit()
i = 10
ans = 0
while n >= i:
ans += n // i
i *= 5
print(ans)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,615 | 636,616 | u682860781 | python |
p02833 | # -*- coding: utf-8 -*-
import sys
################ DANGER ################
test = ""
#test = \
"""
1000000000000000000
124999999999999995
"""
########################################
test = list(reversed(test.strip().splitlines()))
if test:
def input2():
return test.pop()
else:
def input2():
return input()
########################################
n = int(input2())
if n % 2:
print(0)
sys.exit()
ans = 0
i = 0
while (10 * 5**i) < n:
ans += n // (10 * 5**i)
i += 1
print(ans)
| # -*- coding: utf-8 -*-
import sys
################ DANGER ################
test = ""
#test = \
"""
1000000000000000000
124999999999999995
"""
########################################
test = list(reversed(test.strip().splitlines()))
if test:
def input2():
return test.pop()
else:
def input2():
return input()
########################################
n = int(input2())
if n % 2:
print(0)
sys.exit()
ans = 0
i = 0
while (10 * 5**i) <= n:
ans += n // (10 * 5**i)
i += 1
print(ans)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,617 | 636,618 | u272075541 | python |
p02833 | n = int(input())
if n%2 == 1:
print(0)
else:
ans = 0
i = 10
while i < n:
ans += n//i
i *= 5
print(ans)
| n = int(input())
if n%2 == 1:
print(0)
else:
ans = 0
i = 10
while i <= n:
ans += n//i
i *= 5
print(ans)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,629 | 636,630 | u488127128 | python |
p02833 | n = int(input())
if n % 2 == 1:
print(0)
else:
i = 1
ans = 0
while 2 * 5 ** i < n:
ans += n // (2 * 5 ** i)
i += 1
print(ans) | n = int(input())
if n % 2 == 1:
print(0)
else:
i = 1
ans = 0
while 2 * 5 ** i <= n:
ans += n // (2 * 5 ** i)
i += 1
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,638 | 636,639 | u148551245 | python |
p02833 | import math
def calc(n,x):
return n//x
n=int(input())
if n%2==1 or n==0:
print(0)
else:
ans=0
m=10
while m<n:
ans+=calc(n,m)
m*=5
print(ans)
| import math
def calc(n,x):
return n//x
n=int(input())
if n%2==1 or n==0:
print(0)
else:
ans=0
m=10
while m<=n:
ans+=calc(n,m)
m*=5
print(ans)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,659 | 636,660 | u332253305 | python |
p02833 | import math
def calc(n,x):
return n//x
n=int(input())
if n%2==1:
print(0)
else:
ans=0
m=10
while m<n:
ans+=calc(n,m)
m*=5
print(ans)
| import math
def calc(n,x):
return n//x
n=int(input())
if n%2==1 or n==0:
print(0)
else:
ans=0
m=10
while m<=n:
ans+=calc(n,m)
m*=5
print(ans)
| [
"control_flow.branch.if.condition.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,661 | 636,660 | u332253305 | python |
p02833 | N = int(input())
cnt = 0
i = 0
if N%2 == 0:
cnt = 0
else:
while N >= 10*(5**i):
cnt += N//(10*(5**i))
i += 1
#print(10*(5**i), N//(10*(5**i)))
print(cnt) | N = int(input())
cnt = 0
i = 0
if N%2 == 1:
cnt = 0
else:
while N >= 10*(5**i):
cnt += N//(10*(5**i))
i += 1
#print(10*(5**i), N//(10*(5**i)))
print(cnt) | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 636,664 | 636,665 | u553824105 | python |
p02833 | n = int(input())
if n % 2:
print(0)
quit()
ans = 0
for i in range(36):
ans += (n // (5 ** i))
print(ans) | n = int(input())
if n % 2:
print(0)
quit()
ans = 0
for i in range(1,36):
ans += (n // (2 * 5 ** i))
print(ans) | [
"call.arguments.add"
] | 636,669 | 636,670 | u329865314 | python |
p02833 | N = int(input())
if N % 2 == 1:
print(0)
else:
cnt = 0
pow = 10
while pow < N:
cnt += N // pow
pow *= 5
print(cnt) | N = int(input())
if N % 2 == 1:
print(0)
else:
cnt = 0
pow = 10
while pow <= N:
cnt += N // pow
pow *= 5
print(cnt) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,675 | 636,676 | u726872801 | python |
p02833 | n=int(input())
if n%2!=0:
print(0)
else:
ans,div=0,10
while div<n:
ans+=n//div
div*=5
print(ans) | n=int(input())
if n%2!=0:
print(0)
else:
ans,div=0,10
while div<=n:
ans+=n//div
div*=5
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,684 | 636,685 | u625963200 | python |
p02833 | N=int(input())
if N%2==1:
print(0)
exit()
else:
ans=0
m=10
i=1
while N>m:
ans+=N//m
i+=1
m=2*5**i
print(ans) | N=int(input())
if N%2==1:
print(0)
exit()
else:
ans=0
m=10
i=1
while N>=m:
ans+=N//m
i+=1
m=2*5**i
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,704 | 636,705 | u794910686 | python |
p02833 | N = int(input())
a = 10
cnt = 0
if N % 2 == 0:
# N is even.
while a < N:
cnt += (N // a)
a *= 5
print(cnt)
else:
# N is odd.
print(0) | N = int(input())
a = 10
cnt = 0
if N % 2 == 0:
# N is even.
while a <= N:
cnt += (N // a)
a *= 5
print(cnt)
else:
# N is odd.
print(0) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,706 | 636,707 | u894934980 | python |
p02833 | n=int(input())
if n%2==1:
print(0)
else:
n=n/2
five=1
ans=0
while n>=5**five:
ans+=n//(5**five)
five+=1
print(int(ans)) | n=int(input())
if n%2==1:
print(0)
else:
n=n//2
five=1
ans=0
while n>=5**five:
ans+=n//(5**five)
five+=1
print(ans)
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"call.remove",
"call.arguments.change"
] | 636,708 | 636,709 | u921617614 | python |
p02833 | n=int(input())
if n%2==1:
print(0)
else:
n=n/2
five=1
ans=0
while n>=5**five:
ans+=n//(5**five)
five+=1
print(int(ans)) | n=int(input())
if n%2==1:
print(0)
else:
n=n//2
five=1
ans=0
while n>=5**five:
ans+=(n//(5**five))
five+=1
print(ans) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"call.remove",
"call.arguments.change"
] | 636,708 | 636,710 | u921617614 | python |
p02833 | n = int(input())
p = 5
tmp = 0
n //= 2
while n > 1:
tmp += n // p
n = n // p
if n % 2 == 0:
print(tmp)
else:
print(0) | n = int(input())
p = 5
tmp = 0
o = n
n //= 2
while n > 1:
tmp += n // p
n = n // p
if o % 2 == 0:
print(tmp)
else:
print(0) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 636,711 | 636,712 | u185502200 | python |
p02833 | n = int(input())
def func(n):
if n % 2 != 0:
return 0
n_half = n//2
print(n_half)
count = 0
i = 1
while 5**i <= n_half:
count += n_half // 5**i
i += 1
return count
print(func(n))
| n = int(input())
def func(n):
if n % 2 != 0:
return 0
n_half = n//2
count = 0
i = 1
while 5**i <= n_half:
count += n_half // 5**i
i += 1
return count
print(func(n))
| [
"call.remove"
] | 636,713 | 636,714 | u171065106 | python |
p02833 | n = int(input())
def func(n):
if n % 2 != 0:
return 0
n_half = n//2
count = 0
i = 1
while 5**i < n_half:
count += n_half // 5**i
i+= 1
return count
print(func(n))
| n = int(input())
def func(n):
if n % 2 != 0:
return 0
n_half = n//2
count = 0
i = 1
while 5**i <= n_half:
count += n_half // 5**i
i += 1
return count
print(func(n))
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,715 | 636,714 | u171065106 | python |
p02833 | N = int(input())
def factorial(n, p):
if n == 0: return 1
return n/p + factorial(n/p, p)
def duble_factorial(n, p):
if n%2 == 1:
return factorial(n,p) - duble_factorial(n-1, p) # n!! = n!/(n-1)!!だからpで割ると引き算で表せるよね
else:
res = factorial(n/2, p)
if p == 2:
res += n/2
return res
ans = min(duble_factorial(N,2), duble_factorial(N,5))
print(ans) | #10で割ったあとの個数に注目して解を出してる
N = int(input())
def factorial(n, p):
if n == 0: return 0
return n//p + factorial(n//p, p)
def duble_factorial(n, p):
if n%2 == 1:
return factorial(n,p) - duble_factorial(n-1, p) # n!! = n!/(n-1)!!だからpで割ると引き算で表せるよね
else:
res = factorial(n//2, p)
if p == 2:
res += n//2
return res
ans = min(duble_factorial(N,2), duble_factorial(N,5))
print(ans) | [
"literal.number.integer.change",
"function.return_value.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change",
"call.arguments.change",
"assignment.value.change"
] | 636,742 | 636,743 | u611934316 | python |
p02833 | N = int(input())
def factorial(n, p):
if n == 0: return 1
return n/p + factorial(n/p, p)
def duble_factorial(n, p):
if n%2 == 1:
return factorial(n,p) - duble_factorial(n-1, p) # n!! = n!/(n-1)!!だからpで割ると引き算で表せるよね
else:
res = factorial(n/2, p)
if p == 2:
res += n/2
return res
ans = min(duble_factorial(N,2), duble_factorial(N,5))
print(ans) | N = int(input())
def factorial(n, p):
if n == 0: return 0
return n//p + factorial(n//p, p)
def duble_factorial(n, p):
if n%2 == 1:
return factorial(n,p) - duble_factorial(n-1, p) # n!! = n!/(n-1)!!だからpで割ると引き算で表せるよね
else:
res = factorial(n//2, p)
if p == 2:
res += n//2
return res
ans = min(duble_factorial(N,2), duble_factorial(N,5))
print(ans) | [
"literal.number.integer.change",
"function.return_value.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change",
"call.arguments.change",
"assignment.value.change"
] | 636,742 | 636,744 | u611934316 | python |
p02833 | import math
n = int(input())
def fact(n, x, ans):
if x > n:
return ans
else:
ans += math.floor(n/(2*x))
return fact(n, x*5, ans)
if n%2:
print(0)
else:
print(fact(n, 5, 0)) | import math
n = int(input())
def fact(n, x, ans):
if x > n:
return ans
else:
ans += math.floor(n//(2*x))
return fact(n, x*5, ans)
if n%2:
print(0)
else:
print(fact(n, 5, 0)) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 636,753 | 636,754 | u606146341 | python |
p02833 | import math
n = int(input())
def fact(n, x, ans):
if 2*x > n:
return ans
else:
ans += math.floor(n/(2*x))
return fact(n, x*5, ans)
if n//2:
print(0)
else:
print(fact(n, 5, 0))
| import math
n = int(input())
def fact(n, x, ans):
if x > n:
return ans
else:
ans += math.floor(n//(2*x))
return fact(n, x*5, ans)
if n%2:
print(0)
else:
print(fact(n, 5, 0)) | [
"expression.operation.binary.remove",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 636,757 | 636,754 | u606146341 | python |
p02833 | import math
n = int(input())
def fact(n, x, ans):
if x > n:
return ans
else:
ans += math.floor(n/(2*x))
return fact(n, x*5, ans)
if n//2:
print(0)
else:
print(fact(n, 5, 0)) | import math
n = int(input())
def fact(n, x, ans):
if x > n:
return ans
else:
ans += math.floor(n//(2*x))
return fact(n, x*5, ans)
if n%2:
print(0)
else:
print(fact(n, 5, 0)) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 636,758 | 636,754 | u606146341 | python |
p02833 | n = int(input())
if n % 2 == 1:
print(0)
else:
n //= 1
res = 0
while n > 0:
n //= 5
res += n
print(res) | n = int(input())
if n % 2 == 1:
print(0)
exit()
n //= 2
res = 0
while n > 0:
n //= 5
res += n
print(res) | [
"call.arguments.change",
"literal.number.integer.change"
] | 636,763 | 636,764 | u075739430 | python |
p02833 | n = int(input())
if n % 2 == 1:
print(0)
exit()
n //= 1
res = 0
while n > 0:
n //= 5
res += n
print(res) | n = int(input())
if n % 2 == 1:
print(0)
exit()
n //= 2
res = 0
while n > 0:
n //= 5
res += n
print(res) | [
"literal.number.integer.change"
] | 636,765 | 636,764 | u075739430 | python |
p02833 | n = int(input())
if n % 2 == 1:
print(0)
else:
n //= 1
res = 0
while n > 0:
n //= 5
res += n
print(res) | n = int(input())
if n % 2 == 1:
print(0)
else:
n //= 2
res = 0
while n > 0:
n //= 5
res += n
print(res) | [
"literal.number.integer.change"
] | 636,763 | 636,766 | u075739430 | python |
p02833 | n = int(input())
if n % 2 == 1:
print(0)
exit()
n //= 1
res = 0
while n > 0:
n //= 5
res += n
print(res) | n = int(input())
if n % 2 == 1:
print(0)
else:
n //= 2
res = 0
while n > 0:
n //= 5
res += n
print(res) | [
"call.arguments.change",
"literal.number.integer.change"
] | 636,765 | 636,766 | u075739430 | python |
p02833 | n=int(input())
w=5
ans=0
if n%2==0:
while w<=n:
ans+=n//w
w=w*5
print(ans)
else:
print(0) | n=int(input())
w=10
ans=0
if n%2==0:
while w<=n:
ans+=n//w
w=w*5
print(ans)
else:
print(0)
| [
"literal.number.integer.change",
"assignment.value.change"
] | 636,769 | 636,770 | u202634017 | python |
p02833 | n=int(input())
w=5
ans=0
if n%2==0:
while w<n:
ans+=n//w
w=w*5
print(ans)
else:
print(0) | n=int(input())
w=10
ans=0
if n%2==0:
while w<=n:
ans+=n//w
w=w*5
print(ans)
else:
print(0)
| [
"literal.number.integer.change",
"assignment.value.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,771 | 636,770 | u202634017 | python |
p02833 | N = int(input())
ans = 0
if (N % 2 == 1):
print(ans)
else:
k = N // 2
i = 1
while (5**i < k):
ans += k//(5**i)
i += 1
print(ans)
| N = int(input())
ans = 0
if (N % 2 == 1):
print(ans)
else:
k = N // 2
i = 1
while (5**i <= k):
ans += k//(5**i)
i += 1
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,772 | 636,773 | u202634017 | python |
p02833 | N = int(input())
if N%2 == 1:
print(0)
else:
denomi = 10
ans = 0
while denomi < N:
ans += N//denomi
denomi *= 5
print(ans) | N = int(input())
if N%2 == 1:
print(0)
else:
denomi = 10
ans = 0
while denomi <= N:
ans += N//denomi
denomi *= 5
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,776 | 636,777 | u196344286 | python |
p02833 | N = int(input())
bo = 10
ans = 0
if N%2 == 0:
while bo < N:
ans += N // bo
bo *= 5
print(ans) | N = int(input())
bo = 10
ans = 0
if N%2 == 0:
while bo <= N:
ans += N // bo
bo *= 5
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,784 | 636,785 | u707808519 | python |
p02833 | n = int(input())
k = 10
ans = 0
if n % 2 == 0:
while k < n:
ans += n // k
k *= 5
print(ans) | n = int(input())
k = 10
ans = 0
if n % 2 == 0:
while k <= n:
ans += n // k
k *= 5
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,788 | 636,789 | u257974487 | python |
p02833 | n=int(input())
res=0
if (n%2)==0:
x=5
while True:
if (n//x)==0:
break
d=n//x
if d&2:
d=(d-1)//2
else:
d//=2
res+=d
x*=5
print(res) | n=int(input())
res=0
if (n%2)==0:
x=5
while True:
if (n//x)==0:
break
d=n//x
if (d%2)==1:
d=(d-1)//2
else:
d//=2
res+=d
x*=5
print(res) | [
"control_flow.branch.if.condition.change"
] | 636,821 | 636,822 | u422104747 | python |
p02833 | n=int(input())
if n%2==1:
print(0)
else:#2,4,6,8,10...
n=round(n/2)
k=0
while n>0:
k+=round(n/5)
n=round(n/5)
print(k)
| n=int(input())
if n%2==1:
print(0)
else:#2,4,6,8,10...
n=(n//2)
k=0
while n>0:
k+=(n//5)
n=(n//5)
print(k)
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 636,846 | 636,847 | u813174766 | python |
p02833 | n=int(input())
if n%2==1:
print(0)
else:#2,4,6,8,10...
n=int(n/2)
k=0
while n>0:
k+=int(n/5)
n=int(n/5)
print(k)
| n=int(input())
if n%2==1:
print(0)
else:#2,4,6,8,10...
n=(n//2)
k=0
while n>0:
k+=(n//5)
n=(n//5)
print(k)
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 636,848 | 636,847 | u813174766 | python |
p02833 | N=int(input())
if N%2!=0:
print(0)
m=10
a=0
while m<=N:
a+=N//m
m=m*5
print(a)
| N=int(input())
if N%2==1:
print(0)
exit()
m=10
a=0
while m<=N:
a+=N//m
m=m*5
print(a)
| [
"call.add"
] | 636,849 | 636,850 | u109617108 | python |
p02833 | N = int(input())
if N % 2 == 1:
print(0)
else:
ans = 0
v = 10
while N > v:
ans += N // v
v *= 5
print(ans) | N = int(input())
if N % 2 == 1:
print(0)
else:
ans = 0
v = 10
while N >= v:
ans += N // v
v *= 5
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,853 | 636,854 | u861141787 | python |
p02833 | n = int(input())
a = 0
if n % 2 == 0:
j = 10
while j < n:
a += n // j
j *= 5
# print("10: {} 50: {}".format(a, b))
print(a)
| n = int(input())
a = 0
if n % 2 == 0:
j = 10
while j <= n:
a += n // j
j *= 5
# print("10: {} 50: {}".format(a, b))
print(a)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,859 | 636,860 | u679439110 | python |
p02833 | N=int(input())
if N%2==0:
n=int(N/2)
k=1
c=0
while 5**k <= n:
c=c+n//5**k
k=k+1
print(c)
else:
print(0) | N=int(input())
if N%2==0:
n=N//2
k=1
c=0
while 5**k <= n:
c=c+n//5**k
k=k+1
print(c)
else:
print(0) | [
"call.remove",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 636,865 | 636,866 | u813569174 | python |
p02833 | import sys
from pprint import pprint
import math
n = int(sys.stdin.readline().strip())
n_max = 10 ** 18
if n % 2 == 1:
print(0)
else:
ans = 0
#for i in range(1,19):
# tmp = n // (10**i)
# ans += tmp
d = 1
while d <= n_max:
d *= 5
ans += int((n // d) / 2)
print(ans) | import sys
from pprint import pprint
import math
n = int(sys.stdin.readline().strip())
n_max = 10 ** 18
if n % 2 == 1:
print(0)
else:
ans = 0
d = 2
while d * 5 <= n_max:
d *= 5
ans += int((n // d))
print(ans) | [
"literal.number.integer.change",
"assignment.value.change",
"control_flow.loop.condition.change",
"expression.operation.binary.remove"
] | 636,869 | 636,870 | u028973125 | python |
p02833 | n=int(input())
if n%2==1:
print(0)
exit()
ans=0
t=10
while n>t:
ans+=n//t
t*=5
print(ans) | n=int(input())
if n%2==1:
print(0)
exit()
ans=0
t=10
while n>=t:
ans+=n//t
t*=5
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,874 | 636,875 | u970449052 | python |
p02833 | # coding: utf-8
def solve(*args: str) -> str:
n = int(args[0])
if n % 2 != 0:
return '0'
ret = 0
d = 10
while d < n:
ret += n//d
d *= 5
return str(ret)
if __name__ == "__main__":
print(solve(*(open(0).read().splitlines())))
| # coding: utf-8
def solve(*args: str) -> str:
n = int(args[0])
if n % 2 != 0:
return '0'
ret = 0
d = 10
while d <= n:
ret += n//d
d *= 5
return str(ret)
if __name__ == "__main__":
print(solve(*(open(0).read().splitlines())))
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,880 | 636,881 | u164727245 | python |
p02833 | N = int(input())
def func(n):
if n < 5:
return 0
else:
nn = int(n / 5)
return nn + func(nn)
if N % 2:
print(0)
else:
print(func(int(N / 2)))
| N = int(input())
def func(n):
if n < 5:
return 0
else:
nn = int(n // 5)
return nn + func(nn)
if N % 2 == 1:
print(0)
else:
print(func(int(N // 2)))
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 636,889 | 636,890 | u975485663 | python |
p02833 | n=int(input())
s=0
if n%2==0:
m=10
while(n>m):
s+=n//m
m*=5
print(s) | n=int(input())
s=0
if n%2==0:
m=10
while(n>=m):
s+=n//m
m*=5
print(s) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,891 | 636,892 | u228372657 | python |
p02833 | N = int(input())
ans = 0
m = 10
if N & 1:
print(0)
exit()
while N > m:
ans += N//m
m *= 5
print(ans)
| N = int(input())
ans = 0
m = 10
if N & 1:
print(0)
exit()
while N >= m:
ans += N//m
m *= 5
print(ans)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,895 | 636,896 | u196579381 | python |
p02833 | N = int(input())
ans = 0
m = 10
if N ^ 1:
print(0)
exit()
while N > m:
ans += N//m
m *= 5
print(ans)
| N = int(input())
ans = 0
m = 10
if N & 1:
print(0)
exit()
while N >= m:
ans += N//m
m *= 5
print(ans)
| [
"control_flow.branch.if.condition.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,897 | 636,896 | u196579381 | python |
p02833 | n=int(input())
if n%2==1:print(0);exit()
A=0
add=10
while n>=add:
A +=n//add
add *=5
print(sum(A)) | n=int(input())
if n%2==1:print(0);exit()
A=0
add=10
while n>=add:
A +=n//add
add *=5
print(A) | [
"call.arguments.change"
] | 636,902 | 636,903 | u905203728 | python |
p02833 | n = int(input())
l = len(str(n))
ans = 0
if n % 2:
print(0)
exit()
for i in range(1, 100):
if i == 1:
ans += n//10
ans += n//(5*10**i)
print(ans) | n = int(input())
l = len(str(n))
ans = 0
if n % 2:
print(0)
exit()
for i in range(1, 100):
if i == 1:
ans += n//10
ans += n//(10*5**i)
print(ans) | [
"expression.operation.binary.remove"
] | 636,906 | 636,907 | u558782626 | python |
p02833 | N = int(input())
if N & 1 == 1:
print(0)
exit()
N >>= 1
five_count = 5
ans = 0
while five_count < N:
ans += N // five_count
five_count *= 5
print(ans) | N = int(input())
if N & 1 == 1:
print(0)
exit()
N >>= 1
five_count = 5
ans = 0
while five_count <= N:
ans += N // five_count
five_count *= 5
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,943 | 636,944 | u736524428 | python |
p02833 | def dobfac(num):
count = 0
i = 5
if num % 2:
print(0)
while num / i > 0:
count += num // i // 2
i *= 5
print(count)
if __name__ == "__main__":
import sys
in_str = []
for line in sys.stdin:
in_str.append(line)
dobfac(int(in_str[0])) | def dobfac(num):
count = 0
i = 5
if num % 2:
print(0)
else:
while num / i > 0:
count += num // i // 2
i *= 5
print(count)
if __name__ == "__main__":
import sys
in_str = []
for line in sys.stdin:
in_str.append(line)
dobfac(int(in_str[0])) | [] | 636,945 | 636,946 | u799916419 | python |
p02833 | n = int(input())
fivenum = 0
if n%2 == 1:
print(0)
else:
for i in range(35):
j = 2*pow(5,i+1)
if j < n:
fivenum += n//j
print(fivenum)
| n = int(input())
fivenum = 0
if n%2 == 1:
print(0)
else:
for i in range(1000):
j = 2*pow(5,i+1)
if j <= n:
fivenum += n//j
print(fivenum)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 636,951 | 636,952 | u595716769 | python |
p02833 | import sys
input = sys.stdin.readline
n = int(input())
if n%2 == 1:
print(0)
else:
cnt = 0
tmp = 10
while(tmp < n):
cnt += n//tmp
tmp *= 5
print(cnt) | import sys
input = sys.stdin.readline
n = int(input())
if n%2 == 1:
print(0)
else:
cnt = 0
tmp = 10
while(tmp <= n):
cnt += n//tmp
tmp *= 5
print(cnt) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,955 | 636,956 | u102275718 | python |
p02833 | N = int(input())
num = 10
ans = 0
if N % 2 == 1:
print(0)
else:
while(num < N):
ans += N // num
num *= 5
print(ans) | N = int(input())
num = 10
ans = 0
if N % 2 == 1:
print(0)
else:
while(num <= N):
ans += N // num
num *= 5
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 636,970 | 636,971 | u054856689 | python |
p02833 | n = int(input())
def f(num):
num = num - int(str(num)[-1])
count = 0
i = 1
while True:
if ((5 ** i) * (2)) > num:
break
count += (num // ((5 ** i) * (2)))
i += 1
return count
# 偶数 => 出てくる5の個数
# 奇数 => 0
if n % 2 == 1:
print(0)
exit()
else:
print(f(n))
print(124999999999999995) | n = int(input())
def f(num):
num = num - int(str(num)[-1])
count = 0
i = 1
while True:
if ((5 ** i) * (2)) > num:
break
count += (num // ((5 ** i) * (2)))
i += 1
return count
# 偶数 => 出てくる5の個数
# 奇数 => 0
if n % 2 == 1:
print(0)
exit()
else:
print(f(n)) | [
"call.remove"
] | 636,980 | 636,979 | u652057333 | python |
p02833 | n=int(input())
if n%2==1:
print(0)
else:
n=n//2
i=0
while 5**i<n:
i=i+1
count=0
for j in range(1,i):
count+=n//(5**j)
print(count)
| n=int(input())
if n%2==1:
print(0)
else:
n=n//2
i=0
while 5**i<n:
i=i+1
count=0
for j in range(1,i+1):
count+=n//(5**j)
print(count) | [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 636,981 | 636,982 | u652569315 | python |
p02833 | # -*- coding: utf-8 -*-
def solve():
N = int(input())
if N & 2:
res = 0
else:
q = 10
p5 = 0
while N // q:
p5 += N // q
q *= 5
q = 2
p2 = 0
while N // q:
p2 += N // q
q *= 2
res = min(p2, p5)
return str(res)
if __name__ == '__main__':
print(solve())
| # -*- coding: utf-8 -*-
def solve():
N = int(input())
if N % 2:
res = 0
else:
q = 10
p5 = 0
while N // q:
p5 += N // q
q *= 5
q = 2
p2 = 0
while N // q:
p2 += N // q
q *= 2
res = min(p2, p5)
return str(res)
if __name__ == '__main__':
print(solve())
| [
"control_flow.branch.if.condition.change"
] | 636,989 | 636,990 | u667469290 | python |
p02833 | #coding:utf-8
def cnt_five(n):
i = 1
cnt = 0
while 5 ** i < n:
cnt += n // (5 ** i)
i += 1
return cnt
n = int(input())
if n % 2 != 0:
print(0)
else:
n //= 2
print(cnt_five(n))
| #coding:utf-8
def cnt_five(n):
i = 1
cnt = 0
while 5 ** i <= n:
cnt += n // (5 ** i)
i += 1
return cnt
n = int(input())
if n % 2 != 0:
print(0)
else:
n //= 2
print(cnt_five(n))
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 637,006 | 637,007 | u724563664 | python |
p02833 | N=int(input())
if N<5 or N%2==1:
print(0)
else:
N=N/2
flag=0
while(N>=5):
N=int(N//5)
flag+=N//1
print(int(flag//1)) | N=int(input())
if N<5 or N%2==1:
print(0)
else:
N=N//2
flag=0
while(N>=5):
N=int(N//5)
flag+=N
print(int(flag//1)) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 637,016 | 637,017 | u594477812 | python |
p02833 | n=int(input())
if n%2==0:
n=(n)//2
ans=0
f=5
while f<=n:
ans+=n//f
f*=5
print(ans) | n=int(input())
if n%2==0:
n=(n)//2
ans=0
f=5
while f<=n:
ans+=n//f
f*=5
print(ans)
else:
print(0) | [
"call.add"
] | 637,039 | 637,040 | u261843559 | python |
p02833 | from sys import exit
N = int(input())
if N % 2 == 1:
print(0)
exit()
result = 0
t = 10
while t < N:
result += N // t
t *= 5
print(result)
| from sys import exit
N = int(input())
if N % 2 == 1:
print(0)
exit()
result = 0
t = 10
while t <= N:
result += N // t
t *= 5
print(result)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 637,043 | 637,044 | u347640436 | python |
p02833 | N = int(input())
ans = 0
if N%2 == 0:
for i in range(10**5):
if 5**(i+1) > N:
break
ans += int((N)//5**(i+1))
print(ans)
else:
print(0)
| N = int(input())
ans = 0
if N%2 == 0:
for i in range(10**5):
if 5**(i+1) > N:
break
ans += int(N//(5**(i+1)*2))
print(ans)
else:
print(0)
| [
"call.arguments.change"
] | 637,050 | 637,051 | u385244248 | python |
p02833 | import math
import random
from operator import itemgetter
import re
import sys
from itertools import accumulate
from collections import defaultdict
from collections import deque
from bisect import bisect_left,bisect
from heapq import heappop,heappush
from math import gcd
from copy import deepcopy
N = int(input())
ans = 0
if N%2 == 1:
print(0)
else:
N //= 2
while N > 5:
ans += N//5
N = N //5
print(ans) | import math
import random
from operator import itemgetter
import re
import sys
from itertools import accumulate
from collections import defaultdict
from collections import deque
from bisect import bisect_left,bisect
from heapq import heappop,heappush
from math import gcd
from copy import deepcopy
N = int(input())
ans = 0
if N%2 == 1:
print(0)
else:
N //= 2
while N >= 5:
ans += N//5
N = N //5
print(ans)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 637,052 | 637,053 | u513900925 | python |
p02833 | n = int(input())
if n % 2 == 1:
out = 0
else:
n2 = n // 2
tmp5 = 5
out = 0
while tmp5 < n2:
out += (n2 // tmp5)
tmp5 *= 5
print(out) | n = int(input())
if n % 2 == 1:
out = 0
else:
n2 = n // 2
tmp5 = 5
out = 0
while tmp5 <= n2:
out += (n2 // tmp5)
tmp5 *= 5
print(out) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 637,063 | 637,064 | u496407619 | python |
p02833 | #import numpy as np
def cin():
return map(int, input().split())
n = int(input())
print(n)
cnt = 0
if n % 2 == 1:
print(0)
exit(0)
div = 1
n //= 2
for i in range(33):
div *= 5
cnt += n // div
print(cnt)
| #import numpy as np
def cin():
return map(int, input().split())
n = int(input())
cnt = 0
if n % 2 == 1:
print(0)
exit(0)
div = 1
n //= 2
for i in range(33):
div *= 5
cnt += n // div
print(cnt)
| [
"call.remove"
] | 637,067 | 637,068 | u771524928 | python |
p02833 | n=int(input())
if n%2==1:
print(0)
else:
f=0
i=1
while i<20:
f+=n//(10**i)
i+=1
print(f) | n=int(input())
if n%2==1:
print(0)
else:
f=0
i=1
while i<100:
f+=n//((5**i)*2)
i+=1
print(f)
| [
"literal.number.integer.change",
"control_flow.loop.condition.change",
"expression.operation.binary.change"
] | 637,071 | 637,072 | u223904637 | python |
p02833 | import math
def make_divisors(n):
divisors = []
for i in range(1, int(n**0.5)+1):
if n % i == 0:
divisors.append(i)
if i != n // i:
divisors.append(n//i)
# divisors.sort()
return divisors
def bitlist(x,digit):
res = [0 for i in range(digit)]
now = x
for i in range(digit):
res[i]=now%2
now = now >> 1
return res
#a = list(map(int, input().split()))
n = int(input())//2
flag2 = n%2
num2=0
num5=0
ans2=1
ans5=1
while(True):
if(ans2 > n):
break
num2 += 1
ans2 *= 2
while(True):
if(ans5 > n):
break
num5 += 1
ans5 *= 5
have2 = 0
have5 = 0
#print(num2,num5)
now2 = num2
for i in range(num2):
times = n // int(2**now2)
have2 += times
now2 -=1
#print("t",times)
now5 = num5
for i in range(num5):
times = n // int(5**now5)
have5 += times
now5 -=1
#print(have2+n,have5)
if(flag2==0):
print(min(have2+n,have5))
else:
print(0) | import math
def make_divisors(n):
divisors = []
for i in range(1, int(n**0.5)+1):
if n % i == 0:
divisors.append(i)
if i != n // i:
divisors.append(n//i)
# divisors.sort()
return divisors
def bitlist(x,digit):
res = [0 for i in range(digit)]
now = x
for i in range(digit):
res[i]=now%2
now = now >> 1
return res
#a = list(map(int, input().split()))
m = int(input())
n = m//2
flag2 = m%2
num2=0
num5=0
ans2=1
ans5=1
while(True):
if(ans2 > n):
break
num2 += 1
ans2 *= 2
while(True):
if(ans5 > n):
break
num5 += 1
ans5 *= 5
have2 = 0
have5 = 0
#print(num2,num5)
now2 = num2
for i in range(num2):
times = n // int(2**now2)
have2 += times
now2 -=1
#print("t",times)
now5 = num5
for i in range(num5):
times = n // int(5**now5)
have5 += times
now5 -=1
#print(have2+n,have5,flag2)
if(flag2==0):
print(min(have2+n,have5))
else:
print(0) | [
"assignment.variable.change",
"identifier.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 637,093 | 637,094 | u366541443 | python |
p02833 | #E
N = int(input())
if N%2 == 1:
print(0)
else:
m = 5
ans = 0
n = N//2
while m < n:
ans+=(n//m)
m*=5
print(ans)
| #E
N = int(input())
if N%2 == 1:
print(0)
else:
m = 5
ans = 0
n = N//2
while m <= n:
ans+=(n//m)
m*=5
print(ans)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 637,103 | 637,104 | u533885955 | python |
p02833 | def main():
import sys
n=int(input())
if n%2==1:
print(0)
sys.exit()
i=10
ans=0
while i<n:
ans+=n//i
i*=5
print(ans)
if __name__ == '__main__':
main() | def main():
import sys
n=int(input())
if n%2==1:
print(0)
sys.exit()
i=10
ans=0
while i<=n:
ans+=n//i
i*=5
print(ans)
if __name__ == '__main__':
main() | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 637,107 | 637,108 | u197300773 | python |
p02833 | n=int(input())
if(n%2==1):
print(0)
else:
n=n/2
count=0
i=5
while(n//i>=1):
count+=int(n/(i))
i*=5
print(int(count)) | n=int(input())
if(n%2==1):
print(0)
else:
n=n//2
count=0
i=5
while(n//i>=1):
count+=n//(i)
i*=5
print(int(count)) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"call.remove",
"call.arguments.change"
] | 637,122 | 637,123 | u597456301 | python |
p02833 | N = int(input())
a = 0
b = 0
n = 1
b = 2*5**(n)
if N % 2 == 1:
print(0)
else:
while b <= N:
print(b)
a += int(N // b)
n += 1
b = 2*5**(n)
print(a) | N = int(input())
a = 0
b = 0
n = 1
b = 2*5**(n)
if N % 2 == 1:
print(0)
else:
while b <= N:
a += int(N // b)
n += 1
b = 2*5**(n)
print(a) | [
"call.remove"
] | 637,126 | 637,127 | u025287757 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.