結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
|
提出日時 | 2021-03-16 10:34:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 441 bytes |
コンパイル時間 | 1,467 ms |
コンパイル使用メモリ | 166,344 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 21:07:45 |
合計ジャッジ時間 | 2,393 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 WA * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) int main(void) { string s, t; cin >> s >> t; string u = s + t; int ch = 0; rep(i, u.size()) { if (u[i] == 'o') { bool flg = true; int h = 0; while (flg) { if (u[i] == 'o') h++; else flg = false; i++; } ch = max(ch, h); } } cout << ch << endl; return 0; }