結果
問題 | No.712 赤旗 |
ユーザー |
![]() |
提出日時 | 2020-11-21 17:35:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 1,974 ms |
コンパイル使用メモリ | 192,276 KB |
最終ジャッジ日時 | 2025-01-16 04:04:07 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){int n,m;cin>>n>>m;string S;int cnt=0;for(int i=0;i<n;i++){cin>>S;for(int j=0;j<m;j++){if(S.at(j)=='W') cnt++;}}cout<<cnt<<endl;return 0;}