摘要:
也不知道linux叫不叫任务管理器。 Ctrl+Alt+T打开终端,输入top,就会出现一堆东西。 如果有个东西未响应了,就可以输入k+这个进程的pid就可以杀死它。 https://blog.csdn.net/pan_tian/article/details/7734789 阅读全文
摘要:
背会。。。 #!/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 阅读全文
摘要:
本弱鸡已经触发的错误姿势: freoprn("railway.in","r",stdin); freopen("railway.cpp","r",stdin); freopen("railway.out","W",stdout); freopen("railway.in","r",stdout); 阅读全文
摘要:
据说isap比dinic快。 参考:https://www.cnblogs.com/owenyu/p/6852664.html 我太懒了 #include <iostream> #include <cstdio> #include <queue> #include <cstring> #define 阅读全文
摘要:
以前一直偷懒用的封装好的或者py。。。 现在依旧很懒Orz 有高精加,高精减,高精乘低精,高精除低精,比大小,输入输出 cpp struct Big{ int s[10005];int len; Big(){memset(s,0,sizeof s);len=0;} void input() { sc 阅读全文
摘要:
高精,Stein 阅读全文
摘要:
今天写了一下AC自动机的板子,然后TLE了一个点,就很迷 和之前写过的比较了一下发现一个定义的数组是 一个是 因为AC自动机访问的时候是这个样子的 cpp for(int i=0;i 阅读全文
摘要:
定义数组 还是很快的 阅读全文
摘要:
割点模板 为什么我一直没有写。。。 阅读全文
摘要:
$tarjan$缩点+$DAG$上最长路。 求一个以$1$为起点的最长路和一个以$1$为终点的最长路,然后找那个逆行边就行了。 然后这个我$RE$了好久,原因是$vector$的$size()$ $return$的是一个$unsigned\ int$值,如果直接$size() 1$,会让显示的值变成 阅读全文
摘要:
我太弱了。。。 单调队列优化DP+二分答案。 cpp include include include include include include include include include include include include define fo(i,j,k) for(int i= 阅读全文
摘要:
各种模板的集合。 1.手写堆 阅读全文
摘要:
背包。 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 阅读全文