Last active
October 21, 2018 13:08
-
-
Save ashiato45/ca2ecbc7bb7954568ac5a3bc9bfd4507 to your computer and use it in GitHub Desktop.
Macro to write 10eN for competitive programming
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
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