# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
16362 |
2015-08-21T15:14:46 Z |
eaststar |
Utrka (COCI14_utrka) |
C++14 |
|
296 ms |
11888 KB |
#include <bits/stdc++.h>
using namespace std;
char c[30];
map<string,int> a;
int main(){
int i,n;
scanf("%d",&n);
for(i=1;i<=n;++i){
scanf("%s",c);
string w;
w+=c;
++a[w];
}
for(i=1;i<n;++i){
scanf("%s",c);
string w;
w+=c;
--a[w];
}
for(auto x:a)if(x.second)printf("%s",x.first.c_str());
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1724 KB |
Output is correct |
2 |
Correct |
0 ms |
1724 KB |
Output is correct |
3 |
Correct |
0 ms |
1724 KB |
Output is correct |
4 |
Correct |
0 ms |
1724 KB |
Output is correct |
5 |
Correct |
2 ms |
1724 KB |
Output is correct |
6 |
Correct |
134 ms |
6872 KB |
Output is correct |
7 |
Correct |
219 ms |
9380 KB |
Output is correct |
8 |
Correct |
254 ms |
10964 KB |
Output is correct |
9 |
Correct |
266 ms |
11888 KB |
Output is correct |
10 |
Correct |
296 ms |
11888 KB |
Output is correct |