結果

問題 No.632 穴埋め門松列
ユーザー kryu_______2740
提出日時 2018-02-18 00:19:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 270 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 44,444 KB
最終ジャッジ日時 2024-06-24 12:23:54
合計ジャッジ時間 4,174 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#穴埋め門松列


import numpy as np
a = "2 3 ?"

a = a.split(" ")
a = np.array(a)

question = np.where(a=="?")[0]
two = np.where(a=="2")[0]
three = np.where(a=="3")[0]

if(question==1):
    print(14)
else:
    if(two==1):
        print(4)
    else:
        print(1)
0