結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
|
提出日時 | 2018-04-19 21:56:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 491 ms |
コンパイル使用メモリ | 64,644 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 10:24:27 |
合計ジャッジ時間 | 1,410 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include<iostream> using namespace std; int main(){ int res = 0, n = 0; char c; for(int i = 0; i < 14; i++){ cin >> c; if(c == 'x'){ res = max(n,res); n = 0; }else if(c == 'o'){ n++; } } res = max(n,res); cout << res << endl; return 0; }