結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-18 22:24:45 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 233µs | |
| コード長 | 282 bytes |
| 記録 | |
| コンパイル時間 | 840 ms |
| コンパイル使用メモリ | 183,724 KB |
| 実行使用メモリ | 9,848 KB |
| 最終ジャッジ日時 | 2026-10-11 04:09:22 |
| 合計ジャッジ時間 | 2,220 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
int ans = 0, cnt = 0;
cin >> s >> t;
s += t;
for (auto& c : s) {
if (c == 'o') {
cnt++;
ans = max(ans, cnt);
} else {
cnt = 0;
}
}
cout << ans << endl;
return 0;
}