cf/mirror

Color Rows and Columns

CF
2000F1900· candidate master3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
1 4
6 3
1 5
4 4
5 10
1 1
1 1
1 1
1 1
1 1
2 100
1 2
5 6
3 11
2 2
3 3
4 4
3 25
9 2
4 3
8 10
4 18
5 4
8 5
8 3
6 2
Output
12
14
5
-1
17
80
35
2000F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)