C. ABC343F : Second Largest Query
time limit per test
1 s.
memory limit per test
256 MB
input
standard input
output
standard output

Solve ABC343F : Second Largest Query to learn about non trivial usage of Atcoder's segment tree as a blackbox.