ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1038. Spell Checker

One more WA2, and none of the tests help
Posted by Hristo Nikolaev (B&W) 17 Dec 2022 01:31
I tried everything suggested in the discussion.
Each test works, but when I submit, I get WA2.

Can you please add more tests?
Re: One more WA2, and none of the tests help
Posted by Hristo Nikolaev (B&W) 17 Dec 2022 02:18
Strange ... and now I got AC without any change to the logic.
Just made each char taken from getchar() processed immediately instead of filling an array and then processing the array.
Both versions work equally well on my computer. I use VS 2022.

And one more thing -
absolutely the same way of reading the input and filling the array I initially had a WA2 with, worked perfectly for problem 1601. AntiCAPS. (Actually that's where I copied the functionality from before I start).

I guess Admins should take a look at this.

Edited by author 17.12.2022 02:22