結果

問題 No.632 穴埋め門松列
ユーザー ChibiChibi
提出日時 2018-02-04 21:20:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 275 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 10,576 KB
実行使用メモリ 7,940 KB
最終ジャッジ日時 2023-09-12 16:07:56
合計ジャッジ時間 649 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c = map(int, input().split())
lista = [a, b, c]
if lista[1] == "?":
	if a < c:
		print(a - 1, c + 1)
	else:
		print(a + 1, c - 1)
elif lista[0] == "?":
	if b < c:
		print(c + 1)
	else:
		print(b - 1)
elif lista[2] == "?":
	if a < b:
		print(b - 1)
	else:
		print(a + 1)
0