結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
|
提出日時 | 2016-11-20 03:15:54 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 246 bytes |
コンパイル時間 | 481 ms |
コンパイル使用メモリ | 55,472 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-27 06:38:17 |
合計ジャッジ時間 | 1,353 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 13 |
ソースコード
#include "iostream" using namespace std; char letter[15]; int ans = 0; int box = 0; int main() { cin >> letter; for (int i = 0; i < 14; i++) { if (letter[i] == 'o')box++; else box = 0; if (box > ans)ans = box; } cout << ans << "\n"; }