# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
461328 | JasperL | Utrka (COCI14_utrka) | C++14 | 1 ms | 204 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
#include <vector>
#include <map>
using namespace std;
#define maxn 100005
int n;
vector<string> nm;
map<string,bool> seen;
int main() {
cin >> n;
for (int i = 0; i < n; i++) {
string s; cin >> s;
nm.push_back(s); seen[s] = false;
}
for (int i = 0; i < n-1; i++) {
string s; cin >> s;
seen[s] = true;
}
for (string s : nm) {
if (!seen[s]) cout << s << endl;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |