結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2015-05-08 22:24:55 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 559 bytes |
コンパイル時間 | 522 ms |
コンパイル使用メモリ | 62,328 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 08:57:32 |
合計ジャッジ時間 | 1,259 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <iostream> #include <vector> #include <cmath> #include <numeric> #include <climits> #include <array> #define REP(i, n) for(int i=0;i<(n);i++) using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); std::array<char, 14> arr; REP(i, 14) { cin >> arr[i]; } int i = 0; int m = 0; for (auto& d: arr) { if (d == 'o') { i++; } else if (i != 0) { m = max(m, i); i = 0; } } m = max(m, i); cout << m << endl; return 0; }