# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
568666 | Garguy22 | Utrka (COCI14_utrka) | C++17 | 77 ms | 22220 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 <string>
#include <map>
using namespace std;
string str[100007];
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
map<string, int> mp;
for(int i = 0; i < 2*n-1; i++){
cin >> str[i];
mp[str[i]]++;
}
for(int i = 0; i < 2*n; i++){
if(mp[str[i]] % 2){
cout << str[i] << endl;
return 0;
}
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |