摘要: Sorting It All Out时间限制:3000 ms | 内存限制:65535 KB难度:3描述An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to largest. For example, the sorted sequence A, B, C, D implies that A < B, B < C and C < D. in t 阅读全文
posted @ 2011-11-27 22:43 mtry 阅读(417) 评论(0) 推荐(0)
摘要: 寻找最大数时间限制:1000 ms | 内存限制:65535 KB描述请在整数 n 中删除m个数字, 使得余下的数字按原次序组成的新数最大,比如当n=92081346718538,m=10时,则新的最大数是9888输入第一行输入一个正整数T,表示有T组测试数据每组测试数据占一行,每行有两个数n,m(n可能是一个很大的整数,但其位数不超过100位,并且保证数据首位非0,m小于整数n的位数)输出每组测试数据的输出占一行,输出剩余的数字按原次序组成的最大新数样例输入292081346718538 101008908 5样例输出988898算法分析:依次找出所有的值,len为数值的位数,n为要删掉的个 阅读全文
posted @ 2011-11-27 20:50 mtry 阅读(727) 评论(3) 推荐(0)