摘要: 也不知道linux叫不叫任务管理器。 Ctrl+Alt+T打开终端,输入top,就会出现一堆东西。 如果有个东西未响应了,就可以输入k+这个进程的pid就可以杀死它。 https://blog.csdn.net/pan_tian/article/details/7734789 阅读全文
posted @ 2018-10-22 16:04 SWHsz 阅读(868) 评论(0) 推荐(1) 编辑
摘要: 背会。。。 #!/bin/bash i=0 while true ;do ./maker > data.in ./a <data.in> data.out ./b <data.in> data.ans if diff data.out data.ans ;then printf "AC\n" els 阅读全文
posted @ 2018-10-14 16:35 SWHsz 阅读(352) 评论(0) 推荐(1) 编辑
摘要: 本弱鸡已经触发的错误姿势: freoprn("railway.in","r",stdin); freopen("railway.cpp","r",stdin); freopen("railway.out","W",stdout); freopen("railway.in","r",stdout); 阅读全文
posted @ 2018-09-19 20:48 SWHsz 阅读(811) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2018-07-20 19:10 SWHsz 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 据说isap比dinic快。 参考:https://www.cnblogs.com/owenyu/p/6852664.html 我太懒了 #include <iostream> #include <cstdio> #include <queue> #include <cstring> #define 阅读全文
posted @ 2020-09-25 10:40 SWHsz 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 以前一直偷懒用的封装好的或者py。。。 现在依旧很懒Orz 有高精加,高精减,高精乘低精,高精除低精,比大小,输入输出 cpp struct Big{ int s[10005];int len; Big(){memset(s,0,sizeof s);len=0;} void input() { sc 阅读全文
posted @ 2018-11-06 17:33 SWHsz 阅读(277) 评论(1) 推荐(0) 编辑
摘要: 高精,Stein 阅读全文
posted @ 2018-11-06 17:18 SWHsz 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 今天写了一下AC自动机的板子,然后TLE了一个点,就很迷 和之前写过的比较了一下发现一个定义的数组是 一个是 因为AC自动机访问的时候是这个样子的 cpp for(int i=0;i 阅读全文
posted @ 2018-11-05 21:49 SWHsz 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 定义数组 还是很快的 阅读全文
posted @ 2018-11-05 09:20 SWHsz 阅读(5005) 评论(1) 推荐(3) 编辑
摘要: 割点模板 为什么我一直没有写。。。 阅读全文
posted @ 2018-10-29 09:53 SWHsz 阅读(167) 评论(0) 推荐(0) 编辑
摘要: $tarjan$缩点+$DAG$上最长路。 求一个以$1$为起点的最长路和一个以$1$为终点的最长路,然后找那个逆行边就行了。 然后这个我$RE$了好久,原因是$vector$的$size()$ $return$的是一个$unsigned\ int$值,如果直接$size() 1$,会让显示的值变成 阅读全文
posted @ 2018-10-29 08:57 SWHsz 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 我太弱了。。。 单调队列优化DP+二分答案。 cpp include include include include include include include include include include include include define fo(i,j,k) for(int i= 阅读全文
posted @ 2018-10-25 21:43 SWHsz 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 各种模板的集合。 1.手写堆 阅读全文
posted @ 2018-10-25 20:06 SWHsz 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 背包。 cpp include include include include include include include include include include include include define fo(i,j,k) for(int i(j);i=k;i ) define g 阅读全文
posted @ 2018-10-25 11:33 SWHsz 阅读(170) 评论(0) 推荐(0) 编辑