제출 #568668

#제출 시각아이디문제언어결과실행 시간메모리
568668Garguy22마라톤 경주 (COCI14_utrka)C++17
80 / 80
164 ms44056 KiB
#include <iostream> #include <string> #include <map> using namespace std; string str[1000007]; map<string, int> mp; int main(){ ios_base::sync_with_stdio(false); cin.tie(0); int n; cin >> n; for(int i = 0; i < 2*n-1; i++){ cin >> str[i]; mp[str[i]]++; } for(int i = 0; i < 2*n; i++){ if(mp[str[i]] % 2){ cout << str[i] << endl; return 0; } } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...