22126_GetReady_

2022-5-16 18:21| 发布者: Hocassian| 查看: 31| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-5-89506130649200-Problem List-采集的数据-后羿采集器.html

Pro.ID

22126

Title

Get Ready?

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=22126

AC

0

Submit

0

Ratio

-

时间&空间限制

  • Time Limit: 3000/1000 MS (Java/Others)     Memory Limit: 131072/65536 K (Java/Others)
  • 描述

    Is this your first times participating in this kind of contest? I think most of you will answer “Yes”. So let’s do this problem as warm-up and check whether the PCA2 work properly.

    Now, we will give you the information of some contests that are just like the one you are taking. Your task is to output their rank lists according to the contest rules you have already understood.

    输入

    There is only one number C ( <= 100 ) in the first line of the input, which is the number of For each contest, the first line contains only one number N indicating the total number of teams. And then follow N lines. Each line has three numbers Ti, Si, and Pi ( 1 <= Ti <= N, 0 <= Si <= 20, 0 <= Pi <= 10000 ), which stand for the ID, Score and Penalty of the f* team of the contest respectively. Specially, all teams’ scores are distinct.

    输出

    Description

    Is this your first times participating in this kind of contest? I think most of you will answer “Yes”. So let’s do this problem as warm-up and check whether the PCA2 work properly.

    Now, we will give you the information of some contests that are just like the one you are taking. Your task is to output their rank lists according to the contest rules you have already understood.

    Input
    There is only one number C ( <= 100 ) in the first line of the input, which is the number of For each contest, the first line contains only one number N indicating the total number of teams. And then follow N lines. Each line has three numbers Ti, Si, and Pi ( 1 <= Ti <= N, 0 <= Si <= 20, 0 <= Pi <= 10000 ), which stand for the ID, Score and Penalty of the f* team of the contest respectively. Specially, all teams’ scores are distinct.
    Output
    For each contest, you should output the rank list (team ID) in descent order in just one line. Numbers separate exactly one space.
    Sample Input
    2
    3
    3 2 200
    2 1 100
    1 3 300
    2
    1 2 222
    2 1 222
    Sample Output
    1 3 2
    1 2
    Source

    样例输入

    2
    3
    3 2 200
    2 1 100
    1 3 300
    2
    1 2 222
    2 1 222

    样例输出

    1 3 2
    1 2

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部