結果

問題 No.632 穴埋め門松列
ユーザー kryu_______2740kryu_______2740
提出日時 2018-02-18 00:26:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 29,924 KB
最終ジャッジ日時 2023-09-06 17:58:55
合計ジャッジ時間 1,534 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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")
if(two==1):
    print("4")
if(three==1):
    print("1")
    
0