#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(){
int N;
string temp;
cin>>N;
vector<string> Word(N);
for(int i = 0; i < N; i++){
cin>>Word[i];
}
for(int i = 0; i <N - 1; i++){
cin>>temp;
for(int j = 0; j < N; j++){
if(Word[j] == temp){
Word.erase(Word.begin()+j);
}
}
}
cout<<Word[0]<<endl;
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
5 ms |
256 KB |
Output is correct |
2 |
Runtime error |
5 ms |
512 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
3 |
Halted |
0 ms |
0 KB |
- |