摘要: 题目大意 有 $n$ 个不同的糖果,从 $1$ 到 $n$ 编号。有 $k$ 个客人。要用糖果招待客人。 对于每个客人,这些糖果中恰有两个是其最爱。第 $i$ 个客人最爱的糖果编号是 $x_i$ 和 $y_i$ 。 将 $k$ 个客人任意排列,他们按顺序去拿自己最爱的糖果。 客人要拿到至少一个最爱的 阅读全文
posted @ 2019-09-16 23:36 Pat 阅读(362) 评论(0) 推荐(1) 编辑
摘要: 给定 $n$ 个两两不同的正整数 $a_1, a_2, \dots, a_n$,$a_i Let the length of a number be the number of digits needed to write it out in binary, excluding any leadin 阅读全文
posted @ 2019-09-16 02:40 Pat 阅读(358) 评论(0) 推荐(0) 编辑