結果

問題 No.632 穴埋め門松列
ユーザー kamomekamome
提出日時 2020-05-22 20:18:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 31 ms / 1,000 ms
コード長 387 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-15 14:01:37
合計ジャッジ時間 944 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#[('?', '2', '3'), ('?', '3', '2'), ('2', '?', '3'), ('2', '3', '?'), ('3', '?', '2'), ('3', '2', '?')]
s=input()
x1=s.replace("?","1")
x4=s.replace("?","4")
x1=list(map(int,x1.split()))
x4=list(map(int,x4.split()))
a=""
if (not (x1[0] < x1[1]< x1[2])) and (not (x1[0] > x1[1]> x1[2])) :
    a=a+"1"
if (not (x4[0] < x4[1]< x4[2])) and (not(x4[0] > x4[1]> x4[2])) :
    a=a+"4"
print(a)
0