結果
問題 | No.712 赤旗 |
ユーザー |
|
提出日時 | 2020-07-28 21:43:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 366 bytes |
コンパイル時間 | 1,385 ms |
コンパイル使用メモリ | 167,880 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-28 20:58:04 |
合計ジャッジ時間 | 1,733 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 4 |
ソースコード
// yukicoder No.712#include <bits/stdc++.h>using namespace std;int main(){int n, m; cin >> n >> m;vector<string> v(n);for(int i = 0; i < n; ++i) cin >> v[i];int counter = 0;for(int i = 0; i < n; ++i) {for(int j = 0; j < 3; ++j) {if(v[i][j] == 'W') ++counter;else continue;}}cout << counter << "\n";return 0;}