menu
回家的路
回家的路
回家的路
时间限制:10s 【
提交
】 空间限制:128MB
题目描述
输入格式
输出格式
样例输入
2 1 1 2 1 1 2 2
样例输出
5
提示
N<=20000,M<=100000
题目来源
没有写明来源