随笔分类 -  暴力

B. Making Sequences is Fun 暴力比较水
摘要:B. Making Sequences is Funtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWe'll defineS(n)for positive integernas follows: the number of then's digits in the decimal base. For example,S(893) = 3,S(114514) = 6.You want to make a consecutiv 阅读全文

posted @ 2013-12-15 16:41 keep trying 阅读(497) 评论(0) 推荐(0)

A. Strange Addition 暴力
摘要:A. Strange Additiontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputUnfortunately, Vasya can only sum pairs of integers (a,b), such that for any decimal place at least one number has digit0in this place. For example, Vasya can sum numbers505and50, 阅读全文

posted @ 2013-11-25 17:08 keep trying 阅读(308) 评论(0) 推荐(0)

Alternate Task UVA11728 暴力枚举
摘要:FAlternate TaskInput:Standard InputOutput:Standard OutputLittle Hasan loves to play number games with his friends. One day they were playing a game where one of them will speak out a positive number and the others have to tell the sum of its factors. The first one to say it correctly wins. After a w 阅读全文

posted @ 2013-10-31 20:24 keep trying 阅读(240) 评论(0) 推荐(0)

Bit Magic HDU 4421 2-Sat
摘要:Bit MagicTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1383Accepted Submission(s): 398Problem DescriptionYesterday, my teacher taught me about bit operators: and (&), or (|), xor (^). I generated a number table a[N], and wrote a program to ca 阅读全文

posted @ 2013-10-29 16:48 keep trying 阅读(203) 评论(0) 推荐(0)

Sum of divisors HDU 4432 简单数学题
摘要:Sum of divisorsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2461Accepted Submission(s): 889Problem Descriptionmmm is learning division, she's so proud of herself that she can figure out the sum of all the divisors of numbers no larger than 1 阅读全文

posted @ 2013-10-20 18:07 keep trying 阅读(195) 评论(0) 推荐(0)

导航