# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
364967 |
2021-02-10T16:07:22 Z |
maozkurt |
Utrka (COCI14_utrka) |
C++17 |
|
196 ms |
8344 KB |
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <iostream>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
#include <vector>
#include <string>
#include <stack>
#include <numeric>
#include <cassert>
#define endl '\n'
#define sp ' '
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
int main(){
ios_base::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);cerr.tie(nullptr);
int n;cin>>n;
map<string, int> mm;
for(int i=0;i<n;i++){
string s;cin>>s;
++mm[s];
}
for(int i=0;i<n-1;i++){
string s;cin>>s;
--mm[s];
}
for(auto& i: mm){
if(i.ss){
cout << i.ff << endl;
break;
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Output is correct |
2 |
Correct |
1 ms |
364 KB |
Output is correct |
3 |
Correct |
1 ms |
364 KB |
Output is correct |
4 |
Correct |
2 ms |
364 KB |
Output is correct |
5 |
Correct |
1 ms |
364 KB |
Output is correct |
6 |
Correct |
72 ms |
4332 KB |
Output is correct |
7 |
Correct |
131 ms |
6272 KB |
Output is correct |
8 |
Correct |
181 ms |
7532 KB |
Output is correct |
9 |
Correct |
196 ms |
8344 KB |
Output is correct |
10 |
Correct |
176 ms |
8172 KB |
Output is correct |