Created
February 5, 2025 22:17
-
-
Save Arnau478/b10fca48b7c25bed86ee0a1365955b29 to your computer and use it in GitHub Desktop.
Competitive programming template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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