[ACM] poj 2456 Aggressive cows (二分查找)
摘要:
Aggressive cowsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5436Accepted: 2720DescriptionFarmer John has built a new long barn, with N (2 #include #include using namespace std;const int maxn=100002;const int inf=0x7fffffff;int x[maxn];int n,c;bool ok(int m){ int last=0; for(int i=1... 阅读全文
posted @ 2014-04-28 20:47 恒邪 阅读(190) 评论(0) 推荐(0) 编辑