結果

問題 No.712 赤旗
ユーザー トミー
提出日時 2024-07-11 23:01:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 414 ms
コンパイル使用メモリ 82,616 KB
実行使用メモリ 75,648 KB
最終ジャッジ日時 2024-07-11 23:01:03
合計ジャッジ時間 2,588 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

from pprint import pprint
def main():
    n,m=map(int,input().split())
    a=[]
    for i in range(n):
        a.append(input())
    cnt=0
    for i in range(len(a)):
        for j in range(len(a[i])):
            if a[i][j]=="W":
                cnt+=1
    print(cnt)
    

if __name__ == "__main__":
    main()
0