結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
xuelei
|
| 提出日時 | 2018-07-17 08:07:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 267 bytes |
| コンパイル時間 | 973 ms |
| コンパイル使用メモリ | 64,900 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-18 10:31:41 |
| 合計ジャッジ時間 | 1,915 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
string s,s1;
cin >> s >> s1;
s+=s1;
int cnt=0;
int max=0;
for(int i=0;i<=14;i++){
if(s[i]=='o')cnt++;
else{if(cnt>max)max=cnt;cnt=0;}
}
cout << max << endl;
return 0;
}
xuelei