제출 #1338306

#제출 시각아이디문제언어결과실행 시간메모리
1338306anudari_t마라톤 경주 (COCI14_utrka)C++20
80 / 80
162 ms9024 KiB
#include <bits/stdc++.h>

using namespace std;

int main () {
	int n;
	cin >> n;
	multiset<string> s;
	for (int i = 0; i < n; i++) {
		string str;
		cin >> str;
		s.insert(str);
	}
	for (int i = 1; i < n; i++) {
		string str;
		cin >> str;
		s.erase(s.find(str));
	}
	for (string str : s)
		cout << str << endl;
}
#Verdict Execution timeMemoryGrader output
Fetching results...