上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 39 下一页
摘要: DescriptionDoctor Ghee is teaching Kia how to calculate the sum of two integers. But Kia is so careless and alway forget to carry a number when the su... 阅读全文
posted @ 2015-04-19 20:45 Painting、时光 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionPick two numbersai,aj(i≠j)from a sequence to maximize the value of their greatest common divisor.InputMultiple test cases. In the f... 阅读全文
posted @ 2015-04-19 20:42 Painting、时光 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Description给你一副无向图,每条边有边权,保证图联通,现在让你判断这个图是否有异或值大于零的环存在。Input多组测试数据,每组先输入两个数n m,表示图的点跟边的数量。然后是m行,每行三个数a b c。代表一条边的起点,终点,边权。1 #include#includeusing name... 阅读全文
posted @ 2015-04-18 18:48 Painting、时光 阅读(774) 评论(0) 推荐(0) 编辑
摘要: DescriptionYou've gotten ann × msheet of squared paper. Some of its squares are painted. Let's mark the set of all painted squares asA. SetAis connect... 阅读全文
posted @ 2015-04-17 19:48 Painting、时光 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 法一:调用algorithm的库函数__gcd 两个下划线法二:int GCD(int a,int b){return b == 0 ? a : GCD(b,a%b);} 阅读全文
posted @ 2015-04-17 11:41 Painting、时光 阅读(409) 评论(0) 推荐(0) 编辑
摘要: DescriptionSome days ago, I learned the concept of LCM (least common multiple). I've played with it for several times and I want to make a big number ... 阅读全文
posted @ 2015-04-17 11:37 Painting、时光 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Description已知一个圆的圆周被N个点分成了N段等长圆弧,求任意取三个点,组成锐角三角形的个数。Input多组数据。每组数据一个N (N ≤ 1000000)。Output对于每组数据,输出不同锐角三角形的个数。Sample Input345Sample Output105大意:数学推导,分... 阅读全文
posted @ 2015-04-17 11:27 Painting、时光 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Description郭橐驼,不知始何名。病偻,隆然伏行,有类橐驼者,故乡人号之驼。驼闻之,曰:“甚善。名我固当。”因舍其名,亦自谓橐驼云。其乡曰丰乐乡,在长安西。驼业种树,凡长安豪富人为观游及卖果者,皆争迎取养。视驼所种树,或移徙,无不活;且硕茂,蚤实以蕃。他植者虽窥伺效慕,莫能如也。 有问之... 阅读全文
posted @ 2015-04-17 11:13 Painting、时光 阅读(179) 评论(0) 推荐(0) 编辑
摘要: http://paste.ubuntu.com/ 阅读全文
posted @ 2015-04-16 20:19 Painting、时光 阅读(291) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/acm_cxlove/article/details/7411602 阅读全文
posted @ 2015-04-15 15:02 Painting、时光 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 39 下一页