제출 #1339427

#제출 시각아이디문제언어결과실행 시간메모리
1339427vjudge1Jarvis (COCI19_jarvis)C++20
0 / 70
58 ms1052 KiB
#include <bits/stdc++.h>
#define in  cin
#define out cout

using namespace std;

int main()
{
    int n; in >> n;
    int a[n];
    map<int, int> vf;
    for(int i = 0; i < n; i++) in >> a[i];
    for(int i = 0; i < n; i++){
        int b; in >> b;
        vf[b - a[i]]++;
    }

    auto it = (vf.end()); it--;
    int mx1 = (*it).second;
    out << mx1 << '\n';
    return 0;
}
//
#Verdict Execution timeMemoryGrader output
Fetching results...