結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
SSRS
|
| 提出日時 | 2020-07-18 21:01:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 323 bytes |
| コンパイル時間 | 1,554 ms |
| コンパイル使用メモリ | 168,488 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 07:09:36 |
| 合計ジャッジ時間 | 2,766 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
vector<char> C(14);
for (int i = 0; i < 14; i++){
cin >> C[i];
}
int ans = 0;
int cons = 0;
for (int i = 0; i < 14; i++){
if (C[i] == 'o'){
cons++;
ans = max(ans, cons);
} else {
cons = 0;
}
}
cout << ans << endl;
}
SSRS