摘要:
D. Mike and distribution 构造法 798D - Mike and distribution In the beginning, it's quite easy to notice that the condition " 2·(ap1 + ... + apk) is grea 阅读全文
摘要:
三维数组,保存每一种可能的状态 数字三角形2 描述 数字三角形要求走到最后mod 100最大 描述 数字三角形要求走到最后mod 100最大 输入格式 第1行n,表示n行 <=25第2到n+1行为每个的权值 输入格式 第1行n,表示n行 <=25第2到n+1行为每个的权值 输出格式 mod 100最 阅读全文
摘要:
C. Mike and gcd problem 一奇一偶需要两次操作,两个奇数需要一次操作。 798D - Mike and distribution In the beginning, it's quite easy to notice that the condition " 2·(ap1 + 阅读全文
摘要:
D. High Load 最简单的设计,构建一个星图 阅读全文
摘要:
我天,这竟然是道最近公共祖先的板子题。代码里利用了我的LCA模板,前向星存图。 Misha, Grisha and Underground by myorange 阅读全文
摘要:
835D - Palindromic characteristics Observation I. If the string is k-palindrome, then it is (k - 1)-palindrome. Observation II. The string is k-palind 阅读全文
摘要:
用pre[t][i][j]存时间等价于t时坐标(1, 1) 和(i, j)组成的矩形区域的星星总亮度。再注意一下一个坐标处可以有多颗星星就可以了。 star sky 阅读全文