摘要: 汝佳的做法 1 #include <iostream> 2 using namespace std; 3 #include<string.h> 4 #include<string> 5 #include<set> 6 #include<sstream> 7 #include<stdio.h> 8 # 阅读全文
posted @ 2017-08-02 10:35 小小超plus 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! InputOne N in one line, process to the end of file. OutputFor each N, output N! in one 阅读全文
posted @ 2017-08-02 10:34 小小超plus 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Our chemical biologists have invented a new very useful form of life called stripies (in fact, they were first called in Russian - polosatiki, but the 阅读全文
posted @ 2017-08-02 10:33 小小超plus 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Colonel has n badges. He wants to give one badge to every of his n soldiers. Each badge has a coolness factor, which shows how much it's owner reached 阅读全文
posted @ 2017-08-02 10:32 小小超plus 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Valery is a PE teacher at a school in Berland. Soon the students are going to take a test in long jumps, and Valery has lost his favorite ruler! Howev 阅读全文
posted @ 2017-08-02 10:31 小小超plus 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Ray又对数字的列产生了兴趣: 现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。 Input每组数据占一行,代表四张卡片上的数字(0<=数字<=9),如果四张卡片都是0,则输入结束。 Output对每组卡片按从小到大的顺序输出所有能由这四张卡片组成的4位数,千 阅读全文
posted @ 2017-08-02 10:29 小小超plus 阅读(305) 评论(0) 推荐(0) 编辑
摘要: Now our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. But now the BEelzebu 阅读全文
posted @ 2017-08-02 10:28 小小超plus 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 2 3 5 循环 第一份代码: 1 #include<stdio.h> 2 int main() 3 { 4 printf("The 1500'th ugly number is 859963392.\n"); 5 return 0; 6 } 第二份 1 #include <iostream> 2 阅读全文
posted @ 2017-08-02 10:27 小小超plus 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 小刚在玩JSOI提供的一个称之为“建筑抢修”的电脑游戏:经过了一场激烈的战斗,T部落消灭了所有z部落的入侵者。但是T部落的基地里已经有N个建筑设施受到了严重的损伤,如果不尽快修复的话,这些建筑设施将会完全毁坏。现在的情况是:T部落基地里只有一个修理工人,虽然他能瞬间到达任何一个建筑,但是修复每个建筑 阅读全文
posted @ 2017-08-02 10:25 小小超plus 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报到二的出列,剩下的向小序号方向靠拢,再从头开始进行一至三报数,凡报到三的出列,剩下的向小序号方向靠拢,继续从头开始进行一至二报数。。。,以后从头开始轮流进行一至二报数、一至三报数直到剩下的人 阅读全文
posted @ 2017-08-02 10:21 小小超plus 阅读(396) 评论(0) 推荐(0) 编辑