結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2020-12-22 00:52:03 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 8 ms / 1,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 2,701 ms |
コンパイル使用メモリ | 190,908 KB |
最終ジャッジ日時 | 2025-01-17 05:59:18 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { char c; int ans = 0, now = 0; for (int i = 0; i < 14; i++) { cin >> c; if (c == 'o') { now += 1; ans = max(ans, now); } else now = 0; } cout << ans << endl; }