{
"Print to console": {
"prefix": "cpp",
"body": [
"#include <bits/stdc++.h>",
"#define ll long long",
"#define gc() (p1 == p2 and (p2 = (p1 = buf) + fread(buf, 1, S, stdin), p1 == p2) ? EOF : *p1++)",
"using namespace std;",
"const int N = 1e5 + 5, S = 1 << 25, p = 1e9 + 7, inf = 2e9;",
"const ll INF = 2e18;",
"char buf[S], *p1, *p2;",
"inline ll rd(){",
" ll x = 0, f = 1; char c = gc();",
" while(! isdigit(c)){if(c == '-')f = - f; c = gc();}",
" while(isdigit(c)){x = (x << 3) + (x << 1) + (c ^ 48); c = gc();}",
" return x * f;",
"}",
"void fileio(const string &s){",
" freopen((s + \".in\").c_str(), \"r\", stdin);",
" freopen((s + \".out\").c_str(), \"w\", stdout);",
"}",
"",
"inline int Add(int x, int y){return x - p + y >= 0 ? x - p + y : x + y;}",
"inline int Sub(int x, int y){return x < y ? x - y + p : x - y;}",
"inline int Mul(int x, int y){return 1ll * x * y % p;}",
"inline int Mo(ll x){return (x % p + p) % p;}",
"inline int qmi(int x, int y){int res = 1; for(; y; y >>= 1, x = Mul(x, x))if(y & 1)res = Mul(res, x); return res;}",
"",
"int n, a[N];",
"",
"const string FileName = \"\";",
"signed main(){",
" fileio(FileName);",
" return 0;",
"}",
],
"description": "c++ 模板"
}
}
剪贴板
剪贴板 js1ia07w
剪贴板信息
剪贴板信息
- 收录
- 更新