{
"Head": {
"scope": "cpp",
"prefix": "ac",
"body": [
"#include <bits/stdc++.h>",
"#define rep(i, a, n) for (int i = a; i <= n; ++i)",
"#define per(i, a, n) for (int i = n; i >= a; --i)",
"#ifdef LOCAL",
"#include \"Print.h\"",
"#define de(...) W('[', #__VA_ARGS__,\"] =\", __VA_ARGS__)",
"#else",
"#define de(...)",
"#endif",
"using namespace std;",
"typedef long long ll;",
"const int maxn = 2e5 + 5;",
"int case_Test() {",
" $1",
" return 0;",
"}",
"int main() {",
"#ifdef LOCAL",
" freopen(\"in.in\", \"r\", stdin);",
" freopen(\"out.out\", \"w\", stdout);",
" clock_t start = clock();",
"#endif",
" int T = 1;",
" scanf(\"%d\", &T);",
" while (T--) case_Test();",
"#ifdef LOCAL",
" printf(\"Time used: %.3lfs\\n\", (double)(clock() - start) / CLOCKS_PER_SEC);",
"#endif",
" return 0;",
"}",
],
"description": "front file"
},
"powmod": {
"scope": "cpp",
"prefix": "powmod",
"body": [
"ll powmod(ll a, ll b) {",
" ll ans = 1;",
" while (b) {",
" if (b & 1) ans = ans * a % mod;",
" b >>= 1;",
" a = a * a % mod;",
" }",
" return ans;",
"}",
],
"description": "front file"
},
"LOCAL": {
"scope": "cpp",
"prefix": "LOCAL",
"body": [
"#ifdef LOCAL",
" $1",
"#endif",
],
},
}
c++代码块(模板)
猜你喜欢
转载自blog.csdn.net/weixin_43860866/article/details/118801095
今日推荐
周排行