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 1889. Airport Announcements

For whom, who get WA 14
Posted by Gleb_Kazantaev(NNSTU) 18 Jul 2014 12:45
Try this test:
10
e
e
f
f
unknown
g
unknown
g
d
d
Answer: Igor is wrong. But my programm gave me "5", because i forgot check v[j] when last="unknown".

if (last == "unknown" && v[j] != "unknown")
                    {
                        last = v[j];
                        if (m[last] == true) f = false;
                    }