Submission #1265921

#TimeUsernameProblemLanguageResultExecution timeMemory
1265921canhnam357Utrka (COCI14_utrka)C++20
80 / 80
89 ms9028 KiB
#include <bits/stdc++.h> #define int long long #define mask(i) (1LL << (i)) using namespace std; int32_t main() { ios_base::sync_with_stdio(false); cin.tie(0); int n; cin >> n; multiset<string> s; for (int i = 0; i < n; i++) { string t; cin >> t; s.insert(t); } for (int i = 0; i < n - 1; i++) { string t; cin >> t; s.erase(s.find(t)); } cout << *s.begin(); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...