Submission #383320

# Submission time Handle Problem Language Result Execution time Memory
383320 2021-03-29T15:22:38 Z Iwanttobreakfree Utrka (COCI14_utrka) C++17
0 / 80
3 ms 364 KB
#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 -