結果

問題 No.632 穴埋め門松列
ユーザー kawacchukawacchu
提出日時 2019-03-10 18:48:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 1,000 ms
コード長 318 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 7,952 KB
最終ジャッジ日時 2023-09-05 19:56:45
合計ジャッジ時間 722 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,836 KB
testcase_01 AC 16 ms
7,852 KB
testcase_02 AC 16 ms
7,792 KB
testcase_03 AC 16 ms
7,952 KB
testcase_04 AC 15 ms
7,828 KB
testcase_05 AC 15 ms
7,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L = list(map(str,input().split()))
for i in range(3) :
    if L[i] == "?" :
        ind = i
    else :
        L[i] = int(L[i])

if ind == 0 :
    if L[1] > L[2] :
        ans = 1
    else :
        ans = 4
elif ind == 1 :
    ans = 14
else :
    if L[0] > L[1] :
        ans = 4
    else :
        ans = 1
print(ans)
0