Page 2 of 2
Posted: Wed Aug 25, 2004 3:57 am
by minskcity
little joey wrote:All the obvious trickies are in the sample input. Everything more would be a spoiler.
One advise: Don't assume anything that's not explicitly written in the problem description. I did that and got 10+ WAs before finaly getting AC.
I've got more than 15 WAs.
Why don't you post what were your mistakes before you get AC?
Posted: Sat Apr 16, 2005 7:03 am
by Emilio
Hello,
I'm getting WAs, a lot of them and I can't encounter the reason of this,
Could anyone with an AC code say me what is the output for this?
Code: Select all
ab
abc
a1b
1ab
0ab
a0b
aaa
ab
abc
a11b
a12b
ab1
ab2
ab12
a1b1
a1b2
1
2
123
321
122
00A
0123
001234
004321
007
ab abc a1b a0b ab a12b
ab 0ab 1ab aaa
a11b a12b
ab abc ab2 ab12
abc ab1 a1b1 a1b2
1 2 123 007
321 122 00A
0123 001234 004321
ab
abc
ab abc
ab abc
asdfasdfasdfasdfasdfasdf
asdfasdfasdfasdfasdfasdf
And another thing, if you know some tricky input, please, say me it.
Are there blank texts or blank sets of keywords?
Thanks in advance!
Posted: Sat Apr 16, 2005 5:43 pm
by minskcity
In order to get AC the output should be:
Code: Select all
Case 1
001234 8
004321 8
007 6
00A 7
0123 8
0AB 2
1 6
122 7
123 6
1AB 2
2 6
321 7
A0B 1
A11B 3
A12B 1, 3
A1B 1
A1B1 5
A1B2 5
AAA 2
AB 1-2, 4
AB 1-2, 4
AB1 5
AB12 4
AB2 4
ABC 1, 4-5
ABC 1, 4-5
Case 2
AB 1-2
ABC 1-2
Case 3
ASDFASDFASDFASDFASDFASDF 1
Ignore the spaces at the end of each line - those are added by bulletin board. I knew this problem was screwed

Posted: Sat Apr 16, 2005 7:55 pm
by Emilio
Thanks minskcity,
I have got AC. My fault was I thought repeated words only would must be showed only one time and another small bug.
Thanks another time!
Posted: Sat Apr 30, 2005 6:53 pm
by Guest
The following input tests the case for which I was getting WA for a very long time.
Input:
Word1
Word2
Word3
word1...word2...word3
Output:
Case 1
WORD1 1
WORD2 1
WORD3 1
Posted: Thu Mar 29, 2007 8:17 pm
by sjn
can anybody give more cases?
i pass all the test cases above, but still WA

(((
Re: 698 - Index
Posted: Sat Apr 16, 2011 6:37 pm
by Dominik Michniewski
All tricky tests were posted before I think.
Crytial thing is write to output even duplicated words in index (this was my mistake).