結果

問題 No.632 穴埋め門松列
ユーザー Kaito KoikeKaito Koike
提出日時 2018-02-17 19:25:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 440 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,988 KB
実行使用メモリ 7,968 KB
最終ジャッジ日時 2023-09-06 17:51:50
合計ジャッジ時間 769 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

a = input().split(" ")

judge = {"1":0,"4":0}

for i in len(a):
    if a[i] == "?":
        a[i] = "1"
        b = a[1] - a[0]
        c = a[1] - a[2]
        if b*c > 0:
            judge["1"] = 1

        a[i] = "4"
        b = a[1] - a[0]
        c = a[1] - a[2]
        if b*c > 0:
            judge["4"] = 1

if judge["1"] == 1 and judge["4"] == 1:
    print(14)
elif judge["1"] == 1 :
    print(1)
elif judge["4"] == 1 :
    print(4)
0