IO-05. 输出短句I(5)时间限制100 ms内存限制65536 kB代码长度限制8000 B判题程序Standard来源ZOJ本题要求编写程序,输出一个短句“Programming in C is fun!”。输入格式:本题目没有输入。输出格式:在一行中输出短句“Programming in ...
分类:
其他好文 时间:
2014-12-17 00:04:05
阅读次数:
365
Battle Ships is a new game which is similar to Star Craft. In this game, the enemy builds a defense tower, which has L longevity. The player has a military
factory, which can produce N kinds of batt...
分类:
其他好文 时间:
2014-12-15 23:40:22
阅读次数:
304
Yesterday, my teacher taught us about math: +, -, *, /, GCD, LCM... As you know, LCM (Least common multiple) of two positive numbers can be solved easily because of a * b = GCD (a, b)
* LCM (a, b).
...
分类:
其他好文 时间:
2014-12-15 23:38:50
阅读次数:
287
Because of the 90th anniversary of the Coherent & Cute Patchouli (C.C.P), Kawashiro Nitori decides to buy a lot of rare things to celebrate.
Kawashiro Nitori is a very shy kappa (a type of wate...
分类:
编程语言 时间:
2014-12-15 23:38:12
阅读次数:
285
给定一个m*n的方格子,要求用3*1的骨牌去覆盖,骨牌可以用横放或者竖放,问最终有多少种放置方式,将其铺满。分析:由于最多30行,每行最多9列,所以可以按行来dp,设计每行的状态从而进行转移,考虑每个骨牌放置对下一行的影响,共有0,1,2,3种方式,0对应横放或者竖放时最下面那个格子,此行对下一行没...
分类:
其他好文 时间:
2014-12-13 21:44:15
阅读次数:
152
ZOJ问题
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2905 Accepted Submission(s): 878
Problem Description
对给定的字符串(只包含'z','o','j'三种字...
分类:
其他好文 时间:
2014-12-13 13:30:18
阅读次数:
121
上题目
Problem Description
读入一个字符串,字符串中包含ZOJ三个字符,个数不一定相等,按ZOJ的顺序输出,当某个字符用完时,剩下的仍然按照ZOJ的顺序输出。
Input
题目包含多组用例,每组用例占一行,包含ZOJ三个字符,当输入“E”时表示输入结束。
1
Output
对于每组输入,请输出一行,表示按照要求处理后的字符串。
具体可见样例。...
分类:
其他好文 时间:
2014-12-12 19:18:28
阅读次数:
163
ZOJ问题
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2900 Accepted Submission(s): 877
Problem Description
对给定的字符串(只包含'z','o','j...
分类:
其他好文 时间:
2014-12-11 20:53:38
阅读次数:
140
ZOJ
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1899 Accepted Submission(s): 1344
Problem Description
读入一个字符串,字符串中包含ZOJ三个字...
分类:
其他好文 时间:
2014-12-11 20:53:34
阅读次数:
177
Count the Colors
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones.
Your...
分类:
其他好文 时间:
2014-12-10 21:22:48
阅读次数:
273