# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
339157 |
2020-12-24T17:11:19 Z |
ammar2000 |
Utrka (COCI14_utrka) |
C++17 |
|
255 ms |
10604 KB |
#include <bits/stdc++.h>
using namespace std;
string s;
map <string ,int > mp;
int n;
int main()
{
cin>>n;
int p=n-1;
while (n--)
{
cin>>s;
mp[s]++;
}
while (p--)
{cin>>s;
mp[s]--;}
for (auto t:mp)
if (t.second==1)
cout <<t.first;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Output is correct |
2 |
Correct |
1 ms |
256 KB |
Output is correct |
3 |
Correct |
1 ms |
364 KB |
Output is correct |
4 |
Correct |
2 ms |
364 KB |
Output is correct |
5 |
Correct |
2 ms |
364 KB |
Output is correct |
6 |
Correct |
109 ms |
5484 KB |
Output is correct |
7 |
Correct |
170 ms |
7788 KB |
Output is correct |
8 |
Correct |
220 ms |
9580 KB |
Output is correct |
9 |
Correct |
255 ms |
10604 KB |
Output is correct |
10 |
Correct |
250 ms |
10476 KB |
Output is correct |