結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2019-09-03 14:31:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 325 bytes |
コンパイル時間 | 1,745 ms |
コンパイル使用メモリ | 166,536 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 01:38:56 |
合計ジャッジ時間 | 2,855 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { vector<char> c(14); int ans,max=0; for(int i=0;i<14;i++)cin>>c.at(i); for(int i=0;i<14;i++){ ans=0; while(c[i]=='o'){ i++; ans++; } if(ans>max)max=ans; } cout<<max<<endl; return 0; }