Last active
December 17, 2017 06:30
-
-
Save lightyears1998/025278cbd9ea373c0f825bda88636bac to your computer and use it in GitHub Desktop.
Great Template of Typing Practice of ACMers
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
/* Great template of typing practice for ACMers */ | |
#include <ctime> | |
#include <iostream> | |
using namespace std; | |
typedef long long LL; | |
LL gcd(LL a, LL b) | |
{ | |
return b == 0 ? a : gcd(b, a % b); | |
} | |
LL lcm(LL a, LL b) | |
{ | |
return a * b / gcd(a, b); | |
} | |
int main() | |
{ | |
cout << (double)clock() / CLOCKS_PER_SEC << endl; | |
for (int i = 1; i <= 1e8; i++); | |
cout << (double)clock() / CLOCKS_PER_SEC << endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment