結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー not_522
提出日時 2015-07-15 02:03:56
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 371 bytes
コンパイル時間 1,455 ms
コンパイル使用メモリ 165,488 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-18 09:23:27
合計ジャッジ時間 2,202 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

vector<string> split(const string &str, char delim){
  stringstream ss(str);
  vector<string> res;
  for (string tmp; getline(ss, tmp, delim);) res.push_back(tmp);
  return res;
}

int main() {
  string c1, c2;
  cin >> c1 >> c2;
  auto v = split(c1 + c2, 'x');
  cout << max_element(v.begin(), v.end())->size() << endl;
}
0