結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2022-10-15 18:16:10 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 22 ms / 1,000 ms |
コード長 | 333 bytes |
コンパイル時間 | 1,821 ms |
コンパイル使用メモリ | 193,560 KB |
最終ジャッジ日時 | 2025-02-08 06:48:32 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ string a,b; cin>>a>>b; a += b; int now = 0; int ans = 0; for(int i=0;i<14;i++){ if(a[i] == 'o') now++; else{ ans = max(ans,now); now = 0; } } cout<<max(ans,now)<<endl; }