1215 - String Cutting

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

Moderator: Board moderators

Post Reply
Yousuf
New poster
Posts: 13
Joined: Thu Jun 09, 2011 8:22 am

1215 - String Cutting

Post by Yousuf »

Input:

Code: Select all

10
3 
5 3 6 
ababccd 
2 
4 2 
ababcd
7
1 2 3 4 5 6 7
abcbacbd
7
7 6 5 4 3 2 1
abcbacbd
3
1 4 2
aaaaaaaaaa
10
1 20 12 15 5 25 16 19 9 8
abcdefghijklmnopqrstuvwsyz
25
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
abcdefghijklmnopqrstuvwsyz
10
8 9 19 16 25 5 15 12 20 1
abcdefghijklmnopqrstuvwsyz
16
2 30 13 9 41 49 53 11 5 27 19 21 29 33 17 38
akjveiopqpoifasamvndklazcrtjkghdekfazjfpppaqqmmnbftres
3
1 2 3
abcd
AC output:

Code: Select all

7
4
21
17
0
112
330
106
144
9
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

Re: 1215 - String Cutting

Post by uDebug »

Yousuf,

Thanks for sharing these great test cases.
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.
Post Reply

Return to “Volume 12 (1200-1299)”