CodeMan
Home
Uva
AtCoder
Codechef
Codeforce
Hackerrank
LeetCode
Devskill
TopCoder
Spoj
Algorithm
Python3
Hackerearth
Uri
C++
Data Structure
Sunday, October 13, 2019
Dimik oj - 12 ফ্যাক্টরিয়াল 100 python3 solution
import
math
if
__name__
==
'
__main__
'
:
tc
=
int
(
input
())
for
i
in
range
(tc):
k
=
int
(
input
())
ans
=
0
while
k
>
0
:
ans
+=
k
//
5
k
//=
5
print
(ans)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment