cf/mirror

Max and Mex

CF
1496B1100· newbie1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1
Input
5
4 1
0 1 3 4
3 1
0 1 4
3 0
0 1 4
3 2
0 1 2
3 2
1 2 3
Output
4
4
3
5
3
1496B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)