結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-10 20:26:40 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 434 bytes |
| コンパイル時間 | 449 ms |
| コンパイル使用メモリ | 56,136 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-18 09:36:23 |
| 合計ジャッジ時間 | 1,429 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include<iostream>
#include<string>
int main()
{
std::string s, s2;
std::cin >> s;
std::cin >> s2;
s += s2;
int max = 0;
int continue_rest = 0;
for (int i = 0; i < 14; i++)
{
if (s[i] == 'o')
{
continue_rest++;
}
else
{
if (max < continue_rest)
{
max = continue_rest;
}
continue_rest = 0;
}
}
if (max < continue_rest)
{
max = continue_rest;
}
std::cout << max << std::endl;
return 0;
}