結果

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

テストケース

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

ソースコード

diff #

a, b, c = 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