23 人解决,33 人已尝试。
36 份提交通过,共有 152 份提交。
5.2 EMB 奖励。
单点时限: 2.0 sec
内存限制: 256 MB
You are working for Macrohard company in data structures department. After failing your previous task about key insertion you were asked to write a new data structure that would be able to return quickly
That is, given an array
For example, consider the array
The first line of the input file contains
The second line contains
The following
For each question output the answer to it — the
7 3 1 5 2 6 3 7 4 2 5 3 4 4 1 1 7 3
5 6 3
23 人解决,33 人已尝试。
36 份提交通过,共有 152 份提交。
5.2 EMB 奖励。