摘要: 输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一行用空格分割的若干非负整数(可能有些整数以‘0’开头,这些头部的‘0’应该被忽略掉,除非这个整数就是由若干个‘0’组成的,这时这个整数就是0)。 你的任务是:对这些分割得到的整数,依从小到大的顺序排序输出。 Input输入包含多组测试 阅读全文
posted @ 2017-07-24 21:36 zzzying 阅读(136) 评论(0) 推荐(0) 编辑
摘要: A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. 阅读全文
posted @ 2017-07-24 21:33 zzzying 阅读(177) 评论(0) 推荐(0) 编辑