P2912 [USACO08OCT] Pasture Walking G
题目描述
The N cows (2
输入格式
无
输出格式
无
说明/提示
Query 1: The walkway between pastures 1 and 2 has length 2.
Query 2: Travel through the walkway between pastures 3 and 4, then the one between 4 and 1, and finally the one between 1 and 2, for a total length of 7.