mirror of
https://github.com/Hizenberg469/Algorithms-snippets.git
synced 2026-04-19 22:52:23 +03:00
Runtime snippet added
This commit is contained in:
@@ -40,6 +40,8 @@ using namespace std;
|
|||||||
#define loop(i,s,e,weight) for(auto i = s ; (weight>=0? i <= e : i >= e ) ; i+=weight )
|
#define loop(i,s,e,weight) for(auto i = s ; (weight>=0? i <= e : i >= e ) ; i+=weight )
|
||||||
#define read(n) ll n; cin>>n
|
#define read(n) ll n; cin>>n
|
||||||
#define endl '\n'
|
#define endl '\n'
|
||||||
|
#define ALGO_START clock_t z = clock()
|
||||||
|
#define ALGO_END cout << "RUN TIME : " << fixed << setprecision(6) << ((double)(clock() - z))/CLOCKS_PER_SEC
|
||||||
|
|
||||||
//endl -> cout << '\n' << flush;//hence,slower.
|
//endl -> cout << '\n' << flush;//hence,slower.
|
||||||
//for interactive problem.
|
//for interactive problem.
|
||||||
@@ -170,4 +172,4 @@ int32_t main()
|
|||||||
// cerr << "Run Time : " << ((double)(clock() - z) / CLOCKS_PER_SEC);
|
// cerr << "Run Time : " << ((double)(clock() - z) / CLOCKS_PER_SEC);
|
||||||
//cerr= c error.
|
//cerr= c error.
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user