谁能翻译一下这段题目
TheChildren’sDayhaspassedforsomedays.Hasyourememberedsomethinghappenedatyourchildhood...
The Children’s Day has passed for some days .Has you remembered something happened at your childhood? I remembered I often played a game called hide handkerchief with my friends.
Now I introduce the game to you. Suppose there are N people played the game ,who sit on the ground forming a circle ,everyone owns a box behind them .Also there is a beautiful handkerchief hid in a box which is one of the boxes .
Then Haha(a friend of mine) is called to find the handkerchief. But he has a strange habit. Each time he will search the next box which is separated by M-1 boxes from the current box. For example, there are three boxes named A,B,C, and now Haha is at place of A. now he decide the M if equal to 2, so he will search A first, then he will search the C box, for C is separated by 2-1 = 1 box B from the current box A . Then he will search the box B ,then he will search the box A.
So after three times he establishes that he can find the beautiful handkerchief. Now I will give you N and M, can you tell me that Haha is able to find the handkerchief or not. If he can, you should tell me "YES", else tell me "POOR Haha". 展开
Now I introduce the game to you. Suppose there are N people played the game ,who sit on the ground forming a circle ,everyone owns a box behind them .Also there is a beautiful handkerchief hid in a box which is one of the boxes .
Then Haha(a friend of mine) is called to find the handkerchief. But he has a strange habit. Each time he will search the next box which is separated by M-1 boxes from the current box. For example, there are three boxes named A,B,C, and now Haha is at place of A. now he decide the M if equal to 2, so he will search A first, then he will search the C box, for C is separated by 2-1 = 1 box B from the current box A . Then he will search the box B ,then he will search the box A.
So after three times he establishes that he can find the beautiful handkerchief. Now I will give you N and M, can you tell me that Haha is able to find the handkerchief or not. If he can, you should tell me "YES", else tell me "POOR Haha". 展开
1个回答
2016-12-02
展开全部
儿童节已过去了几天。你是否还记得你小时候的往事?我记得我经常与朋友玩一个叫“藏手绢”的游戏。现在我给你介绍下这个游戏。假设有N人玩这个游戏,他们围坐在地上成一个圆圈,每人背后有一个盒子。当然其中一个盒子里有一条美丽的手帕。
然后Haha(一个我的朋友)被叫去找手帕。但他要个怪癖,每一次都会搜找与他所站在盒子间隔M-1个盒子的盒子。比如这里有A、B、C 三个盒子,Haha站在A盒子处。如果现在他决定M值为2,那他会先去搜A盒子,然后再搜C盒子,因为2-1=1 盒子,A盒子与C盒子之间隔了一个B盒子。然后他会搜B盒子,再然后是A盒子。
所以三个回合后他可以找到美丽的手帕。现在我给你N值(人数)与M值,你们能告诉我Haha能否找到手帕。如果他能找到,你回答“Yes”,否则你回答“可怜的Haha”。
(怕你没看懂,这里是解释:因为M=2,M-1=1,所以每次选择间隔1个盒子,顺序是按A-B-C-A-B-C不断循环,第一是A盒子,跳过1个盒子后是C,再跳1个盒子后是B,再跳1个盒子后是A,不断循环;如果M=3,那就是每次跳过2个盒子,也就每次都是A盒子)
然后Haha(一个我的朋友)被叫去找手帕。但他要个怪癖,每一次都会搜找与他所站在盒子间隔M-1个盒子的盒子。比如这里有A、B、C 三个盒子,Haha站在A盒子处。如果现在他决定M值为2,那他会先去搜A盒子,然后再搜C盒子,因为2-1=1 盒子,A盒子与C盒子之间隔了一个B盒子。然后他会搜B盒子,再然后是A盒子。
所以三个回合后他可以找到美丽的手帕。现在我给你N值(人数)与M值,你们能告诉我Haha能否找到手帕。如果他能找到,你回答“Yes”,否则你回答“可怜的Haha”。
(怕你没看懂,这里是解释:因为M=2,M-1=1,所以每次选择间隔1个盒子,顺序是按A-B-C-A-B-C不断循环,第一是A盒子,跳过1个盒子后是C,再跳1个盒子后是B,再跳1个盒子后是A,不断循环;如果M=3,那就是每次跳过2个盒子,也就每次都是A盒子)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询