![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
文章平均质量分 63
CatDsy
一只慵懒的喵
展开
-
2017 WUST校赛 1009 LL&a+b-c
LL is a ACMER. One day he find that the number 2 can be expressed as 1-2+3,which can also be expressed as 1+2+3-4 and so on. The number 5 can be expressed as 1-2-3+4+5, which can also be expresse原创 2017-05-23 20:41:15 · 279 阅读 · 0 评论 -
Codeforces Round #425 B
题目链接:http://codeforces.com/contest/832/problem/B题意: 首行给你一些小写字母,good character 第二行给你一段A字符串,含有小写字母 ? * ?只能匹配一个good character * 匹配空串和一段非good character 再给你n个字符串,问各个字符串是否能和A串匹配题解: 按照题意模拟就好,*可以匹配字符或字符原创 2017-08-25 20:39:27 · 383 阅读 · 0 评论 -
2018 ICPC 徐州网络赛
A. Hard to prepare (dp)题意NNN个客人,主人手上有2k2k2^k个面具。 现在,NNN个人围着圆桌相邻而坐,主人会给他们每个人发一个面具,相邻两个人得到的面具i,ji,ji,j必须满足条件:iii XNORXNORXNOR jjj为正数。 问:有多少种方案?最终答案对 109+7109+710^9 + 7 取膜分析mask[i] XNOR mask[1...原创 2018-09-09 17:34:16 · 1075 阅读 · 0 评论