結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
eri
|
| 提出日時 | 2015-07-08 07:30:14 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 250 bytes |
| コンパイル時間 | 350 ms |
| コンパイル使用メモリ | 54,232 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-08 01:39:03 |
| 合計ジャッジ時間 | 1,316 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 5 |
ソースコード
#include<iostream>
using namespace std;
int main(void){
int v[14], ans = 0, sum = 0; char c;
for (int i = 0; i < 14; i++){
cin >> c;
if (c == 'o'){sum++;}
else{
if(sum > ans) ans = sum;
sum = 0;
}
}
cout << ans << endl;
return 0;
}
eri