Submission #758287

#TimeUsernameProblemLanguageResultExecution timeMemory
758287KN200711Utrka (COCI14_utrka)C++14
80 / 80
144 ms10404 KiB
# include <bits/stdc++.h> using namespace std; map<string, int> S; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int N; cin>>N; for(int i=0;i<N;i++) { string c; cin>>c; S[c]++; } for(int i=1;i<N;i++) { string c; cin>>c; S[c]--; } for(auto p : S) { if(p.second == 1) cout<<p.first<<"\n"; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...