Submission #12311209


Source Code Expand

Copy
import sys

n = int(input())
rs = [ [i+1, input().split()] for i in range(n) ]
#print(rs)

rs = sorted(rs, key=lambda a:int(a[1][1]), reverse=True)
rs = sorted(rs, key=lambda a:a[1][0])

for r in rs:
    print(r[0])

Submission Info

Submission Time
Task B - Guidebook
User shinobe
Language Python3 (3.4.3)
Score 200
Code Size 225 Byte
Status
Exec Time 17 ms
Memory 3060 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 01.txt, 02.txt
All 200 / 200 01.txt, 02.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt
Case Name Status Exec Time Memory
01.txt 17 ms 2940 KB
02.txt 17 ms 3060 KB
11.txt 17 ms 2940 KB
12.txt 17 ms 3060 KB
13.txt 17 ms 2940 KB
14.txt 17 ms 3060 KB
15.txt 17 ms 3060 KB