結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
hamray
|
| 提出日時 | 2017-11-13 22:32:36 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 530 bytes |
| コンパイル時間 | 577 ms |
| コンパイル使用メモリ | 73,848 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-18 10:20:38 |
| 合計ジャッジ時間 | 1,342 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include<iostream>
#include<iomanip>
#include<cmath>
#include<string>
#include<algorithm>
#include<vector>
#include<math.h>
using namespace std;
int main(){
string C1, C2, C;
cin >> C1;
cin >> C2;
int cnt = 0, cntV = 0;
C = C1 + C2;
for(int i = 0; i < C.size(); i++){
if(C[i] == 'o'){
cnt++;
}
if(C[i] =='x'){
cntV = max(cntV, cnt);
cnt = 0;
}
cntV = max(cntV, cnt);
}
cout << cntV << endl;
return 0;
}
hamray