結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-10-02 00:43:57 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 254 bytes |
| コンパイル時間 | 666 ms |
| コンパイル使用メモリ | 57,668 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-18 09:30:32 |
| 合計ジャッジ時間 | 1,650 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <string>
#include <iostream>
using namespace std;
int main()
{
string a, b;
cin>>a>>b;
a+=b;
a="x"+a+"x";
int res=0;
for(int i=1;i<=a.size();++i)
if (a.find(string(i, 'o'))!=a.npos) res=i;
cout<<res<<endl;
}
hogeover30