Skip to content

Instantly share code, notes, and snippets.

@ashiato45
Last active October 21, 2018 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashiato45/ca2ecbc7bb7954568ac5a3bc9bfd4507 to your computer and use it in GitHub Desktop.
Save ashiato45/ca2ecbc7bb7954568ac5a3bc9bfd4507 to your computer and use it in GitHub Desktop.
Macro to write 10eN for competitive programming
constexpr int ORD(int n){
int res = 1;
for(int i=0; i < n; i++){
res *= 10;
}
res++;
return res;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment