結果

問題 No.712 赤旗
ユーザー hooooyaerthooooyaert
提出日時 2018-07-20 21:35:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 359 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 29,700 KB
最終ジャッジ日時 2023-08-27 00:20:09
合計ジャッジ時間 4,466 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import numpy as np
def count(row,colum):
    num=0
    for i in range(row):
        for j in range(colum):
            if A[i][j] == 'W':
                num += 1
    return num
#入力ゾーン
A = np.array([['W','W','R','W'],
            ['W','R','W','W'],
            ['W','W','W','R']])

#出力ゾーン
print('塗る回数',count(A.shape[0],A.shape[1]))
0