#include <iostream>
#include <set>
using namespace std;
int main(){
int n;
string str;
cin>>n;
set<string> s;
for(int i=0;i<n;i++){
cin>>str;
s.insert(str);
}
for(int i=0;i<n-1;i++){
cin>>str;
s.erase(str);
}
for(auto it=s.begin();it!=s.end();it++){
str=*it;
}
cout<<str;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Output is correct |
2 |
Correct |
1 ms |
364 KB |
Output is correct |
3 |
Correct |
2 ms |
364 KB |
Output is correct |
4 |
Correct |
3 ms |
364 KB |
Output is correct |
5 |
Incorrect |
3 ms |
364 KB |
Output isn't correct |
6 |
Halted |
0 ms |
0 KB |
- |