Created
August 12, 2016 05:50
-
-
Save TheoKlein/4fb7883a9f83533763bf2b04ee4c3f34 to your computer and use it in GitHub Desktop.
ZeroJudge d122
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
| #include <iostream> | |
| using namespace std; | |
| int main() { | |
| long int n; | |
| while(cin >> n){ | |
| int count = 0; | |
| while(n > 4){ | |
| n -= n % 5; | |
| count += n / 5; | |
| n /= 5; | |
| } | |
| cout << count << endl; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment