結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
zaichu
|
| 提出日時 | 2015-12-18 02:10:13 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 272µs | |
| コード長 | 406 bytes |
| 記録 | |
| コンパイル時間 | 413 ms |
| コンパイル使用メモリ | 91,852 KB |
| 実行使用メモリ | 9,844 KB |
| 最終ジャッジ日時 | 2026-09-25 18:30:18 |
| 合計ジャッジ時間 | 1,969 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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