Submission #201309

#TimeUsernameProblemLanguageResultExecution timeMemory
201309ArKCaUtrka (COCI14_utrka)C++17
80 / 80
338 ms10488 KiB
#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%2==1){ cout<<it->f1<<endl; return 0; } } }

Compilation message (stderr)

utrka.cpp: In function 'int32_t main()':
utrka.cpp:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld",&n);
  ~~~~~^~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...