#P1594. Dominating Duos

Dominating Duos

题目描述

Click here to read PDF of this problem

输入格式

As shown in the PDF.

输出格式

As shown in the PDF

样例

3 
2 
1 
3 

3 

6 
1 
3 
2 
6 
4 
5 

7 

提示

by 20张席畅