Submission #1088428

#TimeUsernameProblemLanguageResultExecution timeMemory
1088428SunbaeUtrka (COCI14_utrka)C++17
80 / 80
118 ms11188 KiB
#include <bits/stdc++.h> using namespace std; signed main(){ int n; cin>>n; multiset<string> ms; string s; for(int i = 0; i<n; ++i){ cin>>s; ms.insert(s); } for(int i = 0; i<n-1; ++i){ cin>>s; auto itr = ms.find(s); if(itr != ms.end()) ms.erase(itr); } cout<<*ms.begin(); }
#Verdict Execution timeMemoryGrader output
Fetching results...