摘要: Problem Description: Input: 输入有多组数据,输入一个整数n(1 <= n <= 10^6),代表这个无聊者序列的个数。 Input: Output: 输出一个数,代表子序列的个数为多少,该数需要mod(1000000007) Output: Sample Input: 3 阅读全文
posted @ 2018-05-18 23:51 霜雪千年 阅读(1708) 评论(0) 推荐(0) 编辑
摘要: Problem Description: Input: 输入一个N,N<30 Input: Output: 对于每组数据,输出移动过程中所有会产生的系列总数 Output: Sample Input: 1 3 Sample Input: Sample Output: 3 27解题思路:这道题跟 杭电 阅读全文
posted @ 2018-05-18 23:25 霜雪千年 阅读(1473) 评论(0) 推荐(0) 编辑
摘要: Problem Description Today is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he needs at 阅读全文
posted @ 2018-05-18 16:11 霜雪千年 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Problem Description: Input: The input includes several cases. For each case, the first line contains the number of farms, N (3 <= N <= 100). The follo 阅读全文
posted @ 2018-05-18 12:35 霜雪千年 阅读(316) 评论(0) 推荐(0) 编辑
摘要: Problem Description: Input: 输入包含多组数据,每组输入包含一个位正整数n,表示当前密码. Input: Output: 对于每组输入,如果小X能够在极限之前(包括10秒)上厕所,则输出“ok”(不包含引号),否则输出“gg”(不包含引号) Output: Sample I 阅读全文
posted @ 2018-05-18 11:42 霜雪千年 阅读(610) 评论(0) 推荐(0) 编辑
摘要: Problem Description 虽然草儿是个路痴(就是在杭电待了一年多,居然还会在校园里迷路的人,汗~),但是草儿仍然很喜欢旅行,因为在旅途中 会遇见很多人(白马王子,^0^),很多事,还能丰富自己的阅历,还可以看美丽的风景……草儿想去很多地方,她想要去东京铁塔看夜景,去威尼斯看电影,去阳明 阅读全文
posted @ 2018-05-18 11:17 霜雪千年 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Problem Description 省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可)。经过调查评估,得到的统计表中列出了有可能建设公路的若干条道路的成本。现请你编写程序,计算出全省畅通需要的最低成本。 Input 测试输入包 阅读全文
posted @ 2018-05-18 09:31 霜雪千年 阅读(271) 评论(0) 推荐(0) 编辑