結果

問題 No.571 3人兄弟(その2)
コンテスト
ユーザー Ryuto
提出日時 2018-01-31 16:06:52
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 383 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 326 ms
コンパイル使用メモリ 84,992 KB
実行使用メモリ 52,608 KB
最終ジャッジ日時 2026-06-03 17:24:21
合計ジャッジ時間 1,903 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/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