Yet Another Array Queries Problem
863D1800· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
6 3 51 2 3 4 5 62 1 32 3 61 1 62 2 1 5 3
Output
3 3 1 5 2
58%
863D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
6 3 51 2 3 4 5 62 1 32 3 61 1 62 2 1 5 3
3 3 1 5 2