結果

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

テストケース

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

ソースコード

diff #

L = ['1', '4']
C = input().split()
A = ''
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]):
				A += l
print(A)
0