結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
zaichu
|
| 提出日時 | 2015-12-18 02:10:13 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 406 bytes |
| コンパイル時間 | 518 ms |
| コンパイル使用メモリ | 64,824 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-18 09:37:27 |
| 合計ジャッジ時間 | 1,452 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <iostream>
#include <vector>
#include <array>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <string>
using namespace std;
int main(){
int count = 0;
int tmp = 0;
string date;
while(cin >> date){
for(int i = 0; i < date.size(); i++){
if(date[i] == 'o') tmp++;
else {
count = max(count,tmp);
tmp = 0;
}
}
}
cout << max(count,tmp) << endl;
return 0;
}
zaichu