結果

問題 No.712 赤旗
ユーザー bellangeldindonbellangeldindon
提出日時 2019-05-09 09:36:23
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 45 ms
コンパイル使用メモリ 6,596 KB
実行使用メモリ 5,948 KB
最終ジャッジ日時 2023-09-14 17:37:28
合計ジャッジ時間 614 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,860 KB
testcase_01 AC 12 ms
5,864 KB
testcase_02 AC 12 ms
5,880 KB
testcase_03 AC 12 ms
5,948 KB
testcase_04 AC 12 ms
5,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, raw_input().split())
cnt = 0
for i in range(0, N):
	s = raw_input()
	for j in range(0, M):
		if s[j] == 'W': cnt += 1
print cnt
0