cf/mirror

Salyg1n and the MEX Game

CF
1867C1300· pupil3s256 MB⇄ interactive

Examples

Sample 1of 1
Input
3
5
1 2 3 5 7
 
7
 
5
 
-1
 
3
0 1 2
 
0
 
-1
 
3
5 7 57
 
-1
Output
8
 
57
 
0
 
3
 
0
 
0
1867C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)