07 2021 档案
摘要: 题意 有 堆棋子,第 堆有 个棋子,定义一次操作为选择第 堆棋子中任意个棋子转移到第 堆中。其中 是 的质因数。 两人轮流操作,不能操作者输。若先手第一步随机操作一步,问先手获胜的概率。对
阅读全文
摘要:Life blooms like a flower Far away or by the road Waiting for the one To find the way back home Rain falls a thousand times No footprints of come-and-
阅读全文
摘要: 题意 给你长度为 的序列 和 次询问,每次询问给出 和长度为 的序列 ,求出这两个序列的最长公共子序列,要求字典序最小。 $n\le10^6,0\le a_i,b_i\le10^4,q\le5\times 10^3,m\le5
阅读全文