# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
300075 | theshadow_04 | Utrka (COCI14_utrka) | C++14 | 240 ms | 14712 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.
// VU TRUONG AN
#include <bits/stdc++.h>
#define F first
#define S second
#define MOD 1000000007
#define pb push_back
#define bit(x,p) ((x>>p) & 1)
#define ll long long
#define Task "UTRKA"
using namespace std;
const int base = 100003;
const int maxn = 100005;
string s[maxn];
int n;
map<string,int> M;
int main(){
ios_base::sync_with_stdio(0);
cout.tie(0); cin.tie(0);
if(fopen(Task".inp","r")){
freopen(Task".inp","r",stdin);
freopen(Task".out","w",stdout);
}
cin >> n;
for(int i = 1;i <= n;++i) cin >> s[i];
for(int i = 1;i < n;++i){
string a;
cin >> a;
M[a] ++;
}
for(int i = 1;i <= n;++i){
if(!M[s[i]]){
cout << s[i];
return 0;
}
M[s[i]]--;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |