Submission #713560

#TimeUsernameProblemLanguageResultExecution timeMemory
713560ALTAKEXEUtrka (COCI14_utrka)C++14
80 / 80
128 ms11156 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 - 1; i++) if(a[i] != b[i]) { cout<<a[i]<<endl; return 0; } cout<<a[n-1]; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...