该文被密码保护。 阅读全文
posted @ 2013-03-09 18:55 ihge2k 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1058http://acm.hdu.edu.cn/showproblem.php?pid=3199这两道题很类似,其思想就是从最小的满足条件的算起,一步步直到求出结果;hdu 1058View Code 1 #include<iostream> 2 #include<algorithm> 3 const int N=5843; 4 #define min(a,b) (a)<(b)?(a):(b) 5 using namespace std; 6 int num[N]; 阅读全文
posted @ 2013-03-09 10:10 ihge2k 阅读(401) 评论(0) 推荐(0) 编辑