摘要: [TOC] 目录 输入$[$ $TOC ]$,即可自动生成目录。 格式为标题1~6的会被自动选为目录。 数学符号 注:代码两侧加 "$" 符号|代码 | $\forall$|\\ $forall$ $\exists$|\\ $exists$ $\leq$ | \\ $leq$ $\geq$ | \\ 阅读全文
posted @ 2018-07-13 21:53 昤昽 阅读(199) 评论(0) 推荐(0) 编辑
摘要: "纪念品分组" 难题不会做,只能来做这种简单题 当年看起来无比难的题现在竟然如此简单了 希望有一天能够看现在的难题也很简单吧. + 贪心 + front 指向最前,rear 指向最后,如果 p[front]+p[rear] $\leq$ w,则归到一组,否则 p[front] 单独一组 cpp in 阅读全文
posted @ 2018-07-13 20:43 昤昽 阅读(102) 评论(0) 推荐(0) 编辑
摘要: "线段覆盖" 那么长时间了,终于~~敢于~~做完这道题了 我说是我懒你信不? + 贪心 + 右端点越往左,对后面的"限制"越小 ~~蒟蒻为数不多的几道一遍A的 水题 ~~ 阅读全文
posted @ 2018-07-13 20:20 昤昽 阅读(127) 评论(0) 推荐(0) 编辑
摘要: "NOIp2017 Cheese" 那么长时间了,,,,后天就要去华师参加夏令营了...然而今天才做出来这道题... ~~就是一个搜索.~~ cpp include include include include using namespace std; const int MAXN=1e3+1; 阅读全文
posted @ 2018-07-13 19:39 昤昽 阅读(69) 评论(0) 推荐(0) 编辑
摘要: "UVa12657" cpp include include const int MAXN=1e5+5; int next[MAXN],pre[MAXN],inv=0; inline int read() { int f=1,x=0;char c=getchar(); while(c'9'){if( 阅读全文
posted @ 2018-07-13 14:55 昤昽 阅读(109) 评论(0) 推荐(0) 编辑