![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小工具
zhujunhuan?
全宇宙第一帅,第一强,第一牛,第一(此处省略100000000000000000000000000000000个夸人的词语)
展开
-
c++对拍(考场必备)
在考场上你不能肯定自己的代码正确,你可以写一个暴力程序,与你的代码进行对拍,以验证你的代码的正确性。(显然暴力程序不能写错)1.首先,你要将你准备提交评测的程序,名为sol.cpp。将改程序从cin.in中读取输入数据,并将答案输出到sol.out中2.准备你的暴力的程序,名为bf.cpp。将改程序从cin.in中读取输入数据,并将答案输出到bf.out中3.写一个随机生成程序的代码,名为make.cpp,将随机数据输出到cin.in中。4.你现在要写一个脚本,循环运行:运行make.exe,运行so原创 2022-07-09 20:44:43 · 984 阅读 · 0 评论 -
c++快读快写
快读inline int read () { int s = 0, f = 1; char ch = getchar (); while (ch < '0' || ch > '9') { if (ch == '-') f = -1; ch = getchar (); } while (ch >= '0' && ch <= '9') { s = s * 10 + ch - '0'; ch = getchar (); } return原创 2022-04-28 15:38:04 · 973 阅读 · 0 评论 -
c++缺省源
缺省源是个好东西,它会在你新建一个源代码是插入制定的代码,设置教学:就好了现在给大家推荐另一套很好用的缺省源#include<bits/stdc++.h>#define LL long long#define PP pair<int, int>using namespace std;/*struct Edge { int next; int to; int w;} edge[];int cnt;int head[];void add (in原创 2022-02-25 20:35:52 · 2104 阅读 · 3 评论