update template and debug
This commit is contained in:
parent
57e36ea841
commit
47fba30140
@ -1,6 +1,10 @@
|
|||||||
#include<bits/stdc++.h>
|
#include<bits/stdc++.h>
|
||||||
#include "debug.h"
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
#ifdef ONLINE_JUDGE
|
||||||
|
#define dbg(...)
|
||||||
|
#else
|
||||||
|
#include "debug.h"
|
||||||
|
#endif
|
||||||
#define ll long long
|
#define ll long long
|
||||||
#define endl '\n'
|
#define endl '\n'
|
||||||
#define all(x) x.begin(), x.end()
|
#define all(x) x.begin(), x.end()
|
||||||
@ -19,6 +23,6 @@ signed main()
|
|||||||
{
|
{
|
||||||
FAST;
|
FAST;
|
||||||
int TC = 1;
|
int TC = 1;
|
||||||
//cin >> TC;
|
// cin >> TC;
|
||||||
while (TC--) solve();
|
while (TC--) solve();
|
||||||
}
|
}
|
5
debug.h
5
debug.h
@ -103,10 +103,5 @@ namespace __DEBUG_UTIL__
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
#ifdef ONLINE_JUDGE
|
|
||||||
#define dbg(...)
|
|
||||||
#define dbgArr(...)
|
|
||||||
#else
|
|
||||||
#define dbg(...) std::cerr << __LINE__ << ": [", __DEBUG_UTIL__::printer(#__VA_ARGS__, __VA_ARGS__)
|
#define dbg(...) std::cerr << __LINE__ << ": [", __DEBUG_UTIL__::printer(#__VA_ARGS__, __VA_ARGS__)
|
||||||
#define dbgArr(...) std::cerr << __LINE__ << ": [", __DEBUG_UTIL__::printerArr(#__VA_ARGS__, __VA_ARGS__)
|
#define dbgArr(...) std::cerr << __LINE__ << ": [", __DEBUG_UTIL__::printerArr(#__VA_ARGS__, __VA_ARGS__)
|
||||||
#endif
|
|
Loading…
Reference in New Issue
Block a user