結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-20 03:13:38 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 246 bytes |
| コンパイル時間 | 572 ms |
| コンパイル使用メモリ | 55,680 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-27 06:37:55 |
| 合計ジャッジ時間 | 1,494 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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";
}