#P1796. D - Congruence Points

D - Congruence Points

题目描述

PDF

输入格式

As shown in the pdf.

输出格式

As shown in the pdf.

样例

3 
0 0 
0 1 
1 0 
2 0 
3 0 
3 1 

Yes 

3 
1 0 
1 1 
3 0 
-1 0 
-1 1 
-3 0 

No 

6 
10 5 
-9 3 
1 -5 
-6 -5 
6 9 
-9 0 
-7 -10 
-10 -5 
5 4 
9 0 
0 -10 
-10 -2 

Yes 

提示

AtCoder Beginner Contest 207 by 杨鑫