Created
August 13, 2014 09:50
-
-
Save sota1235/34c930d9c545a93c6b89 to your computer and use it in GitHub Desktop.
AOJ #0052
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # AOJ | |
| # 0052 | |
| # python3 | |
| import math | |
| while True: | |
| n = int(input()) | |
| if n == 0: break | |
| fac = str(math.factorial(n)) | |
| print(len(fac) - len(fac.rstrip('0'))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment