+ -
当前位置:首页 → 问答吧 → 每周编程题 (10/5 - 16/5)

每周编程题 (10/5 - 16/5)

时间:2014-05-25

来源:互联网

今次题目较为有挑战性:
FONTSIZE

遇到困难,请试试睇 TopCoder 教学网页,亦欢迎发问。

常用 SPOJ 题术语解释:
AC - 代表 Accepted,表示答案符合要求,已被接受。WA - 代表 Wrong Answer,表示答案出错。TLE - 代表 Time Limited Exceeded,表示超出时间限制。RTE - 代表 Run Time Error,表示执行时出现错误。

[ 本帖最后由 fitcat07 於 2014-5-9 10:41 PM 编辑 ]

作者: fitcat07   发布时间: 2014-05-25

引用:原帖由 fitcat07 於 2014-5-9 10:40 PM 发表
今次题目较为有挑战性:
FONTSIZE

遇到困难,请试试睇 TopCoder 教学网页,亦欢迎发问。

常用 SPOJ 题术语解释:
AC - 代表 Accepted,表示答案符合要求,已被接受。WA - 代表 Wrong Answer,表示答案 ...
hi fitcat,

这一题实用性很大,而且骤眼看似乎不太难,但你说有挑战性,那也不会很容易吧。anyway, 有个问题想问一下:题目的 input

Input

The first line is the width of the billboard in inches, 0 <= W <= 7500, and the height of the billboard in inches, 0 <= H <= 7500.
The third line is the non-empty message, which is comprised of alphanumeric words separated by single spaces. The message is most 10,000 characters long.
third line 是指第二行吗?

作者: assembly.jc   发布时间: 2014-05-25

引用:原帖由 assembly.jc 於 2014-5-14 06:22 AM 发表
third line 是指第二行吗?
哈哈,你找到错处了
在此题留下你嘅注解,好等作者改正吧。

同意你所讲,此题有高实用性(其他问题有关优化都系),值得玩玩研究
此题最少须要 3 个解答问题技巧,难唔难取决於你对佢哋嘅认识。如果你一早已掌握咗,咁就唔难。

作者: fitcat07   发布时间: 2014-05-25