結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-07-29 18:02:49 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 729 bytes |
| 記録 | |
| コンパイル時間 | 3,784 ms |
| コンパイル使用メモリ | 354,464 KB |
| 実行使用メモリ | 9,412 KB |
| 最終ジャッジ日時 | 2026-07-29 18:02:55 |
| 合計ジャッジ時間 | 4,185 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
str s1, s2;
cin >> s1 >> s2;
ll countt = 0, nmax = LONG_MIN;
for (ll i = 0; i < s1.size(); i++)
{
if (s1[i] == 'o') countt++;
else
{
nmax = max(nmax, countt);
countt = 0;
}
}
nmax = max(nmax, countt);
countt = 0;
for (ll i = 0; i < s2.size(); i++) if (s2[i] == 'o')
{
if (s2[i] == 'o') countt++;
else
{
nmax = max(nmax, countt);
countt = 0;
}
}
nmax = max(nmax, countt);
cout << nmax;
return 0;
}