結果

問題 No.632 穴埋め門松列
ユーザー netyo715
提出日時 2021-07-06 15:17:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 1,000 ms
コード長 282 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-01 12:08:39
合計ジャッジ時間 763 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

C = input()
def is_kadomatsu(A):
    return not A[0] < A[1] < A[2] and not A[0] > A[1] > A[2]
ans = []
if is_kadomatsu(list(map(int, C.replace("?", "1").split()))):
    ans.append(1)
if is_kadomatsu(list(map(int, C.replace("?", "4").split()))):
    ans.append(4)
print(*ans, sep="")
0