-
Notifications
You must be signed in to change notification settings - Fork 0
/
CP-Template.json
44 lines (36 loc) · 1.49 KB
/
CP-Template.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
{
"CP TestCase": {
"scope": "cpp",
"prefix": "cpt",
"body": [
"#include<bits/stdc++.h>",
"using namespace std;\n",
"const int MOD = 1e9 + 7;",
"const double PI = acos(-1.0);\n\n",
"#define FAST_IO ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr)",
"#define TESTCASES int t; cin>>t; while(t--)",
"#define endl ('\\n')",
"#define RETURN return 0;\n",
"#define int long long",
"#define float double\n",
"#define fill(arr,val) memset(arr,val,sizeof(arr))",
"#define sz(x) (int((x).size()))\n",
"template<typename T> T gcd(T a, T b) { return(b?__gcd(a,b):a); }",
"template<typename T> T lcm(T a, T b) { return(a*(b/gcd(a,b))); }",
"template<typename T> T expo(T e, T n) { T x=1,p=e;while(n){if(n&1)x=x*p;p=p*p;n>>=1; } return x; }",
"template<typename T> T power(T e, T n, T m) { T x=1,p=e;while(n){ if(n&1)x=mul(x,p,m);p=mul(p,p,m);n>>=1; }return x; }\n\n\n",
"void SOLVE() {",
"\n\t/*Write the Solution Here*/",
"\t $0",
"}\n\n\n",
"int32_t main()",
"{",
"\tFAST_IO",
"\tTESTCASES",
"\t\tSOLVE();",
"\tRETURN",
"}"
],
"description": "Competitive Coding Template"
}
}