結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
|
提出日時 | 2019-12-23 03:30:19 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 396 bytes |
コンパイル時間 | 585 ms |
コンパイル使用メモリ | 77,336 KB |
最終ジャッジ日時 | 2025-01-08 14:06:40 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <map> using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); string s,t; cin >> s >> t; s+=t; int ans=0; for(int i=0;i<14;i++){ int cnt=0; if(s[i]=='o'){ while(i<14&&s[i]=='o'){ i++; cnt++; } i--; ans=max(ans,cnt); } } cout << ans << endl; }