結果
問題 | No.571 3人兄弟(その2) |
ユーザー |
|
提出日時 | 2022-12-16 13:20:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 349 bytes |
コンパイル時間 | 134 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-15 18:51:23 |
合計ジャッジ時間 | 1,223 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
def main():brothers = [list(map(int, input().split())) for _ in range(3)]brother_dict = {0: "A", 1: "B", 2: "C"}wonderful_order = sorted(range(3), key=lambda idx: (brothers[idx][0], -brothers[idx][1]), reverse=True)for order in wonderful_order:print(brother_dict[order])if __name__ == "__main__":main()