Problem C. Islands Travel 单点时限:1000ms 内存限制:256MB Line 1: an integer N. Line 2~N+1: each line contains two integers Xi and Yi. For 100% data, N<=100000,0<=Xi,Yi<=1000000000. Output the minimum cost. 样例输出