結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー stack9996
提出日時 2015-08-26 15:38:14
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 447 bytes
コンパイル時間 667 ms
コンパイル使用メモリ 61,780 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-18 09:28:18
合計ジャッジ時間 1,626 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <numeric>
#include <algorithm>
#include <string>
#include <vector>

#define rep(i, a) FOR(i, 0, a)
#define FOR(i, a, b) for(int i = a; i < b; ++i)

std::string a, b, s;
int day[14];

int main(){
	std::cin >> a >> b;
	s = a + b;
	rep(i, 14)if (s[i] == 'o')day[i] = 1;
	FOR(i, 1, 14){
		if (day[i] == 0)day[i] = 0;
		else day[i] += day[i - 1];
	}
	std::cout << *std::max_element(day, day + 14) << std::endl;
	return 0;
}
0