# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1171494 | Nomio | 마라톤 경주 (COCI14_utrka) | C++20 | 94 ms | 16712 KiB |
#include<bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
string s[n * 2];
map<string, int> m;
for(int i = 0; i < n * 2 - 1; i++) {
cin >> s[i];
m[s[i]]++;
}
for(int i = 0; i < n * 2 - 1; i++) {
if(m[s[i]] % 2 == 1) {
cout << s[i] << '\n';
return 0;
}
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |