結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2015-05-08 22:23:51 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 497 bytes |
コンパイル時間 | 775 ms |
コンパイル使用メモリ | 80,332 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-18 08:55:20 |
合計ジャッジ時間 | 1,517 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <iostream> #include <string> #include <vector> #include <cmath> #include <algorithm> #include <cstdlib> #include <ctime> #include <cstdio> #include <functional> #include <set> #include <sstream> #include <map> #include <queue> #include <stack> using namespace std; int main() { string s,t; cin>>s>>t; s+=t; int res=-1,now=0; for(int i=0;i<s.size();i++){ if(s[i]=='o') now++; else{ res=max(res,now); now=0; } } res=max(res,now); cout<<res<<endl; return 0; }