问题1321--Xepa Predator

1321: Xepa Predator

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 128 MB

提交

题目描述

Xepa Legends is a famous FPS game, you are in a 3-player team and should fight with the other 19 teams, if you were in the only living team, you will win the game and become the Xepa Champion.
Now, your goal is the highest rank in Xepa Legends -- Xepa Predator, so you should calculate your ranking in every competition preciously. There is the data of one competition, I will tell you how to calculate your ranking.
There are two important factors in one competition, performance point and skill point, and the ranking point is equal to double the performance point added to the skill point. Formally, ranking point = 2 * performance point + 1 * skill point. When the competition finishes, all players will be ranked by ranking point descendingly. If they have the same ranking point, be ordered descendingly by the performance points; if they have the same ranking point and performance points, be ordered descendingly by the skill points; if all of the ranking points, the performance points and the skill points are identical, be ordered ascendingly by their unique integer IDs.
You know your ID and your mission is to calculate your ranking in this competition.

输入

The first line is your unique integer ID.
The second line is the IDs of 60 players. Assume that your ID is in this sequence.
The third line is the performance points of 60 players.
The fourth line is the skill points of 60 points.

输出

Your ranking in this competition. Especially, if you are the No.1, output "Xepa Champion" (without quotation marks).

样例输入 Copy

1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
40 98 76 93 73 20 3 23 4 98 95 48 95 96 29 4 59 33 97 25 67 53 8 41 10 0 98 98 48 45 3 4 46 18 74 25 12 15 69 35 14 27 47 94 29 96 24 7 6 27 14 83 89 75 64 64 68 9 97 17
45 44 30 46 35 41 21 28 29 24 46 46 46 22 47 49 29 38 34 25 25 36 30 25 43 32 32 34 33 33 24 47 30 36 32 41 42 28 32 37 34 26 21 22 41 25 30 48 25 23 43 39 20 42 28 28 38 33 40 32

样例输出 Copy

28

提示

Values' range:
IDs are integers, and in the range [1, 100000].
0 <= performance point, skill point <= 6000, and are both integers.

来源/分类