# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
96990 | Danylo99 | Jarvis (COCI19_jarvis) | C++17 | 56 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>
#define ll long long
#define LL long long
#define PB push_back
#define INF 2000000000
#define X first
#define Y second
using namespace std;
const LL mod = 998244353;
const LL MAX = 600005;
int a[100005];
int b[100005];
map<int , int> m;
int main()
{
//freopen("input.txt" , "r" , stdin);
ios_base::sync_with_stdio(0);
int n;
cin >> n;
for(int i = 0; i < n; i++)
cin >> a[i];
for(int j = 0; j < n; j++)
cin >> b[j];
for(int i = 0; i < n; i++)
m[b[i] - a[i]]++;
int ans = 0;
for(auto x : m)
ans = max(ans , x.Y);
cout << ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |