結果
| 問題 | No.1468 Colourful Pastel |
| ユーザー |
kekenx
|
| 提出日時 | 2024-01-13 01:12:17 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 532 bytes |
| 記録 | |
| コンパイル時間 | 985 ms |
| コンパイル使用メモリ | 80,472 KB |
| 最終ジャッジ日時 | 2025-02-18 19:30:27 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 TLE * 1 |
ソースコード
#include <iostream>
#include <cassert>
#include <set>
#include <vector>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N; cin >> N;
vector<string> memo(N);
multiset<string> A, B;
for (int i = 0; i < N; i++) {
string a; cin >> a;
A.insert(a);
memo[i] = a;
}
for (int i = 0; i < N - 1; i++) {
string b; cin >> b;
B.insert(b);
}
for (string &a: memo) {
if (A.count(a) != B.count(a)) {
cout << a << endl;
break;
}
}
return 0;
}
kekenx