Search found 5 matches

by irmen
Tue Jul 16, 2002 8:16 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 25448

Re: 195 - WA again and again

Your prog doesn't compile here without changing #include <strstream.h> to #include <strstream>

After that, I can't get your prog to read a basic input file:

1
test

It doesn't read the word. Just exits...
by irmen
Sun Jul 14, 2002 4:00 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 25448

Initialization is ok, You can try these cases 3 aaBBe bb eeeb I get the following output with this test case: aaBBe aaBeB aaeBB aBaBe aBaeB aBBae aBBea aBeaB aBeBa aeaBB aeBaB aeBBa BaaBe BaaeB BaBae BaBea BaeaB BaeBa BBaae BBaea BBeaa BeaaB BeaBa BeBaa eaaBB eaBaB eaBBa eBaaB eBaBa eBBaa bb beee eb...
by irmen
Sun Jul 14, 2002 1:21 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 25448

sorting... that must be it

Argh ofcourse now I'm reading the problem description again, and I see my sorting is not quite right :P Thanks (edit) GRR :evil: I changed the sorting and still a Wrong Answer. with input: 1 aabB my program outputs: aaBb aabB aBab aBba abaB abBa Baab Baba Bbaa baaB baBa bBaa I think I covered all ca...
by irmen
Sat Jul 13, 2002 11:36 pm
Forum: Other words
Topic: New language: Python ?
Replies: 10
Views: 8453

New language: Python ?

Hi I'd be very happy if the judge could accept a fifth programming language, namely Python . Python is ideal for the sorts of algorithmic problems found here, and it is also ready for an online judge system because there's builtin support for restricted execution. Furthermore it is extremely portabl...
by irmen
Sat Jul 13, 2002 11:09 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 25448

195: anagram, wrong answer

Hi I keep getting "wrong answer" although I'm pretty sure my output is correct. What do I miss here? I've kludged with the input code to accept even empty lines (empty words) but this didn't help. Here's my program: (as you see, it uses STL algorithms, so there should be nothing wrong with the algor...

Go to advanced search