题目来源:P2058 海港
#输入1
3
1 4 4 1 2 2
2 2 2 3
10 1 3
#输出1
3
4
4
#输入2
4
1 4 1 2 2 3
3 2 2 3
86401 2 3 4
86402 1 5
#输出2
3
3
3
4
AC代码
#include <iostream>
#include <queue>
using namespace std;
typedef long long ll;
const ll maxn =
题目来源:P2058 海港
#输入1
3
1 4 4 1 2 2
2 2 2 3
10 1 3
#输出1
3
4
4
#输入2
4
1 4 1 2 2 3
3 2 2 3
86401 2 3 4
86402 1 5
#输出2
3
3
3
4
AC代码
#include <iostream>
#include <queue>
using namespace std;
typedef long long ll;
const ll maxn =