Loading

摘要: You are given a tree consisting of nn nodes. You want to write some labels on the tree's edges such that the following conditions hold: Every label is 阅读全文
posted @ 2020-03-15 23:08 脂环 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Ehab has an array aa of length nn . He has just enough free time to make a new array consisting of nn copies of the old array, written back-to-back. W 阅读全文
posted @ 2020-03-15 18:04 脂环 阅读(209) 评论(0) 推荐(0) 编辑
摘要: You are given a positive integer xx . Find any such 22 positive integers aa and bb such that GCD(a,b)+LCM(a,b)=xGCD(a,b)+LCM(a,b)=x . As a reminder, G 阅读全文
posted @ 2020-03-15 17:54 脂环 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 题目描述 太郎有N只兔子,现在为了方便识别它们,太郎要给他们编号。兔子们向太郎表达了它们对号码的喜好,每个兔子i想要一个整数,介于1和Maxnumber[i]之间(包括1和Maxnumber[i])。当然,每个兔子的编号是不同的。现在太郎想知道一共有多少种编号的方法。 你只用输出答案mod 1000 阅读全文
posted @ 2020-03-15 16:30 脂环 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 题目描述 给出一个小于2322^{32}232的正整数。这个数可以用一个323232位的二进制数表示(不足323232位用000补足)。我们称这个二进制数的前161616位为“高位”,后161616位为“低位”。将它的高低位交换,我们可以得到一个新的数。试问这个新的数是多少(用十进制表示)。 例如, 阅读全文
posted @ 2020-03-15 16:08 脂环 阅读(615) 评论(0) 推荐(1) 编辑
摘要: 题目描述 经过一段时间的紧张筹备,电脑小组的“RP餐厅”终于开业了,这天,经理LXC接到了一个定餐大单,可把大家乐坏了!员工们齐心协力按要求准备好了套餐正准备派送时,突然碰到一个棘手的问题,筷子!CX小朋友找出了餐厅中所有的筷子,但遗憾的是这些筷子长短不一,而我们都知道筷子需要长度一样的才能组成一双 阅读全文
posted @ 2020-03-15 15:47 脂环 阅读(119) 评论(0) 推荐(0) 编辑