結果

問題 No.570 3人兄弟(その1)
ユーザー doraeeemonn
提出日時 2017-11-07 09:43:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 532 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-24 04:33:15
合計ジャッジ時間 806 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

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])
print("\n")
0