結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
![]() |
提出日時 | 2016-08-16 21:08:40 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 470 bytes |
コンパイル時間 | 668 ms |
コンパイル使用メモリ | 62,320 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 09:46:59 |
合計ジャッジ時間 | 1,739 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <iostream> #include <vector> #include <cstdio> #include <string> #include <cstring> #include <algorithm> using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) int main(void){ string s1, s2; cin >> s1 >> s2; string s = s1 + s2; int ans = 0, tmp = 0; rep(i, s.size()){ if(s[i] == 'o') tmp++; else{ // printf("i %d\n", i); ans = max(tmp, ans); tmp = 0; } if(i == s.size() - 1) ans = max(tmp, ans); } cout << ans << endl; return 0; }