-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcp_snippet.json
57 lines (55 loc) · 1.51 KB
/
cp_snippet.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"": {
"prefix": "@cp",
"body": [
"#include <bits/stdc++.h>",
"using namespace std;",
"#define int long long",
"#define fo(i, z, n) for (int i = z; i < n; i++)",
"#define Fo(i, k, n) for (int i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1)",
"#define mod 1000000007",
"#define si(x) scanf(\"%d\", &x)",
"#define sl(x) scanf(\"%lld\", &x)",
"#define ss(s) scanf(\"%s\", s)",
"#define pi(x) printf(\"%d\\n\", x)",
"#define pl(x) printf(\"%lld\\n\", x)",
"#define ps(s) printf(\"%s\\n\", s)",
"#define deb(x) cout << #x << \"=\" << x << endl",
"#define deb2(x, y) cout << #x << \"=\" << x << \", \" << #y << \"=\" << y << endl",
"#define pb push_back",
"#define mp make_pair",
"#define all(x) x.begin(), x.end()",
"#define clr(x) memset(x, 0, sizeof(x))",
"#define sortall(x) sort(all(x))",
"#define tr(it, a) for (auto it = a.begin(); it != a.end(); it++)",
"#define PI 3.1415926535897932384626",
"#define endl \"\\n\"",
"typedef pair<int, int> pii;",
"typedef vector<int> vi;",
"typedef vector<pii> vpii;",
"",
"",
"int32_t main(){",
"\tios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);",
"\tsrand(chrono::high_resolution_clock::now().time_since_epoch().count());",
"",
"",
"\t#ifndef ONLINE_JUDGE",
"\tfreopen(\"..\/input.txt\", \"r\", stdin);",
"\tfreopen(\"..\/output.txt\", \"w\", stdout);",
"\t#endif",
"",
"",
"\tint t = 0;",
"\tcin >> t;",
"",
"\twhile (t--) {",
"\t",
"\t}",
"",
"\treturn 0;",
"}"
],
"description": ""
}
}