Problem N
Bocchi's Rocks
Languages
en
ja
sv
Bocchi has a collection of
Input
First row consists of a single integer,
It is guaranteed that the weights of all rocks are different.
Output
Output
Points
Your solution will be tested on several test case groups. To
get the points for a group, it must pass all the test cases in
the group.
Group |
Point value |
Constraints |
|
|
|
|
|
|
|
|
No further constraints. |
Sample Input 1 | Sample Output 1 |
---|---|
5 3 9 4 1 7 |
1 4 2 0 3 |
Sample Input 2 | Sample Output 2 |
---|---|
7 1 3 5 7 2 4 6 |
0 2 4 6 1 3 5 |