Skip to content

Instantly share code, notes, and snippets.

@Arnau478
Created February 5, 2025 22:17
Show Gist options
  • Save Arnau478/b10fca48b7c25bed86ee0a1365955b29 to your computer and use it in GitHub Desktop.
Save Arnau478/b10fca48b7c25bed86ee0a1365955b29 to your computer and use it in GitHub Desktop.
Competitive programming template
#include <bits/stdc++.h>
using namespace std;
#define rep(name,start,end) for (int name = start; name < (end); name++)
#define IN(type, name) type name; cin >> name
#define LOG(v) cerr << "[line " << __LINE__ << "] " << #v << "=" << (v) << "\n"
#define YN(v) ((v) ? "YES" : "NO")
#define PYN(v) cout << YN(v) << "\n"
void solve();
// ----- //
#define MULTITEST
//#define INTERACTIVE
// ----- //
int main() {
#ifndef INTERACTIVE
ios_base::sync_with_stdio(0);
cin.tie(0);
#endif
#ifdef MULTITEST
IN(int, TT);
while(TT--) {
#endif
solve();
#ifdef MULTITEST
}
#endif
}
void solve() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment