結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
|
提出日時 | 2020-06-25 22:54:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 388 bytes |
コンパイル時間 | 1,444 ms |
コンパイル使用メモリ | 166,600 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-03 21:54:22 |
合計ジャッジ時間 | 2,443 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define rep(i, a, n) for (int i = a; i < n; ++i) int main() { string c1, c2; cin >> c1 >> c2; c1 += c2; int ans = 0; int cnt = 0; rep(i, 0, 14) { if (c1[i] == 'o') cnt++; else cnt = 0; ans = max(ans, cnt); } cout << ans << endl; return 0; }