結果

問題 No.712 赤旗
ユーザー daleksprinterdaleksprinter
提出日時 2018-07-28 16:14:57
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 779 ms
コンパイル使用メモリ 6,656 KB
実行使用メモリ 6,004 KB
最終ジャッジ日時 2023-09-19 08:23:30
合計ジャッジ時間 1,434 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

h,w = map(int,raw_input().split())

ans = 0
for i in range(h):
	arr = list(raw_input())
	for s in arr :
		if s == 'W':
			ans += 1

print ans
0