10659 - Fitting Text into Slides

All about problems in Volume CVI. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Re: 10659 - Fitting Text into Slides

Postby coze » Tue Oct 21, 2008 3:23 pm

Please try the following case:

input:
Code: Select all
1
1
abc abcd
24 100

your output:
Code: Select all
8

my output:
Code: Select all
No solution
coze
New poster
 
Posts: 26
Joined: Tue Nov 27, 2007 7:56 am
Location: Japan

Re: 10659 - Fitting Text into Slides

Postby DD » Tue Oct 21, 2008 5:20 pm

coze wrote:Please try the following case:

input:
Code: Select all
1
1
abc abcd
24 100

your output:
Code: Select all
8

my output:
Code: Select all
No solution

Finall, I got A.C. Thank you, coze. I really appreciate it.
It seems that I misunderstood the definition of "wrapping" at the very beginning. :D
Have you ever...

    Wanted to work at best companies?
    Struggled with interview problems that could be solved in 15 minutes?
    Wished you could study real-world problems?
If so, you need to read Elements of Programming Interviews.
DD
Experienced poster
 
Posts: 145
Joined: Thu Aug 14, 2003 8:42 am
Location: Mountain View, California

Previous

Return to Volume CVI

Who is online

Users browsing this forum: No registered users and 0 guests

cron