# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1279126 | adiat | Jarvis (COCI19_jarvis) | C++20 | 24 ms | 2596 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n;
cin>>n;
int a[n],b[n];
for(int &i: a)
cin>>i;
for(int &i: b)
cin>>i;
map<int,int> mp;
for(int i=0; i<n; i++)
mp[a[i]-b[i]]++;
int ans=0;
for(auto i: mp)
ans=max(ans, i.second);
cout<<ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |