Submission #523475

#TimeUsernameProblemLanguageResultExecution timeMemory
523475blueUtrka (COCI14_utrka)C++17
80 / 80
240 ms11144 KiB
#include <iostream> #include <set> #include <string> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); multiset<string> S; int N; cin >> N; for(int i = 1; i <= N; i++) { string s; cin >> s; S.insert(s); } for(int i = 1; i <= N-1; i++) { string s; cin >> s; S.erase(S.find(s)); } cout << *S.begin() << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...