結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-09 16:56:03 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 282 bytes |
| 記録 | |
| コンパイル時間 | 610 ms |
| コンパイル使用メモリ | 55,288 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-18 09:12:29 |
| 合計ジャッジ時間 | 1,526 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}