|
|
back to boarduse simple algorithm: - checks only initial. - keep state of previous - initial state of previous is 1, since postman is in leftmost case useful test cases: ---- 1 Bambi 1 (not 0, because he moves to second case with one step) ---- 1 Alice 0 ---- 1 Dumbo 2 --- WA 5, but test is true( sorry, because I don't know English:) Didn't get your testcase; if Bambi, Alice and Dumbo are the Kids, the answer should be 3, right? |
|
|