摘要: Sasha is a very happy guy, that's why he is always on the move. There are nn cities in the country where Sasha lives. They are all located on one stra 阅读全文
posted @ 2019-02-23 21:53 hearme 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛? Input输入数据由多个测试实例组成,每个测试实例占一行,包括一个整数n(0<n<55),n的含义如题目中描述。 n=0表示输入数据的结束,不做处理。Output对于每 阅读全文
posted @ 2019-02-23 21:49 hearme 阅读(1279) 评论(0) 推荐(0) 编辑