結果
| 問題 | No.570 3人兄弟(その1) |
| コンテスト | |
| ユーザー |
doraeeemonn
|
| 提出日時 | 2017-11-07 09:44:18 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 520 bytes |
| コンパイル時間 | 74 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-24 04:33:16 |
| 合計ジャッジ時間 | 703 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 1 WA * 4 |
ソースコード
import sys
N = 3
brothers = [input() for i in range(N)]
brothers_map = {brothers[0]: "A", brothers[1]: "B", brothers[2]: "C"}
brothers_sort = list(set(brothers))
brothers_sort.sort()
if len(brothers_sort) < 3:
print("エラー:重複なしで入力してください。\n")
sys.exit()
if (int(brothers_sort[0]) < 150 or int(brothers_sort[2]) > 200):
print("エラー:身長は150から200までの間しか入力できません。\n")
sys.exit()
brothers.reverse()
for i in brothers:
print(brothers_map[i])
doraeeemonn