結果

問題 No.632 穴埋め門松列
ユーザー cande398cande398
提出日時 2018-04-28 17:43:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 1,000 ms
コード長 195 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 7,900 KB
最終ジャッジ日時 2023-09-10 07:51:37
合計ジャッジ時間 911 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,732 KB
testcase_01 AC 16 ms
7,732 KB
testcase_02 AC 16 ms
7,900 KB
testcase_03 AC 15 ms
7,796 KB
testcase_04 AC 16 ms
7,896 KB
testcase_05 AC 15 ms
7,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L = ['1', '4']
C = input().split()
for i in range(3):
	if C[i] == '?':
		for l in L:
			C[i] = l
			if C[0] != C[1] != C[2] and (max(C) == C[1] or min(C) == C[1]):
				print(l, end = '')
print()
0