結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
kiyunetsubamna
|
| 提出日時 | 2015-05-19 09:34:18 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 427 bytes |
| コンパイル時間 | 549 ms |
| コンパイル使用メモリ | 61,144 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-18 09:21:35 |
| 合計ジャッジ時間 | 1,448 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include<iostream>
#include <math.h>
#include <string>
using namespace std;
int main(){
string c1;
string c2;
string c3;
string j;
int cnt = 0;
int max = 0;
cin >> c1;
cin >> c2;
c3 = c1 + c2;
for (int i = 0; i < 14; i++){
j = c3.substr(i, 1);
if (j == "o"){
cnt += 1;
if (cnt>max){
max = cnt;
}
}
else{
if (cnt>max){
max = cnt;
}
cnt = 0;
}
}
cout << max << endl;
return 0;
}
kiyunetsubamna