# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
143530 | grobar | Jarvis (COCI19_jarvis) | C++14 | 146 ms | 3064 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |