結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
h_noson
|
| 提出日時 | 2016-01-21 22:59:07 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 365 bytes |
| 記録 | |
| コンパイル時間 | 448 ms |
| コンパイル使用メモリ | 74,828 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-12 21:49:39 |
| 合計ジャッジ時間 | 1,389 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include "iostream"
using namespace std;
int main(){
string str1,str2;
int mx,cnt;
cin >> str1;
cin >> str2;
mx = cnt = 0;
for (auto c : str1 + str2){
if (c == 'o')
cnt += 1;
else {
mx = max(mx,cnt);
cnt = 0;
}
}
mx = max(mx,cnt);
cout << mx << endl;
return 0;
}
h_noson