From 47fba30140142b01536c08d3505c757f6ebb785d Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Tue, 23 Apr 2024 23:48:41 +0600 Subject: [PATCH] update template and debug --- CPTemp.cpp | 10 +++++++--- debug.h | 7 +------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/CPTemp.cpp b/CPTemp.cpp index 7e589ed..9bec91d 100644 --- a/CPTemp.cpp +++ b/CPTemp.cpp @@ -1,6 +1,10 @@ #include -#include "debug.h" using namespace std; +#ifdef ONLINE_JUDGE + #define dbg(...) +#else + #include "debug.h" +#endif #define ll long long #define endl '\n' #define all(x) x.begin(), x.end() @@ -12,13 +16,13 @@ ll pow(ll x,ll y,ll m=1e9+7){ll ans=1;x%=m;while(y){if(y&1)ans=(ans*x)%m;x=(x*x) void solve() { - + } signed main() { FAST; int TC = 1; - //cin >> TC; + // cin >> TC; while (TC--) solve(); } \ No newline at end of file diff --git a/debug.h b/debug.h index 1797589..fd0ce21 100644 --- a/debug.h +++ b/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 dbgArr(...) std::cerr << __LINE__ << ": [", __DEBUG_UTIL__::printerArr(#__VA_ARGS__, __VA_ARGS__) -#endif \ No newline at end of file +#define dbgArr(...) std::cerr << __LINE__ << ": [", __DEBUG_UTIL__::printerArr(#__VA_ARGS__, __VA_ARGS__) \ No newline at end of file