Submission #96990

#TimeUsernameProblemLanguageResultExecution timeMemory
96990Danylo99Jarvis (COCI19_jarvis)C++17
70 / 70
56 ms3064 KiB
#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 timeMemoryGrader output
Fetching results...