Submission #960234

#TimeUsernameProblemLanguageResultExecution timeMemory
960234khangrlUtrka (COCI14_utrka)C++14
80 / 80
155 ms14320 KiB
#include<bits/stdc++.h> #define ll long long #define ff first #define ss second #define pb push_back using namespace std; int main(){ int n; cin>>n; vector <string> v; map <string, int> mp; for(int i=1; i<=n; i++){ string s; cin>>s; v.pb(s); } for(int i=1; i<n; i++){ string s; cin>>s; mp[s]++; } for(auto x:v){ if(mp[x]==0){ cout<<x; return 0; } mp[x]--; } }
#Verdict Execution timeMemoryGrader output
Fetching results...