結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
![]() |
提出日時 | 2015-05-08 22:24:21 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 321 bytes |
コンパイル時間 | 463 ms |
コンパイル使用メモリ | 60,380 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 20:21:43 |
合計ジャッジ時間 | 1,124 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 5 |
ソースコード
#include <iostream> #include <algorithm> #include <functional> #include <string> using namespace std; int main(){ char a; int ren = 0; int max = 0; for(int i=0; i<14; i++){ cin >> a; if(a == 'o'){ ren ++; }else{ if(ren > max){ max = ren; } ren = 0; } } cout << max << endl; return 0; }