# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
76781 | dereotu | 마라톤 경주 (COCI14_utrka) | C++17 | 314 ms | 18000 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define endl '\n'
#define space ' '
#define st first
#define nd second
#define pb push_back
#define mp make_pair
#define ii pair <int,int>
#define iii pair < int,pair <int,int> >
#define vi vector <int>
#define vii vector < pair<int,int> >
#define forr(i,A,B) for(int i=A;i<B;++i)
#define input(file) freopen(file,"r",stdin)
#define output(file) freopen(file,"w",stdout)
using namespace std;
int n;
map<string,int> h;
int main(){
cin>>n;
forr(i,0,n){
string s;
cin>>s;
h[s]++;
}
forr(i,0,n-1){
string s;
cin>>s;
h[s]--;
}
for(auto it=h.begin();it!=h.end();it++){
if((it->nd)>0){
cout<<(it->st)<<endl;
break;
}
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |