Submission #713794

#TimeUsernameProblemLanguageResultExecution timeMemory
713794Dulguun88Utrka (COCI14_utrka)C++14
80 / 80
144 ms9876 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int n; string a[100000], b[100000]; cin>>n; for(int i = 0; i < n; i++) cin>>a[i]; for(int i = 0; i < n - 1; i++) cin>>b[i]; sort(a, a + n); sort(b, b + n - 1); for(int i = 0; i < n; i++) if(a[i] != b[i]) { cout<<a[i]<<endl; return 0; } cout<<a[n-1]; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...