АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

682. Knight's move

Time Limit: 1 seconds
Memory Limit:65535KB
Points:10
View Problem Statistics Submit Problem added Administrator

Требуется за наименьшее количество ходов провести шахматного коня из заданного   начального пункта в заданный конечный пункт.

Входные данные - одна строка, в которой записаны без пробелов начальный и конечный пункты в шахматной нотации.

Выходные данные - минимальное количество ходов.

Пример входных и выходных данных

INPUT                        OUTPUT

a1h3                5

 


View Problem Statistics Submit Author/source:
Problems from Contests / VoSTU Selection Rounds / Selection Round to Interuni Contest 2009 /
681. Correct Brackets 682.
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.718 sec.
© Copyright VSTU, AVT, Nosov D.A.