結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-14 02:00:36 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 432 bytes |
| コンパイル時間 | 448 ms |
| コンパイル使用メモリ | 59,356 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-18 10:16:20 |
| 合計ジャッジ時間 | 1,335 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
string S1, S2;
cin >> S1 >> S2;
int continuity = 0;
int ans = 0;
for(int i = 0; i < 7; i++){
if(S1[i] == 'o'){
continuity++;
ans = max(ans, continuity);
}else{
continuity = 0;
}
}
for(int i = 0; i < 7; i++){
if(S2[i] == 'o'){
continuity++;
ans = max(ans, continuity);
}else{
continuity = 0;
}
}
cout << ans << endl;
}