結果
| 問題 |
No.571 3人兄弟(その2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-01-08 15:04:28 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 2,000 ms |
| コード長 | 357 bytes |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-23 12:14:55 |
| 合計ジャッジ時間 | 1,491 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
# your code goes here
class Human:
def __init__(self, name, h, w):
self.name = name
self.h = h
self.w = w
list1 = []
for i in range(3):
h, w = map(int, input().split())
name = chr(ord('A') + i)
list1.append(Human(name, h, w))
list1.sort(key = lambda a: a.w)
list1.sort(key = lambda a: a.h, reverse = True)
for i in range(3):
print(list1[i].name)