摘要:
最大值最小化问题,二分+贪心,参考刘汝佳白皮书151页。之前我的代码在UVa上交过了,但是在ZOJ上却是WA。后来才发现是错在这两组数据:24 3100000 1 1 14 31 1 1 100000 1 #include <cstdio> 2 #include <cstring> 3 4 const int MAXN = 1000 + 10; 5 6 int m,k; 7 long long int num[MAXN]; 8 long long int sum; 9 bool w[MAXN]; 10 11 bool Judge( long long int x ) 1 阅读全文
posted @ 2012-07-29 13:44
冰鸮
阅读(189)
评论(0)
推荐(0)

浙公网安备 33010602011771号