Submission #621316

# Submission time Handle Problem Language Result Execution time Memory
621316 2022-08-03T17:14:00 Z chinmoy_101 Utrka (COCI14_utrka) C++14
80 / 80
206 ms 10372 KB
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	map<string, int> m;
	for(int i=1; i<=n*2-1; i++)
	{
		string a;
		cin>>a;
		m[a]++;
	}
	for(auto x : m)
	{
		if(x.second%2!=0)
		{
			cout<<x.first <<"\n";
			return 0;
		}
	}
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 2 ms 340 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 87 ms 5348 KB Output is correct
7 Correct 147 ms 7772 KB Output is correct
8 Correct 172 ms 9476 KB Output is correct
9 Correct 206 ms 10252 KB Output is correct
10 Correct 187 ms 10372 KB Output is correct