제출 #498609

#제출 시각아이디문제언어결과실행 시간메모리
498609ahmeteren마라톤 경주 (COCI14_utrka)C++17
0 / 80
1 ms296 KiB
#include <bits/stdc++.h>
using namespace std;

const int N = 2e5 + 5;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);		

	int n;
	cin >> n;

	map<string, int> mp;

	for(int i = 0; i < 2 * n - 1; i++)
	{
		string str;
		cin >> str;

		mp[str]++;
	}

	for(auto i : mp)
	{
		if(i.second == 1)
		{
			cout << i.first << '\n';
		}
	}

	return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...