Submission #18653

#TimeUsernameProblemLanguageResultExecution timeMemory
18653mindolUtrka (COCI14_utrka)C++14
80 / 80
266 ms11756 KiB
#include<iostream> #include<string> #include<unordered_set> using namespace std; unordered_multiset<string> S; int main() { int n; cin>>n; for(int i=1;i<=n;i++) { string str; cin>>str; S.insert(str); } for(int i=1;i<=n-1;i++) { string str; cin>>str; S.erase(S.find(str)); } cout<<*S.begin(); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...