-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdebugging-template.cpp
More file actions
80 lines (67 loc) · 2.45 KB
/
debugging-template.cpp
File metadata and controls
80 lines (67 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#pragma GCC optimize "trapv"
#include <bits/stdc++.h>
using namespace std ;
using namespace std::chrono;
#define ll long long
#define pb push_back
#define yes cout << "YES"
#define no cout << "NO"
#define all(x) (x).begin(),(x).end()
const long long int mod = 1e9 + 7 ;
const long long int INF = 1e18 ;
void readvec(vector<ll> &v){
for(int i = 0 ; i < v.size() ; i++){
cin >> v[i] ;
}
}
void printvec(vector<ll> &v){
for(int i = 0 ; i < v.size() ; i++){
cout << v[i] << " ";
}
}
//For debugging :
#ifndef ONLINE_JUDGE
#define debug(x) cerr << #x <<" "; _print(x); cerr << endl;
#else
#define debug(x)
#endif
void _print(long long t) {cerr << t;}
void _print(int t) {cerr << t;}
void _print(string t) {cerr << t;}
void _print(char t) {cerr << t;}
void _print(long double t) {cerr << t;}
void _print(double t) {cerr << t;}
void _print(unsigned long long t) {cerr << t;}
template <class T, class V> void _print(pair <T, V> p);
template <class T> void _print(vector <T> v);
template <class T> void _print(set <T> v);
template <class T, class V> void _print(map <T, V> v);
template <class T> void _print(multiset <T> v);
template <class T, class V> void _print(pair <T, V> p) {cerr << "{"; _print(p.first); cerr << ","; _print(p.second); cerr << "}";}
template <class T> void _print(vector <T> v) {cerr << "[ "; for (T i : v) {_print(i); cerr << " ";} cerr << "]";}
template <class T> void _print(set <T> v) {cerr << "[ "; for (T i : v) {_print(i); cerr << " ";} cerr << "]";}
template <class T> void _print(multiset <T> v) {cerr << "[ "; for (T i : v) {_print(i); cerr << " ";} cerr << "]";}
template <class T, class V> void _print(map <T, V> v) {cerr << "[ "; for (auto i : v) {_print(i); cerr << " ";} cerr << "]";}
void solve(){
ll n ; cin >> n ;
cout << n ;
}
int main(){
auto start = high_resolution_clock::now();
ios::sync_with_stdio(false);
cin.tie(0);
#ifndef ONLINE_JUDGE
freopen("Error.txt", "w", stderr);
#endif
int tests = 1 , test_case = 1;
// cin >> tests ;
while(tests--){
cout << setprecision(15) << fixed ;
solve() ;
cout << '\n' ;
// cout << "Case #" << test_case << ": " << ans << '\n' ;
}
auto stop = high_resolution_clock::now();
auto duration = duration_cast<microseconds>(stop - start);
cerr << "\n\nTime taken : " << fixed << duration.count() / 1000000.0 << "seconds" << "\n";
}