摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2795BillboardTime Limit: 20000/8000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5359Accepted Submission(s): 2469Problem DescriptionAt the entrance to the university, there is a huge rectangular billboard of size h*w (h 阅读全文
posted @ 2012-10-30 19:50 小猴子、 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1394题意:给出一个长度为n的序列,0 ~ n-1,对序列可以转换成 :1 ,... , n-1, 02, ... , n-1, 0, 1...n-1, 0, 1, ..., n-2在这些序列中找到一个序列,是这个序列的逆序数是最小的。输出逆序数的个数。分析思路:http://wenku.baidu.com/view/6e02b7492e3f5727a5e9623f.html代码:#include<stdio.h>#define MAXN 5001int tree[MAXN <&l 阅读全文
posted @ 2012-10-30 14:14 小猴子、 阅读(199) 评论(0) 推荐(0) 编辑