摘要:
去年第一次做硬是做了两三天都没过,我也不记得我当时到底是用了什么傻逼做法,总之最后三个点就是超时。今年上半年,大概五个月前又做了一次,最后看了题解。刚因为打了关押罪犯,就重做了一遍这题,总算没有以前那种折磨的感觉了。 1 #include<iostream> 2 #include<cstdio> 3 阅读全文
posted @ 2017-07-29 21:52
Darkins
阅读(1283)
评论(0)
推荐(2)
摘要:
两个监狱,1~n 是一个,n+1~2n 是另一个。 1 #include<algorithm> 2 #include<iostream> 3 #include<cstdio> 4 using namespace std; 5 const int N=40086,M=100086; 6 struct 阅读全文
posted @ 2017-07-29 21:00
Darkins
阅读(165)
评论(0)
推荐(0)
摘要:
一看到就写了个(STL)优先队列,然后从第一秒开始贪,结果样例就错了。后来改成了从最后一秒贪起,还是过了。 1 #include<algorithm> 2 #include<iostream> 3 #include<cstdio> 4 #include<queue> 5 using namespac 阅读全文
posted @ 2017-07-29 19:51
Darkins
阅读(128)
评论(0)
推荐(0)

浙公网安备 33010602011771号