恒邪

2014年4月28日 #

[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) 编辑

[ACM] poj 1064 Cable master (二分查找)

摘要: Cable masterTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 21071Accepted: 4542DescriptionInhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It was decided to con 阅读全文

posted @ 2014-04-28 19:31 恒邪 阅读(169) 评论(0) 推荐(0) 编辑

[ACM] hdu 1025 Constructing Roads In JGShining's Kingdom (最长递增子序列,lower_bound使用)

摘要: Constructing Roads In JGShining's KingdomTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14635Accepted Submission(s): 4158Problem DescriptionJGShining's kingdom consists of 2n(n is no more than 500,000) small cities which are located in two 阅读全文

posted @ 2014-04-28 16:36 恒邪 阅读(155) 评论(0) 推荐(0) 编辑

[2012山东ACM省赛] Pick apples (贪心,完全背包,枚举)

摘要: Pick applesTime Limit: 1000MS Memory limit: 165536K题目描述Once ago, there is a mystery yard which only produces three kinds of apples. The number of each kind is infinite. A girl carrying a big bag comes into the yard. She is so surprised because she has never seen so many apples before. Each kind of a 阅读全文

posted @ 2014-04-28 14:13 恒邪 阅读(203) 评论(0) 推荐(0) 编辑

Mine Number(搜索,暴力) ACM省赛第三届 G

摘要: Mine NumberTime Limit: 1000ms Memory limit: 65536K有疑问?点这里^_^题目描述Every one once played the game called Mine Sweeping, here I change the rule. You are g... 阅读全文

posted @ 2014-04-28 11:07 恒邪 阅读(265) 评论(0) 推荐(0) 编辑

导航