結果
問題 | No.712 赤旗 |
ユーザー |
![]() |
提出日時 | 2018-08-16 10:34:40 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 252 bytes |
コンパイル時間 | 2,067 ms |
コンパイル使用メモリ | 56,732 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-01 12:09:43 |
合計ジャッジ時間 | 1,449 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 |
ソースコード
#include<iostream>#include<string>#include<algorithm>using namespace std;int main(){int a,b,ans=0;char aa[50][50];cin>>a>>b;for(int i=0;i<b;i++){for(int j=0;j<a;j++){cin>>aa[i][j];if(aa[i][j]=='W'){ans++;}}}cout<<ans<<endl;}