Submission #143530

#TimeUsernameProblemLanguageResultExecution timeMemory
143530grobarJarvis (COCI19_jarvis)C++14
70 / 70
146 ms3064 KiB
#include <bits/stdc++.h> using namespace std; int main() { map<int,int>m; int n; cin>>n; int a[n]; int b[n]; for(int i=0;i<n;i++) { cin>>a[i]; } for(int i=0;i<n;i++) { cin>>b[i]; } int maks=0; for(int i=0;i<n;i++) { m[a[i]-b[i]]++; if(m[a[i]-b[i]]>maks) { maks=m[a[i]-b[i]]; } } cout<<maks<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...