http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1555
输入5个数
1 2 0 1 0
表示1前面有1个比它大的数,2前面有2个比它大的数…..
求一个1~n的排列,比如这个就输出3 1 5 2 4
1前面有1个比它大的数,那么1肯定在第二位
2前面有2个比它大的数,那么2肯定排在第四位,有一位被1占了。
3前面有0个比它大的数,...
分类:
其他好文 时间:
2015-04-05 20:32:23
阅读次数:
196
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudVasily the Bear and SequenceVasily the bear has got a sequence of positive integersa1,?a2,?...,?an. Va...
分类:
其他好文 时间:
2015-04-05 11:45:00
阅读次数:
186
A sequence of numbers
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4041 Accepted Submission(s): 1240
Problem Description
Xinlv wr...
分类:
其他好文 时间:
2015-04-04 13:46:05
阅读次数:
155
题目:http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2169#include #include #include #include #include #define inf 0x3f3f3f3ftyped...
分类:
其他好文 时间:
2015-04-04 12:14:08
阅读次数:
120
最近在做数据库检查的时候发现有下面警告信息:Thu Apr 02 10:34:39 2015
Current log# 1 seq# 235103 mem# 0: D:\ORADATA\ORCL\REDO01.LOG
Thu Apr 02 10:34:40 2015
ARC1: Evaluating archive log 3 thread 1 sequence 235102
Thu Apr...
分类:
移动开发 时间:
2015-04-04 09:09:28
阅读次数:
232
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:
其他好文 时间:
2015-04-04 06:42:19
阅读次数:
147
题目:Word Break通过率:22.6%难度:中等Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more ...
分类:
其他好文 时间:
2015-04-03 23:44:22
阅读次数:
171
Boring Counting
Time Limit: 3000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
In this problem you are given a number sequence P consisting of N integer and Pi is the ith element in t...
分类:
其他好文 时间:
2015-04-03 21:06:23
阅读次数:
179
Bike loves looking for the second maximum element in the sequence. The second maximum element in the sequence of distinct numbers x1,?x2,?…,?xk (k?>?1) is such maximum element xj, that the following in...
分类:
其他好文 时间:
2015-04-03 15:21:56
阅读次数:
154
thinking:
(1)每次选择输出的数字是当前序列中最小的,记该数字下标为 index,数字为a
(2)检查index 之后的最小数为b
(3)如果index之前有小于b且大于a的数字出现,说明这些数字是乱序的数字,要和a一行保序输出
code:
int output_in_order(vector &unordered_sequence)
{
int next_ou...
分类:
其他好文 时间:
2015-04-03 11:32:01
阅读次数:
129