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 1276. Train

vrandik tests [3] // Problem 1276. Train 1 Sep 2004 00:05
What answer must be in this input???:
7 7
AA
AA
AB
AB
AB
BA
BA
BA
Grebnov Ilya[Ivanovo SPU] Re: tests [2] // Problem 1276. Train 1 Sep 2004 01:47
YES
4
wwby Re: tests [1] // Problem 1276. Train 5 Sep 2004 15:47
Why not
YES
6 ?
AAAAABBAABBAAB
ABBAAAAAABBAAB
ABBAABBAAAAAAB
AAABBAAAABBAAB
ABBAAAABBAAAAB
AAABBAABBAAAAB
ahyangyi_newid Re: tests // Problem 1276. Train 8 Jan 2006 12:53
AA(the first one) is the locomotive , not BA(the last one).
And your answer made me puzzled for a long time! :(