{
// Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and
// description. 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:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Print to console": {
"prefix": "C++",
"body": [
"#include <bits/stdc++.h>",
"// #define int long long",
"#define sto_Mr_Az_orz(p1, p2, p3) ios::sync_with_stdio(p1), cin.tie(p2), cout.tie(p3)",
"#define sto_Fesdred_orz(x, l, r, v) for(int x = l; x <= r; x += v)",
"#define sto_SXJ_orz(x, v) memset(x, v, sizeof x)",
"#define sto_CLY_orz(u, v, M) for(auto v : M[u])",
"#define sto_RSY_orz(u, v, M) M[u].push_back(v), M[v].push_back(u)",
"#define sto_tony2_orz(u, v, w, M) M[u].push_back({v, w}), M[v].push_back({u, w})",
"#define sto_CbrX_orz(A, B) memcpy(A, B, sizeof A)",
"#define sto_Cocoly1990_orz(A, i) cin >> A[i]",
"using namespace std;",
"typedef long long ll;",
"",
"const int $0;",
"",
"signed main() {",
" // freopen(\".in\", \"r\", stdin);",
" // freopen(\".out\", \"w\", stdout);",
" sto_std_orz(false, 0, 0);",
" // fclose(stdin);",
" // fclose(stdout);",
" return 0;",
"}"
],
"description": "A cpp file template."
}
}
OR
#include <bits/stdc++.h>
// #define int long long
#define sto_Mr_Az_orz(p1, p2, p3) ios::sync_with_stdio(p1), cin.tie(p2), cout.tie(p3)
#define sto_Fesdred_orz(x, l, r, v) for(int x = l; x <= r; x += v)
#define sto_SXJ_orz(x, v) memset(x, v, sizeof x)
#define sto_CLY_orz(u, v, M) for(auto v : M[u])
#define sto_RSY_orz(u, v, M) M[u].push_back(v), M[v].push_back(u)
#define sto_tony2_orz(u, v, w, M) M[u].push_back({v, w}), M[v].push_back({u, w})
#define sto_CbrX_orz(A, B) memcpy(A, B, sizeof A)
#define sto_Cocoly1990_orz(A, i) cin >> A[i]
using namespace std;
typedef long long ll;
const int ;
signed main() {
// freopen(".in", "r", stdin);
// freopen(".out", "w", stdout);
sto_std_orz(false, 0, 0);
// fclose(stdin);
// fclose(stdout);
return 0;
}
标签:orz,stdout,int,膜拜,sto,long,神器,模板,define
From: https://www.cnblogs.com/George-Pig-Orz/p/17610286.html