摘要: 标签(空格分隔): 数位DP "题目链接" 记录一下相邻位置的数字,前导零特殊处理 阅读全文
posted @ 2018-05-10 11:56 LJZ_C 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 标签(空格分隔): 数位DP "题目链接" 将ABCD拆成二进制位,则对于一个不等式,差大于2时一定成立,小于 2时一定不成立 cpp include include include using namespace std; typedef long long ll; ll read() { ll 阅读全文
posted @ 2018-05-10 11:52 LJZ_C 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 标签(空格分隔): 数位DP 背包DP 算出有i个幸运数字的方案,然后枚举上限做背包DP cpp include include include using namespace std; typedef long long ll; ll read() { ll x=0,f=1;char ch=get 阅读全文
posted @ 2018-05-10 11:48 LJZ_C 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 标签(空格分隔): 数位DP "题目链接" 开始递增后就不能递减了 cpp include include include using namespace std; typedef long long ll; ll read() { ll x=0,f=1;char ch=getchar(); whi 阅读全文
posted @ 2018-05-10 11:43 LJZ_C 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 标签(空格分隔): 数位DP "题目链接" 枚举第一位不为零的数 cpp include include include using namespace std; typedef long long ll; ll read() { ll x=0,f=1;char ch=getchar(); whil 阅读全文
posted @ 2018-05-10 11:39 LJZ_C 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 标签(空格分隔): 数位DP "题目链接" cpp include include include using namespace std; typedef long long ll; ll read() { ll x=0,f=1;char ch=getchar(); while(ch'9'){if 阅读全文
posted @ 2018-05-10 11:34 LJZ_C 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 标签(空格分隔): 数位DP "題目链接" DP 显然每一位只有选一或选0的情况 cpp include include include using namespace std; typedef long long ll; ll read() { ll x=0,f=1;char ch=getchar 阅读全文
posted @ 2018-05-10 11:07 LJZ_C 阅读(83) 评论(0) 推荐(0) 编辑
摘要: Description You have a rectangular n × m cell board. Some cells are already painted some of k colors. You need to paint each uncolored cell one of the 阅读全文
posted @ 2018-04-12 10:16 LJZ_C 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Description You play a computer game. Your character stands on some level of a multilevel ice cave. In order to move on forward, you need to descend o 阅读全文
posted @ 2018-04-12 09:56 LJZ_C 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Description The mobile application store has a new game called "Subway Roller". The protagonist of the game Philip is located in one end of the tunnel 阅读全文
posted @ 2018-04-11 22:18 LJZ_C 阅读(278) 评论(0) 推荐(0) 编辑