結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
knk
|
| 提出日時 | 2017-09-18 08:55:49 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 231µs | |
| コード長 | 446 bytes |
| 記録 | |
| コンパイル時間 | 855 ms |
| コンパイル使用メモリ | 181,208 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-09-25 18:53:54 |
| 合計ジャッジ時間 | 2,301 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ul;
typedef signed long long ll;
ul over = 1000000007;
int main(void)
{
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed;
string s, t;
cin >> s >> t;
s += t;
int cnt = 0, cnt_max = 0;
for (auto c : s) {
if (c == 'o') {
cnt++;
cnt_max = max(cnt_max, cnt);
} else {
cnt = 0;
}
}
cout << cnt_max << endl;
return 0;
}
knk