常见技巧
文章平均质量分 51
czysjr
lalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalala
展开
-
关于swap, max 的速度
我一直坚贞地用着这种小的stl, 但是总是有人说它们很慢。 这里测试一下速度 首先是swap #include #include #include #include #include #include using namespace std; int main() { int s = clock(); int a, b, c; for(int i = 1原创 2014-10-27 09:31:38 · 649 阅读 · 0 评论 -
读入优化
int get(){ int ret = 0; char c; while((c = getchar()) != ' ' && c != '\n') ret = ret * 10 + c - '0'; return ret; }有的题就是会卡输入。。原创 2014-10-22 06:58:04 · 364 阅读 · 0 评论