Submission #596625

# Submission time Handle Problem Language Result Execution time Memory
596625 2022-07-14T22:13:35 Z Hussein3600 Utrka (COCI14_utrka) C++14
80 / 80
171 ms 10292 KB
#include<bits/stdc++.h>
using namespace std ;
typedef long long ll ;
map<string,ll>mp ;
int  main()
{
    int n ;
    cin >> n;
    for(int i=0;i<n;i++)
    {
        string s ;
        cin>>s ;
        mp[s]++;
    }
    for(int i=0;i<n-1;i++)
    {
        string s ;
        cin >> s ;
        mp[s]--;
    }
    for(auto x:mp)
    {
        if(x.second>0)
        {
            cout<<x.first<<endl;
        }
    }
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 300 KB Output is correct
4 Correct 2 ms 312 KB Output is correct
5 Correct 2 ms 380 KB Output is correct
6 Correct 76 ms 5316 KB Output is correct
7 Correct 140 ms 7696 KB Output is correct
8 Correct 168 ms 9448 KB Output is correct
9 Correct 165 ms 10292 KB Output is correct
10 Correct 171 ms 10264 KB Output is correct