# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
624811 |
2022-08-08T19:04:35 Z |
rm1729 |
Utrka (COCI14_utrka) |
C++14 |
|
1 ms |
212 KB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
void solve(){
int n; cin >>n;
vector <string> names(n);
for(int i=0; i<n; i++){
string s;
cin >>s;
names[i]=s;
}
sort(names.begin(),names.end());
vector <string> ans(n);
for(int i=0; i<n-1; i++){
string s;
cin >>s;
ans[i]=s;
}
sort(ans.begin(),ans.end());
for(int i=0; i<n-1; i++){
if(names[i]!=ans[i]){
cout <<names[i]<<endl;
break;
}
}
}
signed main(){
int t=1;// cin >>t;
while(t--){
solve();
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |