結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-06-03 18:30:25 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 494 bytes |
| コンパイル時間 | 591 ms |
| コンパイル使用メモリ | 62,900 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-18 09:21:33 |
| 合計ジャッジ時間 | 1,525 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <iostream>
#include <sstream>
#include <vector>
#include <cmath>
using namespace std;
# define M_PI 3.14159265358979323846
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int max = 0;
int cnt = 0;
for(int i = 0; i < 14; i++){
char c;
cin >> c;
if(c == 'o'){
cnt++;
}else{
max = (cnt > max) ? cnt : max;
cnt = 0;
}
}
max = (cnt > max) ? cnt : max;
cout << max << endl;
return 0;
}