cf/mirror

Monotone Subsequence

CF
2152E2100· master2s1024 MB⇄ interactive

Examples

Sample 1of 1
Input
2
1
 
2 1 2
 
2
 
1 1
 
2 2 3
Output
? 2 1 2
 
! 1 2
 
? 3 1 2 3
 
? 3 2 3 5
 
! 1 3 4
2152E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…