結果
問題 | No.712 赤旗 |
ユーザー | chocorusk |
提出日時 | 2018-07-13 22:21:56 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 500 bytes |
コンパイル時間 | 664 ms |
コンパイル使用メモリ | 74,060 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-04-17 11:06:59 |
合計ジャッジ時間 | 980 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
6,816 KB |
testcase_01 | AC | 1 ms
6,940 KB |
testcase_02 | AC | 1 ms
6,940 KB |
testcase_03 | AC | 2 ms
6,944 KB |
testcase_04 | AC | 2 ms
6,944 KB |
ソースコード
#include <cstdio> #include <cstring> #include <iostream> #include <string> #include <cmath> #include <bitset> #include <vector> #include <map> #include <set> #include <queue> #include <deque> #include <algorithm> using namespace std; typedef long long int ll; typedef pair<int, int> P; int main() { int n, m; cin>>n>>m; string a[50]; for(int i=0; i<n; i++){ cin>>a[i]; } int c=0; for(int i=0; i<n; i++){ for(int j=0; j<m; j++){ if(a[i][j]=='W') c++; } } cout<<c<<endl; return 0; }