結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
|
提出日時 | 2024-03-27 19:59:54 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 486 bytes |
コンパイル時間 | 1,960 ms |
コンパイル使用メモリ | 195,568 KB |
最終ジャッジ日時 | 2025-02-20 14:05:20 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef int64_t lint; int main() { string s; vector<char> v; lint cnt=0; lint m=0; for(lint i=0;i<2;i++){ cin>>s; for(lint j=0;j<s.size();j++){ v.push_back(s[j]); } } for(lint i=0;i<v.size();i++){ if(v[i]=='o'){ cnt++; m=max(m,cnt); } else{ cnt=0; } } cout<<m<<endl; // system("pause"); }