Search found 5 matches

by Digit
Sat May 07, 2005 8:26 am
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 21001

Yes, a 'X' may only appear at the 10th position. Very Strange, don't know what else may be wrong. BUT: Your program says: 0-89237-010-6 TEST is incorrect. My program says: 0-89237-010-6 TEST is correct. Although '0-89237-010-6 TEST' is obviously wrong. Seems that there are no such testcases. In an o...
by Digit
Fri May 06, 2005 8:42 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 21001

There are some differences to my output:

Your program says:
XX-0000000000-XX is correct.
XX000000XXX0000XXXXX is correct.

My (accepted) program says:
XX-0000000000-XX is incorrect.
XX000000XXX0000XXXXX is incorrect.
by Digit
Tue Feb 08, 2005 3:25 pm
Forum: Volume 100 (10000-10099)
Topic: 10081 - Tight Words
Replies: 16
Views: 6069

10081 (Tight Words) - Wrong Answer

I'm trying to solve 10081, Tight words, but I'm getting WA all the time. Can anybody give me the number of tight words for input '9 100' ? I know that this is not asked, but this is part of the solution. My program says 1069966138. Is this correct? Or maybe someone has some input/output for testing?...
by Digit
Fri Feb 04, 2005 6:43 pm
Forum: Volume 1 (100-199)
Topic: 123 - Searching Quickly
Replies: 55
Views: 4753

Perhaps your arrays are too small. Words to ignore can be at most 20 characters long, at title at most 400 characters according to your code. May be this is not enough?
I really don't know, but this may be a reason.
by Digit
Thu Jan 27, 2005 10:30 am
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 35310

Try this:

Code: Select all

Input:

4 4
3 3 3 3
3 3 3 3
3 3 3 1
1 1 1 1
4 4
3 3 3 1
3 3 3 3
3 3 3 1
1 1 1 1
4 4
3 3 
3 1 3 3 3 
3 3 3 3 1 1 
1 1 1
4 6
1 1 1 3 3 1
3 3 3 1 3 1
1 1 1 1 1 3
3 3 3 3 1 1

Output:

4 4 4 3
4
4 4 4 1
4
4 4 4 1
4
1 1 1 2 3 2
6

Go to advanced search