結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
![]() |
提出日時 | 2016-01-16 10:45:40 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 512 bytes |
コンパイル時間 | 630 ms |
コンパイル使用メモリ | 73,032 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 09:38:56 |
合計ジャッジ時間 | 1,575 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <iostream> #include <sstream> #include <math.h> #include <stack> #include <set> #include <algorithm> #include <string> #include <queue> #include <stack> #include <map> #include <cstdio> #include <vector> using namespace std; #define INF (1 << 30) #define INFLL (1LL << 60) int main() { int ans = 0; char day; int ren = 0; for(int i = 0;i < 14;i++){ cin >> day; if(day == 'o'){ ren++; }else{ ans = max(ans,ren); ren = 0; } } ans = max(ans,ren); cout << ans << endl; return 0; }