Created
June 10, 2022 12:09
-
-
Save kavania2002/b2e9727bb69ed37cd3dfd49ff74c3aeb to your computer and use it in GitHub Desktop.
Multiples Test Case CP C++ Template/Boiler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
"CP Boiler Plate": { | |
"scope": "cpp", | |
"prefix": "mqtemp", | |
"body": [ | |
"#include <bits/stdc++.h>", | |
"#define ll long long", | |
"#define float double", | |
"#define endl \"\\n\"", | |
"#define forp(i, x, t) for (int i = x; i < t; i++)", | |
"#define forn(i, t) for (int i = t; i >= 0; i--)", | |
"#define all(x) x.begin(), x.end()", | |
"#define rev(x) x.rbegin(), x.rend()", | |
"#define veci vector<int>", | |
"#define vecs vector<string>", | |
"#define YES cout << \"Yes\\n\";", | |
"#define NO cout << \"No\\n\";", | |
"#define pb(x) push_back(x)", | |
"const int mod = 1e9 + 7;\n", | |
"using namespace std;\n", | |
"void solve(){", | |
"\t$1", | |
"}\n", | |
"int32_t main(){", | |
"\tios_base::sync_with_stdio(false);", | |
"\tcin.tie(NULL);", | |
"\tcout.tie(NULL);\n", | |
"\tint t = 1;", | |
"\tcin >> t;", | |
"\twhile(t--){", | |
"\t\tsolve();", | |
"\t}", | |
"\treturn 0;", | |
"}" | |
], | |
"description": "Multiple Test Case Competitive Programming Template" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment