# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
648909 | Ghosty_v2 | Utrka (COCI14_utrka) | C++17 | 155 ms | 11096 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;
#define ll long long
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int n;
cin>>n;
multiset <string> arr;
for(int i=0;i<n;i++) {
string x;
cin>>x;
arr.insert(x);
}
for(int i=0;i<n-1;i++) {
string s;
cin>>s;
auto it = arr.find(s);
arr.erase(it);
}
for(auto it:arr) {
cout<<it<<endl;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |