結果
問題 | No.712 赤旗 |
ユーザー |
![]() |
提出日時 | 2018-07-31 16:49:14 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,128 bytes |
コンパイル時間 | 777 ms |
コンパイル使用メモリ | 94,616 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-19 16:35:09 |
合計ジャッジ時間 | 1,027 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 |
ソースコード
//#include <bits/stdc++.h>//#include <stdio.h>#include<iostream>#include<cstdio>#include<bitset>#include<algorithm>#include<vector>#include<list>#include<queue>#include<stack>#include<string>#include<string.h>#include<cmath>#include<utility>#include<functional>#include<map>#include<set>#include<cctype>#include<fstream>#define FOR(i, a, b) for( int i=(a);i<=(b);i++)#define RFOR(i, a, b) for( int i=(a);i>=(b);i--)#define LFOR(i, a, b) for( long long int i=(a);i<=(b);i++)#define LRFOR(i, a, b) for(long long int i=(a);i>=(b);i--)#define MOD 1000000007#define INF 1000000000 //2000000000#define LLINF 1000000000000000000 //9000000000000000000#define PI 3.14159265358979#define MAXI 7500000using namespace std;typedef long long int ll;typedef pair< long long int, long long int> P;typedef string::const_iterator State;int dy[5] = { 0,0,1,-1,0 };int dx[5] = { 1,-1,0,0 ,0 };int main(void) {int n, m;string s;int count = 0;cin >> n >> m;FOR(i, 1, n) {cin >> s;FOR(j, 0, s.size() - 1) {if (s[j] == 'W') {count++;}}}cout << count << endl;return 0;}