結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
latte0119
|
| 提出日時 | 2015-05-16 19:07:21 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 292µs | |
| コード長 | 376 bytes |
| 記録 | |
| コンパイル時間 | 765 ms |
| コンパイル使用メモリ | 179,620 KB |
| 実行使用メモリ | 9,892 KB |
| 最終ジャッジ日時 | 2026-09-25 18:16:22 |
| 合計ジャッジ時間 | 2,403 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string str;
for(int i=0;i<2;i++){
string s;cin>>s;str+=s;
}
int ma=0;
int cur=0;
while(cur<str.size()){
int cnt=0;
while(cur<str.size()&&str[cur]=='o')cur++,cnt++;
ma=max(ma,cnt);
while(cur<str.size()&&str[cur]=='x')cur++;
}
cout<<ma<<endl;
}
latte0119