题目网址: http://www.puzzleup.com/2018/
http://www.puzzleup.com/2018/puzzle/?5
答题时限: 8月30日7PM-比赛结束(约12月12日)
加分时限: 8月30日7PM-9月5日6:59PM
答对可得基本分100分。答案可上传5次,每改1次答案从基本分扣20分。
比赛期间内可随时上传答案,加分时限内答对第n天加(6-n)分
另依题目的难易有额外加分(如有80%的人这题答错,答对者加80分)
◆NUMBER SELECTION
Given any X integers (not necessarily distinct), if it is always possible to
select Y of them whose sum is divisible by 7, what is the minimum value of X
and the corresponding value of Y?
Note: X and Y are positive integers.
If the same question were asked for divisibility by 2, the minimum value of X
would be 3 and the corresponding value of Y would be 2.
Enter the minimum X, then the corresponding Y without using a space in between.
给予X个任意整数(可以重复),一定能从中挑选出Y个数,使其总和能整除于7,则X的最
小值与其相应的Y值呢?
注:X与Y都是正整数。
若题目要求整除于2,则X的最小值会是3,相对应的Y会是2。
输入最小的X,接着相对应的Y,中间无需空格。