# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
16825 | cki86201 | Utrka (COCI14_utrka) | C++98 | 444 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include <math.h>
#include <assert.h>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <string>
#include <algorithm>
#include <iostream>
using namespace std;
typedef long long ll;
typedef pair<int, int> Pi;
#define Fi first
#define Se second
#define pb(x) push_back(x)
#define sz(x) (int)x.size()
map <string,int> M;
int main(){
int n; scanf("%d",&n);
for(int i=0;i<n;i++){
string s; cin >> s;
M[s]++;
}
for(int i=0;i<n-1;i++){
string s; cin >> s;
if(M[s] == 1)M.erase(s);
else M[s]--;
}
cout << M.begin()->Fi;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |