Submission #498611

#TimeUsernameProblemLanguageResultExecution timeMemory
498611ahmeterenUtrka (COCI14_utrka)C++17
80 / 80
155 ms8420 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 % 2)
		{
			cout << i.first << '\n';
		}
	}

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