結果

問題 No.570 3人兄弟(その1)
コンテスト
ユーザー lam6er
提出日時 2025-03-20 18:39:10
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 415 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 239 ms
コンパイル使用メモリ 95,856 KB
実行使用メモリ 79,104 KB
最終ジャッジ日時 2026-07-07 07:11:52
合計ジャッジ時間 1,770 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# Read the three heights
ha = int(input())
hb = int(input())
hc = int(input())

# Create a list of tuples containing height and corresponding letter
people = [
    (ha, 'A'),
    (hb, 'B'),
    (hc, 'C')
]

# Sort the list in descending order based on height
sorted_people = sorted(people, key=lambda x: x[0], reverse=True)

# Output the letters in the sorted order
for person in sorted_people:
    print(person[1])
0