# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
960234 |
2024-04-10T00:32:09 Z |
khangrl |
Utrka (COCI14_utrka) |
C++14 |
|
155 ms |
14320 KB |
#include<bits/stdc++.h>
#define ll long long
#define ff first
#define ss second
#define pb push_back
using namespace std;
int main(){
int n;
cin>>n;
vector <string> v;
map <string, int> mp;
for(int i=1; i<=n; i++){
string s;
cin>>s;
v.pb(s);
}
for(int i=1; i<n; i++){
string s;
cin>>s;
mp[s]++;
}
for(auto x:v){
if(mp[x]==0){
cout<<x;
return 0;
}
mp[x]--;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
444 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
65 ms |
7360 KB |
Output is correct |
7 |
Correct |
107 ms |
11680 KB |
Output is correct |
8 |
Correct |
106 ms |
12984 KB |
Output is correct |
9 |
Correct |
116 ms |
14260 KB |
Output is correct |
10 |
Correct |
155 ms |
14320 KB |
Output is correct |