摘要: 和神奇dp的战斗 还有容斥原理 终于get到了 阅读全文
posted @ 2018-07-20 16:16 Thheoo 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 我. 调了快一天 因为一个位置错误的感叹号 :-) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 狗dp 阅读全文
posted @ 2018-07-15 16:47 Thheoo 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 水 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #include<cmath> using namespace std; int n,m,t; long long ans=0; int x[100 阅读全文
posted @ 2018-07-13 19:51 Thheoo 阅读(164) 评论(0) 推荐(0) 编辑
摘要: emm 一开始并没有get到点 水了一天 现在还在水博客emm 颓废 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; long long vis[2050], 阅读全文
posted @ 2018-07-13 19:48 Thheoo 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 天冷极了,下着雪,又快黑了。这是一年的最后一天——大年夜。在这又冷又黑的晚上,一个乖巧的小女孩在机房里调试程序。她从家里出来的时候还穿着一件外套,但是有什么用呢?那是一双很大的外套——那么大,不知是哪一年买的。为了敲代码的时候更方便,她把它脱掉了。同学们常常嘲笑她,因为外套上留下了她梦中写下的伪代码 阅读全文
posted @ 2018-07-12 20:03 Thheoo 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 天冷极了,下着雪,又快黑了。这是NOIP的前夜。在这又冷又黑的晚上,一个衣衫破烂的小女孩在机房敲着代码。她从班里逃出来的时候还拿着一本算导,但是有什么用呢?那是一本很破旧的书——那么大,一向是她妈妈垫桌角的。她默写SPFA的时候,年级主任突然冲进机房,吓得她把算导都丢掉了。书叫一个学数竞捡起来拿着跑 阅读全文
posted @ 2018-07-12 19:58 Thheoo 阅读(126) 评论(0) 推荐(0) 编辑
摘要: emm一开始将++cnt敲成cnt++ 就很委屈 一个拓扑排序而已 Description 挑竹签——小时候的游戏 挑竹签——小时候的游戏 夏夜,早苗和诹访子在月光下玩起了挑竹签这一经典的游戏。挑竹签,就是在桌上摆上一把竹签,每次从最上层挑走一根竹签。如果动了其他的竹签,就要换对手来挑。在所有的竹签 阅读全文
posted @ 2018-07-12 15:33 Thheoo 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 一如既往的dp emm调了很久 还是我太low了 本来想不瞅题解,自己yy出来 然而失败了 难过 1 #include<cstdio> 2 #include<cstring> 3 #include<iostream> 4 #include<algorithm> 5 using namespace s 阅读全文
posted @ 2018-07-11 22:19 Thheoo 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 一个没有被我成功证明的 贪心 但是 ac了的 别人排序都是排终点.但我的排终点错了emm排起点才对qvq 有没有人友情看看怎么证(没有 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using na 阅读全文
posted @ 2018-07-11 20:29 Thheoo 阅读(128) 评论(16) 推荐(0) 编辑
摘要: 日常玄学dp 1 #include<cstdio> 2 #include<cstring> 3 #include<iostream> 4 #include<algorithm> 5 using namespace std; 6 int n,k,judge[1000],num[1000]; 7 lon 阅读全文
posted @ 2018-07-11 15:19 Thheoo 阅读(118) 评论(0) 推荐(0) 编辑