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