题目描述
输入格式
输出格式
A single integer if T=1, otherwise two separated by spaces.
样例输入 #1
2 1 1 1 3 3 2 2 4 4
样例输出 #1
4
样例输入 #2
5 2 1 5 3 6 5 4 7 9 4 1 8 3 9 8 10 10 2 2 6 7
样例输出 #2
4 5
提示
Sample 1:
Sample 2:
来源
USACO 2022 February Contest, Platinum
A single integer if T=1, otherwise two separated by spaces.
2 1 1 1 3 3 2 2 4 4
4
5 2 1 5 3 6 5 4 7 9 4 1 8 3 9 8 10 10 2 2 6 7
4 5
Sample 1:
Sample 2: