結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2016-09-24 10:53:00 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 576 bytes |
コンパイル時間 | 673 ms |
コンパイル使用メモリ | 70,220 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 09:49:06 |
合計ジャッジ時間 | 1,462 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include<stdio.h> #include <vector> #include <list> #include <map> #include <set> #include <queue> #include <stack> #include <algorithm> #include <sstream> #include <iostream> #include <string> #include <stdio.h> using namespace std; int main() { string S[2]; cin >> S[0] >> S[1]; char c[14]; for (int i = 0; i < 2; i++) { for (int j = 0; j < 7; j++) { c[7 * i + j] = S[i][j]; } } int cnt = 0, ans = 0; for (int i = 0; i < 14; i++) { if (c[i] == 'o') { cnt++; ans = max(ans, cnt); } else { cnt = 0; } } cout << ans << endl; return 0; }