# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
713794 | Dulguun88 | Utrka (COCI14_utrka) | C++14 | 144 ms | 9876 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 <bits/stdc++.h>
using namespace std;
int main(){
int n;
string a[100000], b[100000];
cin>>n;
for(int i = 0; i < n; i++) cin>>a[i];
for(int i = 0; i < n - 1; i++) cin>>b[i];
sort(a, a + n);
sort(b, b + n - 1);
for(int i = 0; i < n; i++)
if(a[i] != b[i])
{
cout<<a[i]<<endl;
return 0;
}
cout<<a[n-1];
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |