C++代码模板
代码
//Author: Qiansui
//Time: 2025-10-24 14:39:41
#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define debug(x) cout << #x << " = " << x << '\n';
#define debug2(x, y) cout << #x << " = " << x << " " << #y << " = " << y << '\n';
using namespace std;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<ull, ull> pull;
typedef pair<double, double> pdd;
const int inf = 0x3f3f3f3f, N = 2e5 + 5;
const ll INF = 0x3f3f3f3f3f3f3f3f, mod = 998244353;
void solve(){
return ;
}
signed main(){
// freopen("in.txt", "r", stdin);
// freopen("out.txt", "w", stdout);
std::ios::sync_with_stdio(false), std::cin.tie(nullptr), std::cout.tie(nullptr);
int _ = 1;
// std::cin >> _;
while(_ --){
solve();
}
return 0;
}
// ___ _ _
// / _ \ (_) __ _ _ __ ___ _ _ (_)
// | | | | | | / _` | | '_ \ / __| | | | | | |
// | |_| | | | | (_| | | | | | \__ \ | |_| | | |
// \__\_\ |_| \__,_| |_| |_| |___/ \__,_| |_|
vs code 缺省源
https://blog.csdn.net/baidu_37937523/article/details/141717776
{
// 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:
"C++": {
"prefix": "#c++",
"body": [
"//Author: Qiansui",
"//Time: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}",
"#include<bits/stdc++.h>",
"#define ll long long",
"#define ull unsigned long long",
"#define debug(x) cout << #x << \" = \" << x << '\\n';",
"#define debug2(x, y) cout << #x << \" = \" << x << \" \" << #y << \" = \" << y << '\\n';",
"",
"using namespace std;",
"typedef pair<int, int> pii;",
"typedef pair<ll, ll> pll;",
"typedef pair<ull, ull> pull;",
"typedef pair<double, double> pdd;",
"",
"const int inf = 0x3f3f3f3f, N = 2e5 + 5;",
"const ll INF = 0x3f3f3f3f3f3f3f3f, mod = 998244353;",
"",
"void solve(){",
" ",
" return ;",
"}",
"",
"signed main(){",
" // freopen(\"in.txt\", \"r\", stdin);",
" // freopen(\"out.txt\", \"w\", stdout);",
" std::ios::sync_with_stdio(false), std::cin.tie(nullptr), std::cout.tie(nullptr);",
" int _ = 1;",
" // std::cin >> _;",
" while(_ --){",
" solve();",
" }",
" return 0;",
"}",
"// ___ _ _ ",
"// / _ \\ (_) __ _ _ __ ___ _ _ (_)",
"// | | | | | | / _` | | '_ \\ / __| | | | | | |",
"// | |_| | | | | (_| | | | | | \\__ \\ | |_| | | |",
"// \\__\\_\\ |_| \\__,_| |_| |_| |___/ \\__,_| |_|",
],
"description": "description"
}
}
本文来自博客园,作者:Qiansui,转载请注明原文链接:https://www.cnblogs.com/Qiansui/p/16801519.html

浙公网安备 33010602011771号