結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-06 02:47:46 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 232 bytes |
| コンパイル時間 | 1,765 ms |
| コンパイル使用メモリ | 193,780 KB |
| 最終ジャッジ日時 | 2025-02-09 05:38:56 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
string S,T;
cin>>S>>T;
S="x"+S+T+"x";
int k=0,an=0,p=15;
while(p--){
if(S[p]=='o')k++;
else an=max(an,k),k=0;
}
cout<<an<<endl;
}