水题
文章平均质量分 59
刘荣浩
And your bird can sing.
展开
-
URAL 1014
题目:1014. Product of DigitsTime limit: 1.0 second Memory limit: 64 MBYour task is to find the minimal positive integer number Q so that the product of digits of Q is exactly equal to N.Input The input原创 2016-07-24 19:29:52 · 369 阅读 · 0 评论 -
CodeForces 546B
Soldier and BadgesTime Limit:3000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uColonel has n badges. He wants to give one badge to every of his n soldiers. Each badge has a coolness fac原创 2016-03-27 01:07:15 · 778 阅读 · 0 评论 -
CodeForces 611B
New Year and Old PropertyTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uThe year 2015 is almost over. Limak is a little polar bear. He has recently learnt about the binar原创 2016-03-27 00:37:05 · 466 阅读 · 0 评论 -
CodeForces 610B - Vika and Squares
题目: B - Vika and Squares Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uDescription Vika has n jars with paints of distinct colors. All the jars are numbered from 1 to原创 2016-07-12 20:35:42 · 522 阅读 · 0 评论 -
hdu5655-BestCoder Round #78 (div.2)
题目: CA Loves StickTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 2126 Accepted Submission(s): 612Problem Description CA loves to play w原创 2016-07-15 19:27:25 · 233 阅读 · 0 评论 -
HDU5641(打表,模拟)
题目:King’s PhoneTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 2894 Accepted Submission(s): 659Problem Description In a military parade, th原创 2016-07-15 18:25:16 · 274 阅读 · 0 评论 -
poj3096 Surprising Strings (STL中map)
题目链接:http://poj.org/problem?id=3096 题意: 定义字符串str,定义D-pair为str[i]和str[i+D+1]组成的两个字符长度的字符串,定义一个unique string是任意两个D-pair互不相同,定义一个surprise string是一个str长度范围内所有的D-pair都是unique 思路: 枚举D的取值,遍历所有的D-原创 2016-09-11 15:37:35 · 350 阅读 · 0 评论 -
CodeForces 5B Center Alignment
题目链接:http://codeforces.com/problemset/problem/5/B 当某一行长度为奇数时,意味着左右空格数不等,那么观察样例,先是左边空格少一个,再遇到长度为奇数的行时,右边空格多一个 代码: #include #include #include #include #include #include #include #inclu原创 2016-10-08 12:31:44 · 608 阅读 · 0 评论 -
codefoces - 1A - Theatre Square
Theatre Square time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Theatre Square in the capital city of Berland原创 2017-03-18 01:08:18 · 278 阅读 · 0 评论 -
codeforces - 1B - Spreadsheets
Spreadsheets time limit per test 10 seconds memory limit per test 64 megabytes input standard input output standard output In the popular spreadsheets systems (for examp原创 2017-03-18 01:21:13 · 485 阅读 · 0 评论 -
codeforces - 2A - Winner
Winner time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output The winner of the card game popular in Berland "Berlog原创 2017-03-18 01:33:49 · 391 阅读 · 0 评论 -
Codeforces Round #337 (Div. 2) 610A(水)
题目: A - Pasha and Stick Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uDescription Pasha has a wooden stick of some positive integer length n. He wants to perform exact原创 2016-07-12 20:16:12 · 337 阅读 · 0 评论 -
HDU5645(水)
题目:DZY Loves BallsTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 1075 Accepted Submission(s): 586Problem Description DZY loves playing b原创 2016-07-15 19:19:12 · 280 阅读 · 0 评论 -
CodeForces 476A Dreamoon and Stairs
题目:A. Dreamoon and Stairstime limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard outputDreamoon wants to climb up a stair of n steps. He can climb 1 or 2 st原创 2016-07-24 19:41:37 · 481 阅读 · 0 评论 -
CodeForces 489B BerSU Ball
题目:BerSU BallTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u SubmitStatusPracticeDescription The Berland State University is hosting a ballroom dance in celebration of i原创 2016-07-24 19:50:59 · 364 阅读 · 0 评论 -
HDU5640(水)
题目:King’s CakeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1105 Accepted Submission(s): 768Problem Description It is the king’s birthday原创 2016-07-15 17:08:34 · 363 阅读 · 0 评论 -
HDU5327(基础题)
题目: G - Olympiad Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uDescription You are one of the competitors of the Olympiad in numbers. The problem of this year relates t原创 2016-07-12 09:32:52 · 327 阅读 · 0 评论 -
HDU2091(基础题)
题目:D - 空心三角形 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescription 把一个字符三角形掏空,就能节省材料成本,减轻重量,但关键是为了追求另一种视觉效果。在设计的过程中,需要给出各种花纹的材料和大小尺寸的三角形样板,通过电脑临时做出来,以便看看效果。 Input 每行包含原创 2016-07-12 09:07:21 · 2585 阅读 · 0 评论 -
HDU2039(基础题)
题目: C - 三角形 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u SubmitStatus Description 给定三条边,请你判断一下能不能组成一个三角形。Input 输入数据第一行包含一个数M,接下有M行,每行一个实例,包含三个正数A,B,C。其中A,B,C <1000原创 2016-07-12 08:58:04 · 698 阅读 · 0 评论 -
HDU2031(基础题)
题目: 进制转换 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescription 输入一个十进制数N,将它转换成R进制数输出。Input 输入数据包含多个测试实例,每个测试实例包含两个整数N(32位整数)和R(2<=R<=16, R<>10)。 Output 为每个测试实例输出转原创 2016-07-12 08:52:02 · 2227 阅读 · 0 评论 -
HDU1019(基础题)
题目: A - Least Common Multiple Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u SubmitStatus Description The least common multiple (LCM) of a set of positive integers is原创 2016-07-12 08:44:03 · 485 阅读 · 1 评论 -
CodeForces 487A(水题)
Codeforces Round #278 (Div. 1)–AFight the MonsterA monster is attacking the Cyberland!Master Yang, a braver, is going to beat the monster. Yang and the monster each have 3 attributes: hitpoints (HP), o原创 2016-03-19 22:46:57 · 560 阅读 · 0 评论 -
Codeforces Round #320 (Div. 2) 579B(水)
题目意思如下: There is a programing contest named SnakeUp, 2n people want to compete for it. In order to attend this contest, people need to form teams of exactly two people. You are given the strength of e原创 2016-03-19 14:03:02 · 593 阅读 · 0 评论 -
openjudge 百练 熄灯问题
熄灯问题 Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Description 有一个由按钮组成的矩阵,其中每行有6个按钮,共5行。每个按钮的位置上有一盏灯。当按下一个按钮后,该按钮以及周围位置(上边、下边、左边、右边)的灯都会改变一次。即,如果灯原来是点亮的,原创 2016-07-29 14:28:13 · 1846 阅读 · 0 评论