# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
17500 | kdh9949 | Utrka (COCI14_utrka) | C++98 | 502 ms | 12812 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 <iostream>
#include <map>
#include <string>
using namespace std;
int n;
string str;
map<string, int> mp;
int main(){
cin >> n;
for(int i = 0; i < n; i++){
cin >> str;
mp[str]++;
}
for(int i = 0; i < n - 1; i++){
cin >> str;
mp[str]--;
if(mp[str] == 0) mp.erase(str);
}
cout << mp.begin()->first;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |