随笔分类 -  ACM~母函数

摘要:#include<iostream>#include<set>#include<algorithm>#include<stdio.h>#include<cstring>using namespace std;int d[301];int c[50001];int e[50001];bool cmp(const int x,const int y){ return x<y;}set<int> s;int main(){int t;scanf("%d",&t);for(int l=1;l< 阅读全文
posted @ 2011-05-25 17:41 Crazy_yiner 阅读(248) 评论(0) 推荐(0)
摘要:Fruit Problem Description转眼到了收获的季节,由于有TT的专业指导,Lele获得了大丰收。特别是水果,Lele一共种了N种水果,有苹果,梨子,香蕉,西瓜……不但味道好吃,样子更是好看。于是,很多人们慕名而来,找Lele买水果。甚至连大名鼎鼎的HDU ACM总教头 lcy 也来了。lcy抛出一打百元大钞,"我要买由M个水果组成的水果拼盘,不过我有个小小的要求,对于每种水果,个数上我有限制,既不能少于某个特定值,也不能大于某个特定值。而且我不要两份一样的拼盘。你随意搭配,你能组出多少种不同的方案,我就买多少份!"现在就请你帮帮Lele,帮他算一算到底能够 阅读全文
posted @ 2011-05-16 22:36 Crazy_yiner 阅读(309) 评论(0) 推荐(0)
摘要:Holding Bin-Laden Captive! Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 132 Accepted Submission(s) : 69Font: Times New Roman | Verdana | Georgia Font Size: ← →Problem DescriptionWe all know that Bin-Laden is a notorious terrorist, and he has dis 阅读全文
posted @ 2011-05-16 22:33 Crazy_yiner 阅读(277) 评论(0) 推荐(0)
摘要:Square Coins Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 87 Accepted Submission(s) : 67Font: Times New Roman | Verdana | Georgia Font Size: ← →Problem DescriptionPeople in Silverland use square coins. Not only they have square shapes but also t 阅读全文
posted @ 2011-05-16 22:32 Crazy_yiner 阅读(454) 评论(0) 推荐(0)
摘要:Ignatius and the Princess IIITime Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 100Accepted Submission(s) : 83Font:Times New Roman|Verdana|GeorgiaFont Size:←→Problem Description"Well, it seems the first problem is too easy. I will let you know how 阅读全文
posted @ 2011-05-16 22:23 Crazy_yiner 阅读(238) 评论(0) 推荐(0)