![:evil:](./images/smilies/icon_evil.gif)
10659 - Fitting Text into Slides
Moderator: Board moderators
10659 - Fitting Text into Slides
Help with I/O Please! ![:evil:](./images/smilies/icon_evil.gif)
![:evil:](./images/smilies/icon_evil.gif)
-
- Experienced poster
- Posts: 123
- Joined: Thu Feb 10, 2005 4:46 am
Hi!
Can anyone send the output for this, please?
Thanks in advance!
Can anyone send the output for this, please?
Code: Select all
4
1
abc...
30 100
2
abc,ac
(de)ac
60 100
1
ab,.
30 100
1
a.
28 56
-
- Experienced poster
- Posts: 123
- Joined: Thu Feb 10, 2005 4:46 am
-
- Experienced poster
- Posts: 145
- Joined: Thu Aug 14, 2003 8:42 am
- Location: Mountain View, California
- Contact:
10659 - Fitting Text into Slides (WAing)
Does anyone can provide more I/O cases? This problem let me feel frustrated .
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?
Re: 10659 - Fitting Text into Slides
Heres some io test.
Output:
Code: Select all
8
1
a a
16 8
1
a a
17 8
1
aaa bbb
25 100
1
aaaa
27 10
1
aaa bbb ccc
24 24
2
aaaaa
bbbb c
100 100
1
a a
23 8
1
a a
9 30
Code: Select all
No solution
No solution
8
No solution
8
20
No solution
9
-
- Experienced poster
- Posts: 145
- Joined: Thu Aug 14, 2003 8:42 am
- Location: Mountain View, California
- Contact:
Re: 10659 - Fitting Text into Slides
Thanks for your help, coze. Although my program generated the same output results, I still got W.A.coze wrote:Heres some io test.
Output:Code: Select all
8 1 a a 16 8 1 a a 17 8 1 aaa bbb 25 100 1 aaaa 27 10 1 aaa bbb ccc 24 24 2 aaaaa bbbb c 100 100 1 a a 23 8 1 a a 9 30
Code: Select all
No solution No solution 8 No solution 8 20 No solution 9
![:(](./images/smilies/icon_frown.gif)
Does anyone can help me test the following input data?
Input:
Code: Select all
2
2
aaaaa
bbbb c
100 40
2
aaaaa
bbbb cc
100 40
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?
Re: 10659 - Fitting Text into Slides
Output:
Code: Select all
16
14
-
- Experienced poster
- Posts: 145
- Joined: Thu Aug 14, 2003 8:42 am
- Location: Mountain View, California
- Contact:
Re: 10659 - Fitting Text into Slides
Thanks, coze.coze wrote:Output:Code: Select all
16 14
It is strange that even my program pass every test case listed in the forum, I still can not get Accepted.
![:evil:](./images/smilies/icon_evil.gif)
Does anyone can give me more tricky input/output?
P.S. In my program, I set M to 10000, which I think this value should be big enough.
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?
Re: 10659 - Fitting Text into Slides
Can you show me your source code?
-
- Experienced poster
- Posts: 145
- Joined: Thu Aug 14, 2003 8:42 am
- Location: Mountain View, California
- Contact:
Re: 10659 - Fitting Text into Slides
Hi coze, my source code are listed, please check it.coze wrote:Can you show me your source code?
![:oops:](./images/smilies/icon_redface.gif)
Code: Select all
Cut code due to A.C.
Last edited by DD on Tue Oct 21, 2008 5:22 pm, edited 1 time in total.
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?
Re: 10659 - Fitting Text into Slides
Try this:
input:
your output:
my output:
input:
Code: Select all
1
1
aaa bbbbb
56 16
Code: Select all
No solution
Code: Select all
8
-
- Experienced poster
- Posts: 145
- Joined: Thu Aug 14, 2003 8:42 am
- Location: Mountain View, California
- Contact:
Re: 10659 - Fitting Text into Slides
First of all, thanks for your help, coze. But I still got W.A. after fixing the bug which I did not consider before.coze wrote:Try this:
input:your output:Code: Select all
1 1 aaa bbbbb 56 16
my output:Code: Select all
No solution
Code: Select all
8
![:evil:](./images/smilies/icon_evil.gif)
Please help me check again, thanks.
![:oops:](./images/smilies/icon_redface.gif)
Code: Select all
Cut code due to A.C.
Last edited by DD on Tue Oct 21, 2008 5:22 pm, edited 1 time in total.
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?