摘要: 题目:Space Isaac 传送门:http://codeforces.com/contest/1045/problem/B 分析: 1)我们考虑不能被表示出来的数。 2)设这个数为P,对所有的数x,如果$x \in A$,在那么$(p-x)mod m \in A $;如果$x \in B$,在那 阅读全文
posted @ 2019-02-17 21:34 hjj1871984569 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 题目:Check Transcription 传送门:http://codeforces.com/contest/1056/problem/E 分析: 1)显然有个$O( \frac{t}{max(cnt_0,cnt_1)}*t)$暴力:枚举替代$0$的字符串,计算替代$1$的字符串长度,判断是否可 阅读全文
posted @ 2019-02-17 21:11 hjj1871984569 阅读(241) 评论(0) 推荐(0) 编辑