Submission #80602

# Submission time Handle Problem Language Result Execution time Memory
80602 2018-10-21T15:56:52 Z heon Utrka (COCI14_utrka) C++11
80 / 80
202 ms 18840 KB
#include<bits/stdc++.h>

using namespace std;

int main(){
	
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	
	int n;
	cin >> n;
	multiset <string> mst;
	for(int i = 0; i < n; i++){
		string a;
		cin >> a;
		mst.insert(a);
	}
	for(int i = 0; i < n-1; i++){
		string b;
		cin >> b;
		mst.erase(mst.find(b));
	}
	cout << *mst.begin();
}
# Verdict Execution time Memory Grader output
1 Correct 2 ms 504 KB Output is correct
2 Correct 2 ms 504 KB Output is correct
3 Correct 3 ms 616 KB Output is correct
4 Correct 3 ms 692 KB Output is correct
5 Correct 3 ms 748 KB Output is correct
6 Correct 86 ms 6080 KB Output is correct
7 Correct 130 ms 9916 KB Output is correct
8 Correct 185 ms 13484 KB Output is correct
9 Correct 202 ms 16396 KB Output is correct
10 Correct 200 ms 18840 KB Output is correct