結果

問題 No.632 穴埋め門松列
ユーザー kryu_______2740
提出日時 2018-02-18 00:18:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 80,496 KB
最終ジャッジ日時 2024-06-24 12:23:47
合計ジャッジ時間 5,980 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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(1,4)
else:
    if(two==1):
        print(4)
    else:
        print(1)

        
    
0