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...
Search found 5 matches
- Tue Jul 16, 2002 8:16 pm
- Forum: Volume 1 (100-199)
- Topic: 195 - Anagram
- Replies: 242
- Views: 58117
- Sun Jul 14, 2002 4:00 pm
- Forum: Volume 1 (100-199)
- Topic: 195 - Anagram
- Replies: 242
- Views: 58117
- Sun Jul 14, 2002 1:21 pm
- Forum: Volume 1 (100-199)
- Topic: 195 - Anagram
- Replies: 242
- Views: 58117
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 ...
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 ...
- Sat Jul 13, 2002 11:36 pm
- Forum: Other words
- Topic: New language: Python ?
- Replies: 10
- Views: 11394
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 ...
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 ...
- Sat Jul 13, 2002 11:09 pm
- Forum: Volume 1 (100-199)
- Topic: 195 - Anagram
- Replies: 242
- Views: 58117
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 ...
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 ...