結果

問題 No.712 赤旗
ユーザー McGregorshMcGregorsh
提出日時 2023-04-05 16:49:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 82,672 KB
実行使用メモリ 57,592 KB
最終ジャッジ日時 2024-04-10 01:05:32
合計ジャッジ時間 947 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,476 KB
testcase_01 AC 34 ms
52,288 KB
testcase_02 AC 33 ms
53,000 KB
testcase_03 AC 35 ms
52,460 KB
testcase_04 AC 36 ms
57,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())

ans = 0
for i in range(N):
    s = input()
    for j in range(M):
        if s[j] == 'W':
            ans += 1
print(ans)
0