結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
kkkk97368086
|
| 提出日時 | 2021-12-02 08:48:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 406 bytes |
| コンパイル時間 | 1,494 ms |
| コンパイル使用メモリ | 167,100 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-05 01:48:06 |
| 合計ジャッジ時間 | 2,390 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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