結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
|
提出日時 | 2015-06-08 17:29:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 316 bytes |
コンパイル時間 | 460 ms |
コンパイル使用メモリ | 54,232 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-06 14:48:36 |
合計ジャッジ時間 | 1,241 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 5 |
ソースコード
#include <iostream> using namespace std; int main(void) { std::ios::sync_with_stdio(false); std::cin.tie(0); int max = 0; int cnt = 0; char C; for (int i = 0; i < 14; i++) { cin >> C; if (C == 'o') { cnt++; } else { if (cnt > max) { max = cnt; } cnt = 0; } } cout << max << endl; }