# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
201307 | 2020-02-10T07:26:51 Z | ArKCa | Utrka (COCI14_utrka) | C++17 | 5 ms | 256 KB |
#include<bits/stdc++.h> #define f1 first #define s2 second #define pb push_back #define pob pop_back #define int ll #define ll long long #define PII pair<int,int> #define N 11 using namespace std; int n,a,last,b; int dizi[N]; map<string,int>m; map<string,int>::iterator it; string s; int32_t main(){ // freopen("a.gir","r",stdin); // freopen("a.cik","w",stdout); scanf("%lld",&n); for(int i=1;i<=n;i++){ cin>>s; m[s]++; } for(int i=1;i<n;i++){ cin>>s; m[s]++; } for(it=m.begin();it!=m.end();it++){ if(it->s2==1){ cout<<it->f1<<endl; return 0; } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 256 KB | Output is correct |
2 | Incorrect | 5 ms | 256 KB | Output isn't correct |
3 | Halted | 0 ms | 0 KB | - |