Submission #920519

#TimeUsernameProblemLanguageResultExecution timeMemory
920519speedcodeUtrka (COCI14_utrka)C++17
80 / 80
137 ms10404 KiB
#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); set<string> data; int N; cin >> N; N*=2; N--; string s; for(int i = 0; i < N; i++){ cin >> s; if(data.count(s)) data.erase(s); else data.insert(s); } for(auto a : data){ cout << a << '\n'; return 0; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...