結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
ruase_
|
| 提出日時 | 2025-08-15 02:11:56 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 466 bytes |
| コンパイル時間 | 916 ms |
| コンパイル使用メモリ | 102,792 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-08-15 02:11:59 |
| 合計ジャッジ時間 | 2,589 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
# include <iostream>
# include <iomanip>
# include <algorithm>
using namespace std;
int main()
{
string s, s1, s2;
cin >> s1 >> s2;
s = s1 + s2;
int cnt = 0;
int max = 0;
int i = 0;
while (true){
if (s[i] == 'o') {
cnt++;
}else{
cnt = 0;
}
if (max < cnt) {
max = cnt;
}
i++;
if (i == s.length()) break;
}
cout << max << endl;
}
ruase_