Skip to content

Instantly share code, notes, and snippets.

@iamsahebgiri
Created March 28, 2022 05:58
Show Gist options
  • Select an option

  • Save iamsahebgiri/f1ea8e2bcd2e8eea228fc65dda56d000 to your computer and use it in GitHub Desktop.

Select an option

Save iamsahebgiri/f1ea8e2bcd2e8eea228fc65dda56d000 to your computer and use it in GitHub Desktop.
C++ code template
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
#define pb push_back
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
using pi = pair<int, int>;
#define f first
#define s second
#define mp make_pair
void setIO(string name = "") {
cin.tie(0)->sync_with_stdio(0);
if (sz(name)) {
freopen((name + ".in").c_str(), "r", stdin);
freopen((name + ".out").c_str(), "w", stdout);
}
}
int main(int argc, char const *argv[]) {
setIO();
int t;
cin >> t;
while (t--) {
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment