Problem1419--火车站进站程序1419: 火车站进站程序
Time Limit: 1 Sec Memory Limit: 128 MB
Submit: 980 Solved: 265
[Submit] [Status] [Web Board] [Creator:]Description
进站乘火车程序:
通过提示分别输入两个条件:1、你是否已经买票;2、你带的水果刀有多长?
通过先后对这两个条件的判断,输出乘客最后的结果:
1、没有票,没能进站
2、有票,通过了验票窗口,但水果刀长度超过了10cm,被警察带走了
3、有票,水果刀没超过10cm,顺利进入了候车室。
注:由于目前系统对中文输入支持不完整,所以后续的输入输出只能使用英文,具体内容请参考下面内容:
Input
Yes
Yes
9
Output
Welcome to ISS station!
Do you have ticket?
Do you have a knife?
How long is your knife?(Unit:CM)
Please enter into waiting room!
Sample Input
Yes
No
Sample Output
Welcome to ISS station!
Do you have ticket?
Do you have a knife?
Please enter into waiting room!
HINT
如果输出是:
Welcome to ISS station!
Do you have ticket?
输入:
No
继续输出:
Please walk to ticket office and buy a ticket!
Source/Category
[Submit] [Status]