# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
498611 |
2021-12-25T18:50:23 Z |
ahmeteren |
Utrka (COCI14_utrka) |
C++17 |
|
155 ms |
8420 KB |
#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 time |
Memory |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Output is correct |
2 |
Correct |
0 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
304 KB |
Output is correct |
4 |
Correct |
1 ms |
332 KB |
Output is correct |
5 |
Correct |
1 ms |
332 KB |
Output is correct |
6 |
Correct |
63 ms |
4316 KB |
Output is correct |
7 |
Correct |
107 ms |
6204 KB |
Output is correct |
8 |
Correct |
142 ms |
7564 KB |
Output is correct |
9 |
Correct |
152 ms |
8420 KB |
Output is correct |
10 |
Correct |
155 ms |
8256 KB |
Output is correct |