Problem 28564 --迷宫

28564: 迷宫

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 1  Solved: 1
[Submit][Status][Web Board][Creator:][下载FPS0元][添加到购物车][下载测试数据0元][20630kb]

Description

Input

Output

Sample Input

3
2 3
2 4
6 8

Sample Output

3
3
5

HINT

Source

[Submit][Status]