枚举
理想主义文艺青年
理想主义源于对生活的憧憬 文艺是对生活的态度
展开
-
hdu 4968 Improving the GPA
hdu 4968 Improving the GPA原创 2014-08-21 14:55:12 · 824 阅读 · 0 评论 -
hdu 4937 Lucky Number
hdu 4937 Lucky Number给出一个十进制的数 你可以把他换成其他进制的表达形式 更换进制之后 每一位上只能由3 4 5 6组成 如果能有这样的一个进制转换 答案就加1 但是如果这样一个数能换成无数个其他进制的符合要求就输出-1 这样的数就只有 3 4 5 6如果只有两位数的情况 表示为ab 则就变成解一元二次方程 a*base+b=n 解得的ba原创 2014-08-13 17:00:16 · 739 阅读 · 0 评论 -
hdu 5175 Misaki's Kiss again
Misaki's Kiss againTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 727 Accepted Submission(s): 179Problem DescriptionAfter th原创 2015-02-17 02:52:08 · 912 阅读 · 0 评论 -
codeforces #298 D. Handshakes
D. Handshakestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOn February, 30th n students came in the Cente原创 2015-04-13 15:11:10 · 621 阅读 · 0 评论 -
zoj 3862 Intersection(枚举)
IntersectionTime Limit: 3 Seconds Memory Limit: 131072 KB Special JudgeEdward has 2n points on the plane conveniently labeled with 1,2,…,2n. Each point is connected exactly with an原创 2015-04-16 10:11:50 · 648 阅读 · 0 评论 -
CF 547 A Mike and Frog
A. Mike and Frogtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMike has a frog and a flower. His frog is n原创 2015-05-27 13:16:54 · 1229 阅读 · 0 评论 -
CodeForces #308 Div2 E(552E Vanya and Brackets)
E. Vanya and Bracketstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVanya is doing his maths homework. He原创 2015-06-23 17:14:22 · 489 阅读 · 0 评论 -
HihoCoder 挑战赛12 C #1179 : 永恒游戏(枚举)
#1179 : 永恒游戏时间限制:20000ms单点时限:1000ms内存限制:256MB描述很久很久以前,当Rowdark还是个善良的魔法师时,他在一个n个点m条边的无向图上玩一个游戏。开始时他在一些点上放些石子。每次Rowdark选择一个点A,要求点A上的石子数大于等于邻居点个数。然后对A的每个邻居B,将A上的一个石子移到B上。如原创 2015-06-23 19:38:49 · 575 阅读 · 0 评论