摘要: A.UVALive 6161 去迟了,队友已经开始写了,应该是个水题,贴个队友代码#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;... 阅读全文
posted @ 2014-08-09 23:53 Gemmeg 阅读(213) 评论(0) 推荐(0) 编辑
摘要: A.UVALive 6661 题意从1~N中选k个数,和为s的方案数 第一眼搜索,估计错状态量,又去yydp...浪费大量时间 数据很小的,状态数都不会超过2^N...直接dfs就过了//state二进制表示选取的数#include #include #include #include usi... 阅读全文
posted @ 2014-08-09 23:22 Gemmeg 阅读(143) 评论(0) 推荐(0) 编辑