# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
163216 | 2019-11-11T20:23:04 Z | beso123 | Utrka (COCI14_utrka) | C++14 | 406 ms | 22688 KB |
#include <bits/stdc++.h> #define int long long using namespace std; int n; map<string,int> mp,p; string s[100005]; main(){ cin>>n; for(int k=1;k<=n;k++){ cin>>s[k]; p[s[k]]++; } for(int k=1;k<n;k++){ string h; cin>>h; mp[h]++; } for(int k=1;k<=n;k++){ if(mp[s[k]]!=p[s[k]]){ cout<<s[k]; return 0; }} return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 3448 KB | Output is correct |
2 | Correct | 5 ms | 3448 KB | Output is correct |
3 | Correct | 6 ms | 3576 KB | Output is correct |
4 | Correct | 8 ms | 3576 KB | Output is correct |
5 | Correct | 7 ms | 3708 KB | Output is correct |
6 | Correct | 194 ms | 13148 KB | Output is correct |
7 | Correct | 354 ms | 17656 KB | Output is correct |
8 | Correct | 394 ms | 21016 KB | Output is correct |
9 | Correct | 406 ms | 22648 KB | Output is correct |
10 | Correct | 373 ms | 22688 KB | Output is correct |