# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
209573 | 2020-03-14T17:08:06 Z | DodgeBallMan | Utrka (COCI14_utrka) | C++14 | 352 ms | 18296 KB |
#include <bits/stdc++.h> using namespace std; map<string,int> mp, mp2; int n; int main() { scanf("%d",&n); for( int i = 1 ; i <= n ; i++ ) { string s; cin >> s; mp[s]++; } for( int i = 1 ; i < n ; i++ ) { string s; cin >> s; mp2[s]++; } for( auto m : mp ) { if( mp2[m.first] != m.second ) { cout << m.first; return 0; } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 376 KB | Output is correct |
2 | Correct | 5 ms | 376 KB | Output is correct |
3 | Correct | 6 ms | 248 KB | Output is correct |
4 | Correct | 8 ms | 504 KB | Output is correct |
5 | Correct | 7 ms | 504 KB | Output is correct |
6 | Correct | 147 ms | 9340 KB | Output is correct |
7 | Correct | 263 ms | 13688 KB | Output is correct |
8 | Correct | 332 ms | 16632 KB | Output is correct |
9 | Correct | 352 ms | 18296 KB | Output is correct |
10 | Correct | 330 ms | 18296 KB | Output is correct |