# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
141155 | 2019-08-07T03:09:14 Z | Breno_XD | Utrka (COCI14_utrka) | C++14 | 2 ms | 348 KB |
#include <map> #include <iostream> #include <cstdio> using namespace std; int n; map<string, int> mapa; int main(){ ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); scanf("%d", &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; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |