結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
kkkk97368086
|
| 提出日時 | 2021-12-02 08:48:31 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| + 238µs | |
| コード長 | 406 bytes |
| 記録 | |
| コンパイル時間 | 880 ms |
| コンパイル使用メモリ | 179,984 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-07 05:31:54 |
| 合計ジャッジ時間 | 2,334 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string c1,c2;
cin >> c1;
cin >> c2;
int ans=0;
int cnt=0;
for(int i=0; i<7; i++){
if(c1[i]=='o') cnt++;
ans = max(ans,cnt);
if(c1[i]=='x') cnt=0;
}
for(int i=0; i<7; i++){
if(c2[i]=='o') cnt++;
ans = max(ans,cnt);
if(c2[i]=='x') cnt=0;
}
cout << ans << endl;
}
kkkk97368086