Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Template

source: NA

CPP template.

#include <bits/stdc++.h>

using namespace std;

#define FIO                                                        \
  ios_base::sync_with_stdio(0); /* false */                        \
  cin.tie(0);                   /* nullptr */                      \
  cout.tie(0);                  /* nullptr */

typedef long long lli;
typedef long double ld;

#ifndef ONLINE_JUDGE
#define perr(x) cerr << #x << " " << (x) << endl
#else
#define perr(x) 0
#endif // !ONLINE_JUDGE

#define sz(c) c.size()
#define fora(i, a, b) for(lli i = (a); (i) < (b); ++i) // [a -> b)
#define ford(i, a, b) for(lli i = (a); (i)-- > (b);)   // [b <- a)

typedef lli num;

int main() {
  FIO;
  return 0;
}