結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
greentea011
|
| 提出日時 | 2019-04-11 11:39:12 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 389 bytes |
| コンパイル時間 | 982 ms |
| コンパイル使用メモリ | 64,512 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 06:34:37 |
| 合計ジャッジ時間 | 1,791 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <iostream>
#include <string>
int main() {
std::string s;
int max=0;
int a=0;
while(std::getline(std::cin,s)) {
for (auto&c:s) {
if (c=='x') {
max=(a>max)?a:max;
a=0;
}
else if (c=='o') {
a++;
}
}
}
std::cout<<((a>max)?a:max)<<std::endl;
}
greentea011