結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2016-01-16 04:14:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 402 bytes |
コンパイル時間 | 1,557 ms |
コンパイル使用メモリ | 161,140 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 09:39:02 |
合計ジャッジ時間 | 2,281 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { string s = ""; for (int i = 0; i < 2; ++i) { string t; cin >> t; s += t; } string S = "o"; for (int i = 1; i <= 14; ++i) { if (s.find(S) == string::npos) { cout << i - 1 << endl; return 0; } else { S += "o"; } } cout << 14 << endl; }