文件名称:file
介绍说明--下载内容来自于网络,使用问题请自行百度
Joe and his entire College, total 1337 of them, went for a picnic. They were bored and they planned a game. Everybody stand in a circle, each of them identifiers starting 1 to 1337 consecutively in a circle, clockwise. The rule is that “a numbering CONTAINS or DIVISIBLE by 7, will reverse the direction”.
Let’s elaborate the game a bit more. The identifiers of the students who yell-out successive numbers, are: 1,2,3,4,5,6,7 (student 7 has just yell “7” and reversed the direction),6,5,4,3,2,1,1337 (student 1337 has just yell “14” and reversed the direction),1,2,3 (student 3 has just yell “17” and reversed the direction),2,1,1337,1336, and so on. Joe has his favorite number, and he wants to calculate where in the circle he should stand to yell that number out loud.
Now that the game is set, Joe wants to stand a place where he could yell his favourite number. Would you please help Joe?
-Joe and his entire College, total 1337 of them, went for a picnic. They were bored and they planned a game. Everybody stand in a circle, each of them identifiers starting 1 to 1337 consecutively in a circle, clockwise. The rule is that “a numbering CONTAINS or DIVISIBLE by 7, will reverse the direction”.
Let’s elaborate the game a bit more. The identifiers of the students who yell-out successive numbers, are: 1,2,3,4,5,6,7 (student 7 has just yell “7” and reversed the direction),6,5,4,3,2,1,1337 (student 1337 has just yell “14” and reversed the direction),1,2,3 (student 3 has just yell “17” and reversed the direction),2,1,1337,1336, and so on. Joe has his favorite number, and he wants to calculate where in the circle he should stand to yell that number out loud.
Now that the game is set, Joe wants to stand a place where he could yell his favourite number. Would you please help Joe?
Let’s elaborate the game a bit more. The identifiers of the students who yell-out successive numbers, are: 1,2,3,4,5,6,7 (student 7 has just yell “7” and reversed the direction),6,5,4,3,2,1,1337 (student 1337 has just yell “14” and reversed the direction),1,2,3 (student 3 has just yell “17” and reversed the direction),2,1,1337,1336, and so on. Joe has his favorite number, and he wants to calculate where in the circle he should stand to yell that number out loud.
Now that the game is set, Joe wants to stand a place where he could yell his favourite number. Would you please help Joe?
-Joe and his entire College, total 1337 of them, went for a picnic. They were bored and they planned a game. Everybody stand in a circle, each of them identifiers starting 1 to 1337 consecutively in a circle, clockwise. The rule is that “a numbering CONTAINS or DIVISIBLE by 7, will reverse the direction”.
Let’s elaborate the game a bit more. The identifiers of the students who yell-out successive numbers, are: 1,2,3,4,5,6,7 (student 7 has just yell “7” and reversed the direction),6,5,4,3,2,1,1337 (student 1337 has just yell “14” and reversed the direction),1,2,3 (student 3 has just yell “17” and reversed the direction),2,1,1337,1336, and so on. Joe has his favorite number, and he wants to calculate where in the circle he should stand to yell that number out loud.
Now that the game is set, Joe wants to stand a place where he could yell his favourite number. Would you please help Joe?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
file.java
q2.java
q2.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.