結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-08-03 11:36:34 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 1,000 ms |
| コード長 | 484 bytes |
| コンパイル時間 | 949 ms |
| コンパイル使用メモリ | 103,108 KB |
| 最終ジャッジ日時 | 2025-02-15 21:39:26 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
#include<set>
#include<bitset>
#include<math.h>
#include<map>
#include<queue>
#include<iomanip>
using namespace std;
int main(){
string s, t;
cin >> s >> t;
s += t;
int cnt = 0, max1 = 0;
for (int i = 0; i < 14; i++){
if (s[i] == 'o') cnt += 1;
if (s[i] == 'x' || i == 13){
max1 = max(max1, cnt);
cnt = 0;
}
}
cout << max1 << endl;
}
kpinkcat