摘要: You have n boxes in a line on the table numbered 1 . . . n from left to right. Your task is to simulate 4 kinds of commands: • 1 X Y : move box X to t 阅读全文
posted @ 2018-08-01 20:58 一无所知小白龙 阅读(302) 评论(0) 推荐(0) 编辑
摘要: You’re typing a long text with a broken keyboard. Well it’s not so badly broken. The only problem with the keyboard is that sometimes the “home” key o 阅读全文
posted @ 2018-08-01 20:51 一无所知小白龙 阅读(375) 评论(0) 推荐(0) 编辑
摘要: You’re typing a long text with a broken keyboard. Well it’s not so badly broken. The only problem with the keyboard is that sometimes the “home” key o 阅读全文
posted @ 2018-08-01 20:51 一无所知小白龙 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 有N个小孩围成一圈,给他们从1开始依次编号,现指定从第W个开始报数,报到第S个时,该小孩出列,然后从下一个小孩开始报数,仍是报到S个出列,如此重复下去,直到所有的小孩都出列(总人数不足S个时将循环报数),求小孩出列的顺序。 Input 第一行输入小孩的人数N(N include include in 阅读全文
posted @ 2018-08-01 13:18 一无所知小白龙 阅读(415) 评论(0) 推荐(0) 编辑
摘要: Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a 阅读全文
posted @ 2018-08-01 11:31 一无所知小白龙 阅读(274) 评论(0) 推荐(0) 编辑