Because "0 3 4 5 3 0 6 7 8 6" can loop.
0 3 4 5 3 0 6 7 8 6 0 3 4 5 3 0 9 is smaller than 0 4 3 5 3 0 6 7 8 6 9.
And 0 3 4 5 3 0 6 7 8 6 0 3 4 5 3 0 6 7 8 6 0 3 4 5 3 0 9 is smaller.
And ....... Can't define Smallest drive.
Search found 5 matches
- Mon Mar 07, 2005 10:07 am
- Forum: Volume 108 (10800-10899)
- Topic: 10802 - Lex Smallest Drive
- Replies: 36
- Views: 17999
- Mon Feb 07, 2005 12:08 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10802 - Lex Smallest Drive
- Replies: 36
- Views: 17999
Thx. I got accepted.
this is my last test case. If you got WA, check this input.
this is my last test case. If you got WA, check this input.
Code: Select all
2
10 5 5
5 0
0 1
1 2
2 0
5 9
10 5 5
5 0
0 6
6 7
7 0
5 9
- Fri Feb 04, 2005 2:16 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10802 - Lex Smallest Drive
- Replies: 36
- Views: 17999
- Fri Aug 13, 2004 7:16 am
- Forum: Volume 105 (10500-10599)
- Topic: 10508 - Word Morphing
- Replies: 35
- Views: 15534
Word's length is so long...
number of words and number of letters are higher than 1000.
- Tue Jul 20, 2004 3:34 pm
- Forum: Volume 7 (700-799)
- Topic: 795 - Sandorf's Cipher
- Replies: 7
- Views: 8161
Sample Input/Output
Input
1234567890##########1234567890######
###############################12345
Output
851##0851###62##73##974###9#03###642
#########42#######51#######3
1234567890##########1234567890######
###############################12345
Output
851##0851###62##73##974###9#03###642
#########42#######51#######3