# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
568668 | Garguy22 | Utrka (COCI14_utrka) | C++17 | 164 ms | 44056 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[1000007];
map<string, int> mp;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
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... |