原题链接:https://codeforces.com/contest/2006/problem/B (D1 的 B 题,D2 的 E 题) 因赛时想复杂了没做出来导致渡劫失败 ( $1859 \rightarrow 1891$ ),赛后补了一下发现竟然比 D 还好写 QwQ 题目大意 给定一个根为 $1$ ,且编号满足 DFS 序的树,令 $\o…
原题链接: https://codeforces.com/contest/1999/problem/G1 (Easy Ver, 可查询 10 次) https://codeforces.com/contest/1999/problem/G2 (Hard Ver) 题目大意 我们有一把尺子,但是中间缺少了一个数字 $x (2\leq x\leq 99…
题目概览 描述 There are n players sitting at a round table. All of them have s cards of n colors in total. Besides, initially the first person had cards of only the first color, the…
题目概览 描述 Shakespeare is a widely known esoteric programming language in which programs look like plays by Shakespeare, and numbers are given by combinations of ornate epithets.…
题目概览 描述 One day Anna got the following task at school: to arrange several numbers in a circle so that any two neighboring numbers differs exactly by 1. Anna was given several …