Submission #27998


ソースコード

1
2
3
4
5
6
7
8
n = int(input())
sorted_list = []
for _ in range(n):
name, japanese, math, english = input().split()
sorted_list.append((-(int(japanese) + int(math) + int(english)), name))
sorted_list.sort()
for i in range(n):
print(i + 1, sorted_list[i][1], -sorted_list[i][0])

ステータス

項目 データ
問題 0054 - てすと
ユーザー名 KirikaYuumura
投稿日時 2017-10-26 14:56:10
言語 Python3
状態 Accepted
得点 2
ソースコード長 283 Byte
最大実行時間 59 ms
最大メモリ使用量 4116 KB

セット

セット 得点 Cases
1 ALL 2 / 2 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 59 ms 4100 KB
1
in2.txt AC 36 ms 4116 KB
1
in3.txt AC 39 ms 4008 KB
1
in4.txt AC 33 ms 4024 KB
1
in5.txt AC 37 ms 4036 KB
1