結果

問題 No.632 穴埋め門松列
ユーザー convexineqconvexineq
提出日時 2021-02-26 03:10:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 34 ms / 1,000 ms
コード長 203 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 82,228 KB
実行使用メモリ 53,680 KB
最終ジャッジ日時 2024-04-09 19:03:45
合計ジャッジ時間 917 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,232 KB
testcase_01 AC 34 ms
53,044 KB
testcase_02 AC 33 ms
52,688 KB
testcase_03 AC 33 ms
53,680 KB
testcase_04 AC 33 ms
53,144 KB
testcase_05 AC 34 ms
52,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def is_kadomatsu(a,b,c):
    return a != c and (a < b > c or a > b < c)

a = input()
for i in ["1","4"]:
    c = a.replace("?",i)
    if is_kadomatsu(*map(int,c.split())):
        print(i,end="")
print()
0