11 2014 档案
摘要:AA monster is attacking the Cyberland!Master Yang, a braver, is going to beat the monster. Yang and the monster each have 3 attributes: hitpoints (HP)...
阅读全文
摘要:a.给俩数, 求他俩之间二进制数中1最多的,有多个输出最小的;贪心,从小到大加能加就加,最后可能碰到一个不能加了但是当前数比l小,那么就加上这个数,然后从大到小,能减就减,见到符合条件#include#include#includeusing namespace std;int main(){ ...
阅读全文
摘要:题意给一棵树,每个点有权值,求出有多少子树满足最大最小权值差#include#includeusing namespace std;const long long maxa = 2005;long long a[maxa];long long edge[maxa][maxa];long long o...
阅读全文
摘要:前天做了一个题,就是个简单的状压记忆化搜索,但是debuge了俩小时,给我整的快吐血了,各种不可思议的错误,我都要怀疑是不是电脑有毛病了,后来发现数组开小了,看来以后遇到不可思议的错误就要检查数组开没开小。。。。。
阅读全文

浙公网安备 33010602011771号