# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
163215 | 2019-11-11T20:19:39 Z | beso123 | Utrka (COCI14_utrka) | C++14 | 5 ms | 3576 KB |
#include <bits/stdc++.h> #define int long long using namespace std; int n; map<string,int> mp; string s[100005]; main(){ cin>>n; for(int k=1;k<=n;k++) cin>>s[k]; for(int k=1;k<n;k++){ string h; cin>>h; mp[h]=1; } for(int k=1;k<=n;k++){ if(mp[s[k]]==0){ cout<<s[k]; return 0; }} return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 3576 KB | Output is correct |
2 | Incorrect | 5 ms | 3448 KB | Output isn't correct |
3 | Halted | 0 ms | 0 KB | - |