# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
969633 |
2024-04-25T11:37:49 Z |
RandomUser |
Utrka (COCI14_utrka) |
C++17 |
|
129 ms |
8236 KB |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> mp;
string s;
for(int i=0; i<2*n-1; i++) {
cin >> s;
if(i < n) mp[s]++;
else mp[s]--;
}
for(auto &[S, C] : mp)
if(C > 0) cout << S << '\n';
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
2 ms |
348 KB |
Output is correct |
6 |
Correct |
61 ms |
4600 KB |
Output is correct |
7 |
Correct |
87 ms |
6072 KB |
Output is correct |
8 |
Correct |
119 ms |
7760 KB |
Output is correct |
9 |
Correct |
120 ms |
8236 KB |
Output is correct |
10 |
Correct |
129 ms |
8016 KB |
Output is correct |