結果

問題 No.571 3人兄弟(その2)
ユーザー souhei gunji
提出日時 2018-12-24 05:01:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-25 10:56:56
合計ジャッジ時間 1,401 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

ah,aw = map(int, input().split(' '))
bh,bw = map(int, input().split(' '))
ch,cw = map(int, input().split(' '))

d = {}
d['A'] = ah * 1000 + 1000 - aw
d['B'] = bh * 1000 + 1000 - bw
d['C'] = ch * 1000 + 1000 - cw

while(len(d.keys()) > 0):
    print(max(d, key=d.get))
    d.pop(max(d, key=d.get))
0