結果
| 問題 | No.712 赤旗 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-10-19 13:39:29 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 340µs | |
| コード長 | 324 bytes |
| 記録 | |
| コンパイル時間 | 329 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-30 21:20:48 |
| 合計ジャッジ時間 | 1,242 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long int ll;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
int h,w; cin >> h >> w;
int ans=0;
for(int i=0;i<h;i++){
for(int j=0;j<w;j++){
char s; cin >> s;
if(s=='W')ans++;
}
}
cout << ans << endl;
}