文件名称:The-Frog-Prince-
-
所属分类:
- 标签属性:
- 上传时间:2013-01-20
-
文件大小:1.04kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
青蛙王子
Acceteped : 1489 Submit : 4472
Time Limit : 1000 MS Memory Limit : 65536 KB
Descr iption
一个王子被巫师诅咒,变成了一只青蛙。500年后的一天,青蛙王子碰到了一个仙女,仙女告诉他,如果他能通过一个简单的测试,她就能帮他解除诅咒。测试是这样子的,仙女要青蛙王子在一条直线上跳跃(青蛙王子最开始站在坐标为0的地方),但只能按照她给定的两种长度跳跃(假设这两种长度王子都能跳到),可以往前或者往后跳,如果能达到指定的地点,那么就通过测试;仙女给定的方式有多种,但有些是不可能满足达到指定地点的。请你帮帮可怜的青蛙王子,寻找出那些可以完成测试的跳跃方式。
输入
每个样例占一行,为3个整数,都可以用一个unsigned int表示。前两个表示可以跳跃的长度,最后一个表示需要达到的地点的坐标。如果三个数为0,表示输入结束。
输出
每行输出一个样例的结果,如果可以到达指定的地点,输出Yes,否则输出No。
Sample Input
2 5 9
3 7 2
4 8 3
0 0 0
Sample Output
Yes
Yes
No
-The Frog Prince
Acceteped: 1489 Submit: 4472
Time Limit: 1000 MS Memory Limit: 65536 KB
Descr iption
A prince shaman curse into a frog. Day 500 years later, the frog prince met a fairy, the fairy tell him, if he can pass a simple test, she was able to help him lift the curse. The test is this fairy To Frog Prince (frog prince most standing coordinates 0 place) jump in a straight line, but only in accordance with her given two lengths jump (assuming two lengths prince jump), you can forward or jump back, if they can reach a designated place, then you pass the test fairy given a variety of ways, but some of it is impossible to meet the specified locations. You help the poor frog prince jump way to find out who can complete the test.
Enter
Each sample per line for three integer with an unsigned int said. Said first two can be the length of the jump, and finally represents a needed to reach the location of the coordinates. If three numbers of 0, indicating
Acceteped : 1489 Submit : 4472
Time Limit : 1000 MS Memory Limit : 65536 KB
Descr iption
一个王子被巫师诅咒,变成了一只青蛙。500年后的一天,青蛙王子碰到了一个仙女,仙女告诉他,如果他能通过一个简单的测试,她就能帮他解除诅咒。测试是这样子的,仙女要青蛙王子在一条直线上跳跃(青蛙王子最开始站在坐标为0的地方),但只能按照她给定的两种长度跳跃(假设这两种长度王子都能跳到),可以往前或者往后跳,如果能达到指定的地点,那么就通过测试;仙女给定的方式有多种,但有些是不可能满足达到指定地点的。请你帮帮可怜的青蛙王子,寻找出那些可以完成测试的跳跃方式。
输入
每个样例占一行,为3个整数,都可以用一个unsigned int表示。前两个表示可以跳跃的长度,最后一个表示需要达到的地点的坐标。如果三个数为0,表示输入结束。
输出
每行输出一个样例的结果,如果可以到达指定的地点,输出Yes,否则输出No。
Sample Input
2 5 9
3 7 2
4 8 3
0 0 0
Sample Output
Yes
Yes
No
-The Frog Prince
Acceteped: 1489 Submit: 4472
Time Limit: 1000 MS Memory Limit: 65536 KB
Descr iption
A prince shaman curse into a frog. Day 500 years later, the frog prince met a fairy, the fairy tell him, if he can pass a simple test, she was able to help him lift the curse. The test is this fairy To Frog Prince (frog prince most standing coordinates 0 place) jump in a straight line, but only in accordance with her given two lengths jump (assuming two lengths prince jump), you can forward or jump back, if they can reach a designated place, then you pass the test fairy given a variety of ways, but some of it is impossible to meet the specified locations. You help the poor frog prince jump way to find out who can complete the test.
Enter
Each sample per line for three integer with an unsigned int said. Said first two can be the length of the jump, and finally represents a needed to reach the location of the coordinates. If three numbers of 0, indicating
(系统自动生成,下载前可以参看下载内容)
下载文件列表
The Frog Prince .txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.