結果
問題 | No.712 赤旗 |
ユーザー |
|
提出日時 | 2019-05-15 16:59:54 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 236 bytes |
コンパイル時間 | 386 ms |
コンパイル使用メモリ | 53,212 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 04:36:13 |
合計ジャッジ時間 | 805 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 |
ソースコード
#include <iostream>#include <string>using namespace std;int main(){int n,m,w=0;cin>>n>>m;cin.get();for(int x=0;x<n;x++){for(int y=0;y<m;y++){if(cin.get()=='W'){w++;}}cin.get();}cout<<w;return 0;}