摘要:
题意:有k种颜色,每种颜色对应a[i]个球,球的总数不超过1000要求第i种颜色的最后一个球,其后面接着的必须是第i+1种颜色的球问一共有多少种排法Sample test(s)input3221output3input41234output1680NoteIn the first sample, w... 阅读全文
posted @ 2015-08-16 22:03
UniqueColor
阅读(315)
评论(0)
推荐(0)
摘要:
Problem DescriptionGoffi is doing his math homework and he finds an equality on his text book:gcd(n−a,n)×gcd(n−b,n)=nk.Goffi wants to know the number ... 阅读全文
posted @ 2015-08-16 21:22
UniqueColor
阅读(285)
评论(1)
推荐(0)
摘要:
Problem DescriptionGiven 5 integers: a, b, c, d, k, you're to find x in a...b, y in c...d that GCD(x, y) = k. GCD(x, y) means the greatest common divi... 阅读全文
posted @ 2015-08-16 20:22
UniqueColor
阅读(199)
评论(0)
推荐(0)
摘要:
Problem DescriptionThere are n people standing in a line. Each of them has a unique id number.Now the Ragnarok is coming. We should choose 3 people to... 阅读全文
posted @ 2015-08-16 18:51
UniqueColor
阅读(241)
评论(0)
推荐(0)
摘要:
Co-primeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2307Accepted Submission(s): 861 Problem D... 阅读全文
posted @ 2015-08-16 05:07
UniqueColor
阅读(327)
评论(0)
推荐(0)
摘要:
Problem DescriptionThere is a big stone with smooth surface in Tina Town. When people go towards it, the stone surface will be lighted and show its us... 阅读全文
posted @ 2015-08-16 00:41
UniqueColor
阅读(530)
评论(0)
推荐(0)
摘要:
问题描述Tina Town 是一个善良友好的地方,这里的每一个人都互相关心。Tina有一个球,它的名字叫zball。zball很神奇,它会每天变大。在第一天的时候,它会变大11倍。在第二天的时候,它会变大22倍。在第nn天的时候,它会变大nn倍。zball原来的体积是11。Tina想知道,zball... 阅读全文
posted @ 2015-08-16 00:36
UniqueColor
阅读(443)
评论(0)
推荐(0)

浙公网安备 33010602011771号