結果

問題 No.571 3人兄弟(その2)
ユーザー RyutoRyuto
提出日時 2018-01-31 16:06:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 383 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 87,092 KB
実行使用メモリ 71,472 KB
最終ジャッジ日時 2023-08-28 17:30:54
合計ジャッジ時間 2,212 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,232 KB
testcase_01 AC 74 ms
71,376 KB
testcase_02 AC 76 ms
71,320 KB
testcase_03 AC 75 ms
70,984 KB
testcase_04 AC 77 ms
71,232 KB
testcase_05 AC 74 ms
71,284 KB
testcase_06 AC 74 ms
71,380 KB
testcase_07 AC 74 ms
71,104 KB
testcase_08 AC 74 ms
71,252 KB
testcase_09 AC 75 ms
71,472 KB
testcase_10 AC 76 ms
70,968 KB
testcase_11 AC 77 ms
71,296 KB
testcase_12 AC 74 ms
71,376 KB
testcase_13 AC 74 ms
71,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

from operator import itemgetter

tawe = []
tawe.append(tuple(['A'] + [int(x) for x in input().split()]))
tawe.append(tuple(['B'] + [int(x) for x in input().split()]))
tawe.append(tuple(['C'] + [int(x) for x in input().split()]))

tawe = sorted(tawe, key=itemgetter(2))
tawe = sorted(tawe, key=itemgetter(1), reverse=True)

for name in tawe:
    print(name[0])
0