摘要: UVALIVE-5009 三分 1 #include <iostream> 2 using namespace std; 3 #include<string.h> 4 #include<set> 5 #include<stdio.h> 6 #include<math.h> 7 #include<qu 阅读全文
posted @ 2017-08-05 10:29 小小超plus 阅读(157) 评论(0) 推荐(0) 编辑
摘要: HOHO,终于从Speakless手上赢走了所有的糖果,是Gardon吃糖果时有个特殊的癖好,就是不喜欢将一样的糖果放在一起吃,喜欢先吃一种,下一次吃另一种,这样;可是Gardon不知道是否存在一种吃糖果的顺序使得他能把所有糖果都吃完?请你写个程序帮忙计算一下。 Input第一行有一个整数T,接下来 阅读全文
posted @ 2017-08-05 09:10 小小超plus 阅读(180) 评论(0) 推荐(0) 编辑
摘要: The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A x B x C x D 阅读全文
posted @ 2017-08-05 09:09 小小超plus 阅读(138) 评论(0) 推荐(0) 编辑
摘要: The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For e 阅读全文
posted @ 2017-08-05 09:07 小小超plus 阅读(95) 评论(0) 推荐(0) 编辑
摘要: The name of one small but proud corporation consists of n lowercase English letters. The Corporation has decided to try rebranding — an active marketi 阅读全文
posted @ 2017-08-05 09:03 小小超plus 阅读(265) 评论(0) 推荐(0) 编辑