Skip to content

Instantly share code, notes, and snippets.

@lightyears1998
Last active December 17, 2017 06:30
Show Gist options
  • Save lightyears1998/025278cbd9ea373c0f825bda88636bac to your computer and use it in GitHub Desktop.
Save lightyears1998/025278cbd9ea373c0f825bda88636bac to your computer and use it in GitHub Desktop.
Great Template of Typing Practice of ACMers
/* 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