698 - Index

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

Moderator: Board moderators

minskcity
Experienced poster
Posts: 199
Joined: Tue May 14, 2002 10:23 am
Location: Vancouver

Post by minskcity » Wed Aug 25, 2004 3:57 am

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?

Emilio
Experienced poster
Posts: 163
Joined: Sun Oct 17, 2004 8:31 pm
Location: Murcia, Spain

Post by Emilio » Sat Apr 16, 2005 7:03 am

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!

minskcity
Experienced poster
Posts: 199
Joined: Tue May 14, 2002 10:23 am
Location: Vancouver

Post by minskcity » Sat Apr 16, 2005 5:43 pm

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 :-?

Emilio
Experienced poster
Posts: 163
Joined: Sun Oct 17, 2004 8:31 pm
Location: Murcia, Spain

Post by Emilio » Sat Apr 16, 2005 7:55 pm

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!

Guest
New poster
Posts: 39
Joined: Wed May 19, 2004 5:52 pm
Location: Dhaka, Bangladesh
Contact:

Post by Guest » Sat Apr 30, 2005 6:53 pm

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

sjn
Learning poster
Posts: 73
Joined: Mon Apr 08, 2002 8:22 am
Contact:

Post by sjn » Thu Mar 29, 2007 8:17 pm

can anybody give more cases?
i pass all the test cases above, but still WA :-((((

Dominik Michniewski
Guru
Posts: 834
Joined: Wed May 29, 2002 4:11 pm
Location: Wroclaw, Poland
Contact:

Re: 698 - Index

Post by Dominik Michniewski » Sat Apr 16, 2011 6:37 pm

All tricky tests were posted before I think.
Crytial thing is write to output even duplicated words in index (this was my mistake).
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)

Post Reply

Return to “Volume 6 (600-699)”