Submission #570478

#TimeUsernameProblemLanguageResultExecution timeMemory
570478AGEJarvis (COCI19_jarvis)C++14
70 / 70
81 ms3872 KiB
#include<bits/stdc++.h> #define int long long #define F first #define S second #define pb push_back using namespace std; const int N=1e6,M=2e3,mod=1e9+7; int a[N],b[N]; main() { int n; cin>>n; map<int,int>mp; for(int i=0;i<n;i++) cin>>a[i]; for(int i=0;i<n;i++) cin>>b[i],mp[b[i]-a[i]]++; int ans=0; for(auto x:mp) ans=max(ans,x.S); cout<<ans<<endl; return 0; }

Compilation message (stderr)

jarvis.cpp:10:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   10 | main()
      | ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...