
搜索剪枝
guoshiyuan484
这个作者很懒,什么都没留下…
展开
-
bzoj3074(超时了!!!)
这份代码超时了,不过是我辛苦写出来的,一次纪念!!用到了分块的思想,然后注意选最小值,还有一个就是每次update的时候你只需要一次就好了,因为所在行和列都没有那个更新的数。#include<iostream>#include<cstdio>#include<algorithm>using namespace std;int basr[90][10], ...原创 2018-06-11 11:55:40 · 203 阅读 · 0 评论 -
bzoj1306
照这别人的题解写了一遍。。。囧。。。。慢的要死。。。。#include#include#includeusing namespace std;typedef pairp;p com[34];int n,tot=1;int nscore[20], gscore[20];int leftt[20];int kind[4] = { 3, 1, 0, 0 };bool check(in原创 2017-10-02 16:41:40 · 315 阅读 · 0 评论