結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
Series_205
|
| 提出日時 | 2019-10-24 20:42:09 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 1,000 ms |
| コード長 | 282 bytes |
| コンパイル時間 | 687 ms |
| コンパイル使用メモリ | 68,720 KB |
| 最終ジャッジ日時 | 2025-01-08 00:53:50 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
char c;
int ans,x;
int main(){
for(int i=0;i<14;i++){
cin>>c;
if(c=='x'){
ans=max(ans,x);
x=0;
}else x++;
}
ans=max(ans,x);
cout<<ans<<endl;
return 0;
}
Series_205