摘要: 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、时光 阅读(226) 评论(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) 编辑