結果
| 問題 |
No.712 赤旗
|
| コンテスト | |
| ユーザー |
hiyori
|
| 提出日時 | 2019-02-08 23:27:20 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 382 bytes |
| コンパイル時間 | 500 ms |
| コンパイル使用メモリ | 64,736 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-01 11:45:48 |
| 合計ジャッジ時間 | 999 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
#include<iostream>
#include<stdlib.h>
#include<string>
using namespace std;
void run();
int main()
{
run();
return EXIT_SUCCESS;
}
void run()
{
int N,M,cnt=0,p;
cin>>N>>M;
string A;
for(int i=0; i<N; i++){
cin>>A;
while((p=A.find("W"))!=std::string::npos){
cnt++;
A[p]='R';
}
}
cout<<cnt<<endl;
}
hiyori