結果
| 問題 | No.570 3人兄弟(その1) | 
| コンテスト | |
| ユーザー |  lam6er | 
| 提出日時 | 2025-03-20 18:39:10 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 36 ms / 2,000 ms | 
| コード長 | 415 bytes | 
| コンパイル時間 | 136 ms | 
| コンパイル使用メモリ | 82,248 KB | 
| 実行使用メモリ | 53,672 KB | 
| 最終ジャッジ日時 | 2025-03-20 18:39:15 | 
| 合計ジャッジ時間 | 807 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 5 | 
ソースコード
# 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])
            
            
            
        