結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2015-05-08 22:21:40 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 716 bytes |
コンパイル時間 | 589 ms |
コンパイル使用メモリ | 91,608 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 08:50:16 |
合計ジャッジ時間 | 1,430 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include<iostream> #include<cstdio> #include<cstring> #include<string> #include<cctype> #include<cstdlib> #include<algorithm> #include<bitset> #include<vector> #include<list> #include<deque> #include<queue> #include<map> #include<set> #include<stack> #include<cmath> #include<sstream> #include<fstream> #include<iomanip> #include<ctime> #include<complex> #include<functional> #include<climits> #include<cassert> #include<iterator> using namespace std; string s; int main(){ cin >> s; string t; cin >> t; s += t; int countt = 0; int maxt = 0; for (int i = 0; i < s.size(); i++){ if (s[i] == 'o'){ countt++; maxt = max(maxt, countt); } else{ countt = 0; } } cout << maxt << endl; return 0; }