結果

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

ソースコード

diff #

#穴埋め門松列


import numpy as np
a = input()
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)
if(two==1):
    print(4)
if(three==1):
    print(1)
    
0