Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
| 162
|
VK Cup 2012 Wild-card Round 1 |
FINISHED |
False |
7200 |
444322223 |
March 18, 2012, 3:10 p.m. |
Problems
You are given a positive integer n. Output the number of trailing zeros in n! (n! denotes a product of integers between 1 and n, inclusive). The only line of input contains an integer n (1 ≤ n ≤ 1000000). Output the number of trailing zeros in n!. In the first sample 6! = 720. In the second sample 24! = 620448401733239439360000. |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
3669281 |
Omelianenko |
F |
May 4, 2013, 1:24 p.m. |
OK |
Factor |
TESTS |
46 |
109 |
0 |
|
2100 |
|
3818182 |
yermak0v |
F |
June 3, 2013, 9:33 a.m. |
OK |
Factor |
TESTS |
46 |
125 |
0 |
|
2100 |
|
4554350 |
DarthShrine |
F |
Sept. 25, 2013, 10:42 a.m. |
OK |
Factor |
TESTS |
46 |
156 |
512000 |
|
2100 |
|
1504923 |
ddrone |
F |
April 8, 2012, 7:05 p.m. |
OK |
Factor |
TESTS |
46 |
170 |
185856000 |
|
2100 |
|
1406394 |
watashi |
F |
March 24, 2012, 7:23 p.m. |
OK |
Factor |
TESTS |
46 |
170 |
185856000 |
|
2100 |
|
1379924 |
dlevshunov |
F |
March 19, 2012, 6:49 p.m. |
OK |
Factor |
TESTS |
46 |
170 |
185856000 |
|
2100 |
|
1378838 |
Jzxc |
F |
March 19, 2012, 9:06 a.m. |
OK |
Factor |
TESTS |
46 |
170 |
185856000 |
|
2100 |
|
1378824 |
ZhouYuChen |
F |
March 19, 2012, 8:54 a.m. |
OK |
Factor |
TESTS |
46 |
170 |
185856000 |
|
2100 |
|
1378452 |
Archon.JK |
F |
March 19, 2012, 4:33 a.m. |
OK |
Factor |
TESTS |
46 |
170 |
185856000 |
|
2100 |
|
1377835 |
Alisafe |
F |
March 18, 2012, 6:12 p.m. |
OK |
Factor |
TESTS |
46 |
170 |
185856000 |
|
2100 |
remove filters
Back to search problems