Datasets:

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
9 values
p02833
n = int(input()) if n % 2 == 1: print(0) else: print(sum(n // (2 * 5 ** d) for d in range(1, 18 + 1)))
n = int(input()) if n % 2 == 1: print(0) else: print(sum(n // (2 * 5 ** d) for d in range(1, 25 + 1)))
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
636,289
636,290
u945957386
python
p02833
n = int(input()) ans = 0 if int(n) % 2 != 0: print(0) else: ans = 0 cnt = 10 while True: if n // cnt == 0: break ans += n // cnt cnt = cnt * 5 print(ans)
n = int(input()) ans = 0 if n % 2 != 0: print(0) exit() else: ans = 0 cnt = 10 while True: if n // cnt == 0: break ans += n // cnt cnt = cnt * 5 print(ans)
[ "call.remove", "control_flow.branch.if.condition.change", "call.add" ]
636,311
636,312
u023958502
python
p02833
N = int(input()) sum = 0 dominator = 5 if N % 2 == 0: while(N>dominator): sum += N // dominator dominator *= 5 print(sum)
N = int(input()) s = 0 dominator = 10 if N % 2 == 0: while(N>=dominator): s += N // dominator dominator *= 5 print(s)
[ "assignment.variable.change", "identifier.change", "literal.number.integer.change", "assignment.value.change", "expression.operator.compare.change", "control_flow.loop.condition.change", "call.arguments.change", "io.output.change" ]
636,315
636,316
u500415792
python
p02833
N = int(input()) sum = 0 dominator = 10 if N % 2 == 0: while(N>dominator): sum += N // dominator dominator *= 5 print(sum)
N = int(input()) s = 0 dominator = 10 if N % 2 == 0: while(N>=dominator): s += N // dominator dominator *= 5 print(s)
[ "assignment.variable.change", "identifier.change", "expression.operator.compare.change", "control_flow.loop.condition.change", "call.arguments.change", "io.output.change" ]
636,317
636,316
u500415792
python
p02833
N=int(input()) if N%2==1: print(0) exit(0) ans=0 n=N div=10 while n>div: ans+=n//div div*=5 print(ans)
N=int(input()) if N%2==1: print(0) exit(0) ans=0 n=N div=10 while n>=div: ans+=n//div div*=5 print(ans)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
636,322
636,321
u936985471
python
p02833
import math import bisect import collections import itertools def gcd(a,b):return math.gcd #最大公約数 def lcm(a,b):return (a*b) // math.gcd(a,b) #最小公倍数 def iin(): return int(input()) #整数読み込み def imn(): return map(int, input().split()) #整数map取得 def iln(): return list(map(int, input().split())) #整数リスト取得 def iln_s(): return sorted(iln()) # 昇順の整数リスト取得 def iln_r(): return sorted(iln(), reverse=True) # 降順の整数リスト取得 def join(l, s=''): return s.join(l) #リストを文字列に変換 def perm(l, n): return itertools.permutations(l, n) # 順列取得 def comb(l, n): return itertools.combinations(l, n) # 組み合わせ取得 def 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) return divisors def is_prime(n): if n == 1: return False for i in range(2, int(n**0.5) + 1): if n % i == 0: return False return True N = iin() if N % 2 == 1: print(0) cnt = 0 div = 10 while True: cnt += N//div div *= 5 if div > N:break print(cnt)
import math import bisect import collections import itertools def gcd(a,b):return math.gcd #最大公約数 def lcm(a,b):return (a*b) // math.gcd(a,b) #最小公倍数 def iin(): return int(input()) #整数読み込み def imn(): return map(int, input().split()) #整数map取得 def iln(): return list(map(int, input().split())) #整数リスト取得 def iln_s(): return sorted(iln()) # 昇順の整数リスト取得 def iln_r(): return sorted(iln(), reverse=True) # 降順の整数リスト取得 def join(l, s=''): return s.join(l) #リストを文字列に変換 def perm(l, n): return itertools.permutations(l, n) # 順列取得 def comb(l, n): return itertools.combinations(l, n) # 組み合わせ取得 def 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) return divisors def is_prime(n): if n == 1: return False for i in range(2, int(n**0.5) + 1): if n % i == 0: return False return True N = iin() if N % 2 == 1: print(0) exit() cnt = 0 div = 10 while True: cnt += N//div div *= 5 if div > N:break print(cnt)
[ "call.add" ]
636,328
636,329
u622045059
python
p02833
n = int(input()) if n % 2 == 1: print(0) else: ans = 0 i = 2 * 5 while i < n: ans += n // i i *= 5 print(ans)
n = int(input()) if n % 2 == 1: print(0) else: ans = 0 i = 2 * 5 while i <= n: ans += n // i i *= 5 print(ans)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
636,356
636,357
u382423941
python
p02833
n = int(input()) if i % 2 == 1: print(0) else: i = 10 ans = 0 while i <= n: ans += n // i i *= 5 print(ans)
n = int(input()) if n % 2 == 1: print(0) else: i = 10 ans = 0 while i <= n: ans += n // i i *= 5 print(ans)
[ "identifier.change", "control_flow.branch.if.condition.change" ]
636,365
636,366
u833509814
python
p02833
import sys def main(): # sys.stdin=open('input148e.txt') n = int(input()) c = 0 if n % 2 == 1: print(0) exit() r = 10 while r <= n: c += int(n / r) r = r * 5 print(c) if __name__ == '__main__': main()
import sys def main(): # sys.stdin=open('input148e.txt') n = int(input()) c = 0 if n % 2 == 1: print(0) exit() r = 10 while r <= n: c += n // r r = r * 5 print(c) if __name__ == '__main__': main()
[ "call.remove", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change" ]
636,369
636,370
u946433121
python
p02833
import sys def main(): # sys.stdin=open('input148e.txt') n = int(input()) c = 0 if n % 2 == 1: print(0) exit() r = 10 while r <= n: c += n / r r = r * 5 print(c) if __name__ == '__main__': main()
import sys def main(): # sys.stdin=open('input148e.txt') n = int(input()) c = 0 if n % 2 == 1: print(0) exit() r = 10 while r <= n: c += n // r r = r * 5 print(c) if __name__ == '__main__': main()
[ "expression.operator.arithmetic.change", "expression.operation.binary.change" ]
636,371
636,370
u946433121
python
p02833
n = int(input()) if n % 2 != 0: print(int(0)) else: ans = 0 num = 10 while n > num: ans += (n//num) num *= 5 print(int(ans))
n = int(input()) if n % 2 != 0: print(int(0)) else: ans = 0 num = 10 while n >= num: ans += (n//num) num *= 5 print(int(ans))
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
636,372
636,373
u459150945
python
p02833
import math N = int(input()) ans = 101 if N%2==1:ans=0 else: for i in range(int(math.log(N,5))): ans += N//(5**(i+1)*2) print(ans)
import math N = int(input()) ans = 0 if N%2==1:ans=0 else: for i in range(int(math.log(N+1,5))): ans += N//(5**(i+1)*2) print(ans)
[ "literal.number.integer.change", "assignment.value.change" ]
636,379
636,380
u185948224
python
p02833
# coding: utf-8 # Your code here! import math N = int(input()) init, tmp, ans = N // 10, 50, 0 if N / 2 == N // 2: while True: if N // tmp > 0: ans += N // tmp tmp = tmp * 5 else: break print(init + ans) else: print(0)
# coding: utf-8 # Your code here! import math N = int(input()) init, tmp, ans = N // 10, 50, 0 if N % 2 == 0: while True: if N // tmp > 0: ans += N // tmp tmp = tmp * 5 else: break print(init + ans) else: print(0)
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change", "identifier.replace.remove", "literal.replace.add", "expression.operation.binary.remove" ]
636,383
636,384
u671252250
python
p02833
import math n = int(input()) if n % 2 == 1: print(0) exit() else: ten_list = [] five = 5 while five*2 <= n: ten_list.append(five*2) five = five * 5 count = 0 for f in ten_list: count += math.trunc(n/f) print(int(count))
import math n = int(input()) if n % 2 == 1: print(0) exit() else: ten_list = [] five = 5 while five*2 <= n: ten_list.append(five*2) five = five * 5 count = 0 for f in ten_list: count += n//f print(int(count))
[ "call.remove", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change" ]
636,388
636,389
u323374686
python
p02833
n = int(input()) if n%2 == 1: print(0) exit() else: i = n/2 count = 0 while i > 0: i = i//5 count += i print(count)
n = int(input()) if n%2 == 1: print(0) exit() else: i = n//2 count = 0 while i > 0: i = i//5 count += i print(count)
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
636,390
636,391
u323374686
python
p02833
num = int(input()) result = 0 if num % 2 != 0: result = 0 else: num = num / 2 while(num > 0): result += num // 5 num = num // 5 print(result)
num = int(input()) result = 0 if num % 2 != 0: result = 0 else: num = num // 2 while(num > 0): result += num // 5 num = num // 5 print(result)
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
636,393
636,394
u879266613
python
p02833
n = int(input()) init = 10 res=0 if(n%2==0): while init < n: res += n//init init*=5 print(res)
n = int(input()) init = 10 res=0 if(n%2==0): while init <= n: res += n//init init*=5 print(res)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
636,395
636,396
u291552830
python
p02833
n = int(input()) a = 0 if n % 2 != 0 or n < 10: print(0) else: i = 10 while i < n: a += n//i i *= 5 print(a)
n = int(input()) a = 0 if n % 2 != 0 or n < 10: print(0) else: i = 10 while i <= n: a += n//i i *= 5 print(a)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
636,401
636,402
u898999125
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()))))
[ "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