# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
686660 |
2023-01-25T17:32:08 Z |
mdub |
Utrka (COCI14_utrka) |
C++14 |
|
1 ms |
304 KB |
#include <bits/stdc++.h>
using namespace std;
int main () {
set<string> contestants;
int n; cin >> n;
for (int i = 0; i < n; i++) {
string s; cin >> s;
contestants.insert(s);
}
for (int i = 0; i < n - 1; i++) {
string s; cin >> s;
contestants.erase(s);
}
cout << *(contestants.begin()) << '\n';
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Incorrect |
0 ms |
304 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |