結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2015-07-25 17:07:39 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 509 bytes |
コンパイル時間 | 1,315 ms |
コンパイル使用メモリ | 158,520 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 09:24:28 |
合計ジャッジ時間 | 2,172 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define repi(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define rep(i,n) repi(i,0,n) string s, t; int solve() { s += t; int ans = 0, a = 0; rep(i,14) { if(s[i] == 'x') a = 0; else a++; ans = max(ans, a); } return ans; } void input() { cin >> s >> t; } int main() { cin.tie(0); ios_base::sync_with_stdio(0); cout << fixed << setprecision(12); input(); cout << solve() << endl; return 0; }