제출 #920519

#제출 시각아이디문제언어결과실행 시간메모리
920519speedcode마라톤 경주 (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...