Description Description 再次出个排序题,题目是这样的,输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一行用空格分割的若干非负整数(可能有些整数以‘0’开头,这些头部的‘0’应该被忽略掉,除非这个整数就是由若干个‘0’组成的,这时这个整数就是0)。你的任务是: ...
分类:
编程语言 时间:
2019-06-08 13:06:33
阅读次数:
152
Description Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is ...
分类:
其他好文 时间:
2019-06-05 21:28:42
阅读次数:
90
Description Description 每一本正式出版的图书都有一个ISBN号码与之对应,ISBN码包括9位数字、1位识别码和3位分隔符,其规定格式如“x-xxx-xxxxx-x”,其中符号“-”是分隔符(键盘上的减号),最后一位是识别码,例如0-670-82162-4就是一个标准的ISBN ...
分类:
其他好文 时间:
2019-06-05 19:39:25
阅读次数:
99
Description Description A sequence of n > 0 integers is called a happy luguan if the absolute values of the difference between successive elements tak ...
分类:
移动开发 时间:
2019-06-03 21:29:01
阅读次数:
185
Description Description 有一个n*n的矩阵,矩阵每个格子中都有一些宝藏,从左上角(1, 1)出发,每次只能向下或者向右移动一格,已知每个格子中宝藏的价值,求走到右下角(n, n)时能收集到的宝藏的总最大价值。 有一个n*n的矩阵,矩阵每个格子中都有一些宝藏,从左上角(1, 1 ...
分类:
其他好文 时间:
2019-05-17 21:59:24
阅读次数:
134
Description Description 给定一个有向图,若图无环,则将其进行拓扑排序并输出,否则输出IMPOSABLE。 给定一个有向图,若图无环,则将其进行拓扑排序并输出,否则输出IMPOSABLE。 Input Input 第一行为两个整数n(1<=n<=1000)、m(1<=m<=10 ...
分类:
编程语言 时间:
2019-05-07 21:18:52
阅读次数:
137
1513.K.Reversed Words 1513.K.Reversed Words 1513.K.Reversed Words Time Limit: 2000 MS Memory Limit: 32768 KBTotal Submission(s): 56 Accepted Submissio ...
分类:
其他好文 时间:
2019-03-17 20:13:08
阅读次数:
142
Description Description There are n veges stand in line, Albert_s plan to punish them since they are too weak. The picture following below shows one o ...
分类:
其他好文 时间:
2019-02-24 21:30:25
阅读次数:
209
Description Description 给定一个以秒为单位的时间t,要求用“< H> :< M> :< S> ”的格式来表示这个时间。< H> 表示时间,< M> 表示分钟,而< S> 表示秒,它们都是整数且没有前导的“0”。例如,若t=0,则应输出是“0:0:0”;若t=3661,则输出“ ...
分类:
其他好文 时间:
2019-02-15 23:51:59
阅读次数:
219
Description Description 给定n个开区间,合并他们中的重合者,输出合并后的区间数量。 给定n个开区间,合并他们中的重合者,输出合并后的区间数量。 Input Input 第一行:n(1 <= n <= 1000) 第2至第n+1行:每行两个整数(不会超过int),第i行的两个整 ...
分类:
其他好文 时间:
2019-02-15 01:16:53
阅读次数:
187