結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2020-03-18 16:06:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 1,655 ms |
コンパイル使用メモリ | 168,096 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 02:15:17 |
合計ジャッジ時間 | 2,826 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { string s1, s2; cin >> s1 >> s2; s1 += s2; int ans = 0; int h = 0; for( int i = 0; i < s1.size(); i++ ) { if( s1[i] == 'o' ) h++; else h = 0; ans = max( ans, h ); } cout << ans << endl; }