結果

問題 No.632 穴埋め門松列
ユーザー TakoKurageTakoKurage
提出日時 2020-02-08 23:37:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 35 ms / 1,000 ms
コード長 226 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 9,856 KB
最終ジャッジ日時 2024-04-08 11:39:41
合計ジャッジ時間 835 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

C = input().split()

def kadomatu(C):
    return (C[1] in [max(C), min(C)])

A, B = C[:], C[:]
A[A.index("?")] = "1"
B[B.index("?")] = "4"

if kadomatu(A):
    print("1", end="")
if kadomatu(B):
    print("4", end="")

print()
0