cf/mirror

New Year and Finding Roots

CF
750F2800· international gm2s256 MB⇄ interactive

Examples

Sample 1of 2
Input
1
3
3
4 5 7
2
1 2
1
2
Output
? 1
? 5
? 6
! 5
Sample 2of 2
Input
2
2
1
3
2
1 2
2
1 2
4
3
3 12 13
Output
? 1
? 3
? 3
! 3
? 6
! 1
750F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…