# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
141153 |
2019-08-07T03:06:35 Z |
Breno_XD |
Utrka (COCI14_utrka) |
C++14 |
|
231 ms |
10480 KB |
#include <map>
#include <iostream>
using namespace std;
int n;
map<string, int> mapa;
int main(){
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
cin >> n;
for(int i=1; i<=n; i++){
string s;
cin >> s;
mapa[s]++;
}
for(int i=1; i<n; i++){
string s;
cin >> s;
mapa[s]--;
}
for(map<string,int>::iterator it = mapa.begin(); it!=mapa.end(); it++){
if(it->second == 1){
cout << it->first << "\n";
break;
}
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
412 KB |
Output is correct |
2 |
Correct |
2 ms |
380 KB |
Output is correct |
3 |
Correct |
2 ms |
424 KB |
Output is correct |
4 |
Correct |
3 ms |
476 KB |
Output is correct |
5 |
Correct |
3 ms |
504 KB |
Output is correct |
6 |
Correct |
98 ms |
5496 KB |
Output is correct |
7 |
Correct |
147 ms |
7888 KB |
Output is correct |
8 |
Correct |
209 ms |
9556 KB |
Output is correct |
9 |
Correct |
231 ms |
10420 KB |
Output is correct |
10 |
Correct |
224 ms |
10480 KB |
Output is correct |