# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
209573 | DodgeBallMan | Utrka (COCI14_utrka) | C++14 | 352 ms | 18296 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
map<string,int> mp, mp2;
int n;
int main()
{
scanf("%d",&n);
for( int i = 1 ; i <= n ; i++ ) {
string s;
cin >> s;
mp[s]++;
}
for( int i = 1 ; i < n ; i++ ) {
string s;
cin >> s;
mp2[s]++;
}
for( auto m : mp ) {
if( mp2[m.first] != m.second ) {
cout << m.first;
return 0;
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |