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 1051. Simple Game on a Grid

i don't understand why input 5 2 output = 1
Posted by TestT 29 Oct 2004 14:13
I don't understand why input 5 2 output = 1 too
Posted by Lukom 30 Jul 2005 20:10
I think that if
m==2
n>2
output must be 2!
Re: i don't understand why input 5 2 output = 1
Posted by Nutcracker 3 Oct 2005 20:31
That's it:

The 5:2 is:
ABCDE
FGHIJ

Jumps:
J->E; I->D; J->I; G->H; J->C; G->J; A->B; F->G; A->F

The stone A remains alone.