Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Distance to the Prey
Description Zhizhu is a intelligent spider. His mean of weaving is different from everyone: His first web was called S Today a insect touches the web and gets stuck. The insect is located at ( Input There are multiple test cases. Each case contains one line consisting of 4 integers Output For each test case you need to print one number, the distance Zhizhu has to walk. Sample Input 5 3 6 4 Sample Output 2 Hint The figure above is one part of S Source POJ Monthly--2007.11.25, Yang Yi |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator