# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1171492 | javkhlantogs | 마라톤 경주 (COCI14_utrka) | C++20 | 169 ms | 8252 KiB |
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
ll n,i,j,k,cnt=0,p=1;
cin>>n;
string s;
map<string,ll> mp;
for(i=0 ; i<n ; i++){
cin>>s;
mp[s]++;
}
for(i=0 ; i<n-1 ; i++){
cin>>s;
mp[s]--;
}
for(auto v:mp){
if(v.second>0) cout<<v.first;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |