結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
ui_mtc
|
| 提出日時 | 2020-03-30 17:37:34 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| + 331µs | |
| コード長 | 374 bytes |
| 記録 | |
| コンパイル時間 | 883 ms |
| コンパイル使用メモリ | 179,724 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-26 19:49:20 |
| 合計ジャッジ時間 | 2,486 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <bits/stdc++.h>
#define int long long
using namespace std;
using Graph = vector<vector<int>>;
signed main(){
string S, T;
cin >> S >> T;
S += T;
int ans = 0;
int cnt = 0;
for( int i = 0; i < S.size(); i++ ){
if( S.at(i)=='o' ) cnt++;
else{
ans = max(ans, cnt);
cnt = 0;
}
}
ans = max(ans, cnt);
cout << ans << endl;
}
ui_mtc