Submission #163216

#TimeUsernameProblemLanguageResultExecution timeMemory
163216beso123마라톤 경주 (COCI14_utrka)C++14
80 / 80
406 ms22688 KiB
#include <bits/stdc++.h> #define int long long using namespace std; int n; map<string,int> mp,p; string s[100005]; main(){ cin>>n; for(int k=1;k<=n;k++){ cin>>s[k]; p[s[k]]++; } for(int k=1;k<n;k++){ string h; cin>>h; mp[h]++; } for(int k=1;k<=n;k++){ if(mp[s[k]]!=p[s[k]]){ cout<<s[k]; return 0; }} return 0; }

Compilation message (stderr)

utrka.cpp:7:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main(){
      ^
#Verdict Execution timeMemoryGrader output
Fetching results...