Skip to content

Instantly share code, notes, and snippets.

@Adefful
Last active March 14, 2021 14:54
Show Gist options
  • Save Adefful/cf1115dd3c67daca097ef06583d9c4e1 to your computer and use it in GitHub Desktop.
Save Adefful/cf1115dd3c67daca097ef06583d9c4e1 to your computer and use it in GitHub Desktop.
Olympiad programming Snippet (Сниппет для олимпиадного, спортивного программирования)
#include <bits/stdc++.h>
using namespace std;
#define INF INT_MAX
#define INFLL LONG_LONG_MAX
#define F first
#define S second
#define pb push_back
#define all(a) a.begin(),a.end()
#define rep(i,a,b) for(auto i=(a); i<(b); i++)
#define dec(i,n,a) for(auto i=(n); i>=(a); i--)
#define each(a,x) for (auto& a: x)
#define nl '\n'
#define sz(s) ((int)(s.size()))
#define inp(a) for(int i_=0;i_<a.size();i_++)cin>>a[i_]
#define prt(a) for(int i_=0;i_<a.size();i_++)cout << a[i_] << ' '
#define _ auto
#define Yes cout << "Yes" << nl
#define No cout << "No" << nl
#define YES cout << "YES" << nl
#define NO cout << "NO" << nl
#define inc int t_; cin >> t_; while(t_--)
#define vec vector
//typedef __int128_t ll128;
typedef long long ll;
typedef string str;
typedef long double ld;
typedef uint64_t ull;
typedef vec<bool> vb;
typedef map<int,int> mii;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef vec<int> vi;
typedef vec<ll> vll;
typedef vec<str> vs;
typedef vec<vec<int>> vvi;
typedef vec<vec<ll>> vvll;
typedef vec<vec<str>> vvs;
//#define _DEBUG
void solve() {
}
int main() {
ios_base::sync_with_stdio(0); cin.tie(0);cout.tie(0);
#ifdef _DEBUG
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
inc solve();
return 0;
}
@Adefful
Copy link
Author

Adefful commented Mar 14, 2021

убрать typedef __int128_t ll128;
ПОставить скобку в sz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment