結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2017-11-21 16:35:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 807 bytes |
コンパイル時間 | 843 ms |
コンパイル使用メモリ | 93,236 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 10:20:40 |
合計ジャッジ時間 | 1,633 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string> #include <vector> #include <cmath> #include <fstream> #include <set> #include <utility> #include <algorithm> #include <queue> #include <stack> #include <deque> #include <numeric> #include <sstream> #include <list> #include <map> #include <stdlib.h> #include <time.h> #define rep(i,p,n) for(int i=(int)p;i<(int)n;i++) #define repp(i,p,n) for(int i=(int)p;i>=(int)n;i--) #define Sort(x) sort(x.begin(),x.end()); #define ll long long #define INF 2000000000 using namespace std; int main() { string s, ss; cin >> s >> ss; s += ss; int count = 0,ans=0; rep(i, 0, s.length()) { if (s[i] == 'o')count++; else if(s[i]=='x'){ ans = max(ans, count); count = 0; } } ans = max(ans, count); cout << ans << endl; return 0; }