zhber
有好多做过的题没写下来,如果我还能记得就补吧
摘要: DescriptionFarmer John commanded his cows to search for different sets of numbers that sum to a given number. The cows use only numbers that are an in... 阅读全文
posted @ 2014-06-15 23:51 zhber 阅读(133) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John has received a noise complaint from his neighbor, Farmer Bob, stating that his cows are making too much noise. FJ's N cows (1 #... 阅读全文
posted @ 2014-06-15 23:43 zhber 阅读(221) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 inline int read(){ int x=0,f=1;char ch... 阅读全文
posted @ 2014-06-15 23:30 zhber 阅读(182) 评论(0) 推荐(0) 编辑
摘要: DescriptionA crime has been comitted: a load of grain has been taken from the barn by one of FJ's cows. FJ is trying to determine which of his C (1 #i... 阅读全文
posted @ 2014-06-15 23:12 zhber 阅读(265) 评论(0) 推荐(0) 编辑
摘要: DescriptionLongge的数学成绩非常好,并且他非常乐于挑战高难度的数学问题。现在问题来了:给定一个整数N,你需要求出∑gcd(i, N)(1#includeusing namespace std;#define LL long longLL n,m,ans;inline LL phi(L... 阅读全文
posted @ 2014-06-15 22:49 zhber 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Description清早6:00,Farmer John就离开了他的屋子,开始了他的例行工作:为贝茜挤奶。前一天晚上,整个农场刚经受过一场瓢泼大雨的洗礼,于是不难想见,FJ 现在面对的是一大片泥泞的土地。FJ的屋子在平面坐标(0, 0)的位置,贝茜所在的牛棚则位于坐标(X,Y) (-500 #in... 阅读全文
posted @ 2014-06-15 21:29 zhber 阅读(195) 评论(0) 推荐(0) 编辑