#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int n;cin>>n;
unordered_map<string,int> mp;
string str;
while(cin>>str){
++mp[str];
}
for(auto it:mp){
if(it.second&1){
cout<<it.first;
return 0;
}
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
336 KB |
Output is correct |
2 |
Correct |
1 ms |
336 KB |
Output is correct |
3 |
Correct |
1 ms |
336 KB |
Output is correct |
4 |
Correct |
1 ms |
336 KB |
Output is correct |
5 |
Correct |
1 ms |
336 KB |
Output is correct |
6 |
Correct |
20 ms |
5348 KB |
Output is correct |
7 |
Correct |
32 ms |
7528 KB |
Output is correct |
8 |
Correct |
38 ms |
8800 KB |
Output is correct |
9 |
Correct |
41 ms |
10412 KB |
Output is correct |
10 |
Correct |
42 ms |
10428 KB |
Output is correct |