Created
September 25, 2014 14:48
-
-
Save raven38/747c71f9179d7f0a66d8 to your computer and use it in GitHub Desktop.
Xの下からn行目を抽出する
This file contains 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
int digit(long long X, int n){ | |
long long e = X; | |
rep(i, n) e /= 10; | |
e %= 10; | |
return e; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment