原题链接:https://codeforces.com/gym/105161/problem/D 题目大意 给定一个 n 行 n 列 (3\leq n\leq 100) 的网格,从上到下,从左到右将行列依次编号为 1 到 n,初始每个单元格中的值均为 −1。你需要给单元格赋值,每轮你可以选择一个单元格,考虑与其四连通(上下左右)的单元格(不包括你选…
题目概览 描述 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 …