結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-09 16:56:03 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 282 bytes |
| 記録 | |
| コンパイル時間 | 621 ms |
| コンパイル使用メモリ | 72,520 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-12 21:26:51 |
| 合計ジャッジ時間 | 1,673 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main()
{
string a,b;
cin>>a;
cin>>b;
a += b;
int d = 0;
int e = 0;
for (int i = 0; i < 14; ++i)
{
if(a.at(i) == 'o'){
d++;
}else{
d = 0;
}
if(d > e){
e = d;
}
}
cout<<e<<endl;
return 0;
}