結果

問題 No.1468 Colourful Pastel
ユーザー mathiu
提出日時 2021-04-18 10:29:27
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 678 ms / 1,000 ms
コード長 414 bytes
コンパイル時間 1,215 ms
コンパイル使用メモリ 160,112 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-04 04:25:10
合計ジャッジ時間 4,505 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int int01;
  string str01, str02, result;

  cin >> int01;
  for (int i = 0; i < int01; i++) {
    cin >> str01;
    result += str01;
  }

  for (int i = 0; i < int01 - 1; i++) {
    cin >> str02;
    int pos = result.find(str02);
    int len = str02.length();
    result = result.replace(pos, len, "");
  }

  cout << result << endl;

  return 0;
}
0