- 博客(6)
- 收藏
- 关注
转载 Linux Bash对拍
代码: #!/bin/bash while true; do ./rand > input //数据生成器 ./test < input > output //测试程序 ./std < input > stdout //标程 if diff output stdout; then printf "Accepted\n" //正确 else print...
2017-04-13 20:40:00
237
转载 Epic Moments
网络流序号要考虑超级源和超级汇 SAP要记得即使还原当前弧 二分图匹配中v、w要取局部变量 RMQ时记得开大数组 树链剖分记得结点要变为线段树中的下标 转载于:https://www.cnblogs.com/Krew/p/6245948.html...
2017-01-03 18:44:00
159
转载 Sublime Text 配置代码
#include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <vector> #define rep(i,x,y) for (int i=x;i<=y;i++) #define dep(i,y,x) for (...
2016-09-05 22:46:00
206
转载 干货收集
树的Prufer编码及应用: http://www.mengchunlei.net/2015/06/21/%E6%A0%91%E7%9A%84prufer%E7%BC%96%E7%A0%81/ http://blog.youkuaiyun.com/bingshangjiguang/article/details/6016676 BZOJ 1005: http://ydcydcy1.blog.163....
2016-08-16 20:33:00
136
转载 输入输出优化函数
在输入输出量十分大的时候,为了优化I/O时间,可以编写自己的输入输出函数,原理:逐字符输入输出比有cstdio快。 #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <cctype> #define rep...
2016-04-01 20:13:00
172
转载 STL的使用
Vector:不定长数组 Vector是C++里的不定长数组,相比传统数组vector主要更灵活,便于节省空间,邻接表的实现等。而且它在STL中时间效率也很高效:几乎与数组不相上下。 #include <cstdio> #include <cstdlib> #include <algorithm> #include <vector> //...
2016-01-21 15:34:00
145
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅