結果
問題 |
No.712 赤旗
|
ユーザー |
![]() |
提出日時 | 2018-09-07 10:29:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 407 bytes |
コンパイル時間 | 1,243 ms |
コンパイル使用メモリ | 157,940 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-26 07:27:47 |
合計ジャッジ時間 | 1,679 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 |
ソースコード
#include<bits/stdc++.h> #define MAX_N 100001 #define INF_INT 2147483647 #define INF_LL 9223372036854775807 #define REP(i,n) for(int i=0;i<(int)(n);i++) using namespace std; typedef long long int ll; typedef pair<ll,ll> P; int main() { int N,M,cnt=0; char masu[51][51]; cin >> N >> M; REP(i,N)cin >> masu[i]; REP(i,N)REP(j,M)if(masu[i][j] == 'W')cnt++; cout << cnt << endl; return 0; }