結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 124 ms
29,708 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 122 ms
29,624 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(1,4)
else:
    if(two==1):
        print(4)
    else:
        print(1)

        
    
0