結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
nabla_delta
|
| 提出日時 | 2019-09-30 01:12:33 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 332 bytes |
| コンパイル時間 | 1,528 ms |
| コンパイル使用メモリ | 169,348 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-03 04:46:20 |
| 合計ジャッジ時間 | 2,440 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
int main(){
string s[2], t="";
cin >> s[0] >> s[1];
t=s[0]+s[1]+'x';
int ans=0, cnt=0;
for(int i=0; i<t.length(); i++){
if(t[i]=='o') cnt++;
else{
ans=max(ans, cnt);
cnt=0;
}
}
cout << ans << endl;
return 0;
}
nabla_delta