답안 #1101737

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1101737 2024-10-16T17:51:20 Z rayan_bd 마라톤 경주 (COCI14_utrka) C++17
80 / 80
42 ms 10428 KB
#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