关于我的OI代码缺省源

113 字
1 分钟
关于我的OI代码缺省源
#include<iostream>
#include<string>
#include<string.h>
#include<vector>
#include<queue>
#include<map>
#include<stack>
#include<set>
#include<functional>
#include<utility>
#include<algorithm>
#include<cmath>
#include<climits>
#include<tuple>
#include<numeric>
#include<any>
#include<bitset>
#define int long long
using namespace std;
const int N=1e5+10;
signed main(){
cin.tie(nullptr)->ios::sync_with_stdio(false);
return 0;
}

每行的作用介绍:#

火车头:#

包含了一些常用STL,如bitset,sort,queue,vector,stringbitset,sort,queue,vector,string

#define int long long:#

虽然是坏习惯但是我真的懒得打那么多long long了,被卡int了还得手动改半天

cin.tie(nullptr)->ios::sync_with_stdio(false);:#

作用等同于

ios::sync_with_stdio(false);
std::cin.tie(nullptr);

防止被卡常(因为我不会写快读和快写)

支持与分享

如果这篇文章对你有帮助,欢迎分享给更多人或打赏支持!

打赏
关于我的OI代码缺省源
https://azx.xn--0iv.gay/posts/myoicppfile/
作者
WanFoxAZX
发布于
2026-08-24
许可协议
CC BY-NC-SA 4.0

评论区

Profile Image of the Author
WanFoxAZX
Hello, I'm AZX.
公告
Welcome!
分类
标签
最新动态

还没有发布动态

更多动态
站点统计
文章
10
动态
0
分类
6
标签
5
总字数
2,549
运行时长
0
最后活动
0 天前
站点信息
构建平台
Netlify CI
博客版本
Firefly v6.15.5
文章许可
CC BY-NC-SA 4.0