cf/mirror

K-th Largest Value

CF
1491A800· newbie1s256 MB⌨ stdin/stdout

Examples

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