結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
Series_205
|
| 提出日時 | 2019-10-24 20:42:09 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 282 bytes |
| 記録 | |
| コンパイル時間 | 623 ms |
| コンパイル使用メモリ | 87,108 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-08 02:01:42 |
| 合計ジャッジ時間 | 2,240 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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