제출 #648909

#제출 시각아이디문제언어결과실행 시간메모리
648909Ghosty_v2마라톤 경주 (COCI14_utrka)C++17
80 / 80
155 ms11096 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ios_base::sync_with_stdio(false); cin.tie(0); int n; cin>>n; multiset <string> arr; for(int i=0;i<n;i++) { string x; cin>>x; arr.insert(x); } for(int i=0;i<n-1;i++) { string s; cin>>s; auto it = arr.find(s); arr.erase(it); } for(auto it:arr) { cout<<it<<endl; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...