Skip to content

Instantly share code, notes, and snippets.

@raven38
Created September 25, 2014 14:48
Show Gist options
  • Save raven38/747c71f9179d7f0a66d8 to your computer and use it in GitHub Desktop.
Save raven38/747c71f9179d7f0a66d8 to your computer and use it in GitHub Desktop.
Xの下からn行目を抽出する
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