제출 #1339417

#제출 시각아이디문제언어결과실행 시간메모리
1339417vjudge1Jarvis (COCI19_jarvis)C++20
70 / 70
59 ms1232 KiB
#include <bits/stdc++.h>

using namespace std;

int v[100005];

int main(){

    map<int, int> mp;
    int n;
    cin >> n;
    for(int i = 1; i <= n; i++){
        cin >> v[i];
    }
    int ans = 0;
    for(int i = 1; i <= n; i++){
        int x;
        cin >> x;
        ans = max(ans, ++mp[v[i] - x]);
    }
    cout << ans << '\n';

    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...