摘要:
Codeforces Round #550 (Div. 3) D. Equalize Them All Description You are given an array aa consisting of nn integers. You can perform the following ope 阅读全文
摘要:
小 B 的题目 Description 小 B 给小 A 出了这样一道题: 给定一个长为 nn 的序列 AA 和一个长为 mm 的序列 BB,在 AA 和 BB 中各取一个数相加,可以得到 n\times mn×m 个数,他想知道把这些数从小到大排序,第 kk 个数是多少(下标从 11 开始)。 小 阅读全文
摘要:
n 子棋 Description 小 A 和小 B 在玩 nn 子棋, nn 子棋游戏的规则是,两人在一个左上角是 (1,1)(1,1),右下角是 (n,n)(n,n) 的 n \times nn×n 棋盘中交替落子,只要有一方的 nn 个棋子在同一行或者同一列或者同一条对角线上,对方就输了。 游戏 阅读全文
摘要:
Euclid's Game Description Two players, Stan and Ollie, play, starting with two natural numbers. Stan, the first player, subtracts any positive multipl 阅读全文
摘要:
A Funny Game Description Alice and Bob decide to play a funny game. At the beginning of the game they pick n(1 <= n <= 106) coins in a circle, as Figu 阅读全文
摘要:
Being a Good Boy in Spring Festival Description 下面是一个二人小游戏:桌子上有M堆扑克牌;每堆牌的数量分别为Ni(i=1…M);两人轮流进行;每走一步可以任意选择一堆并取走其中的任意张牌;桌子上的扑克全部取光,则游戏结束;最后一次取牌的人为胜者。现在我 阅读全文