Submission #96667

#TimeUsernameProblemLanguageResultExecution timeMemory
96667keko37Jarvis (COCI19_jarvis)C++14
70 / 70
31 ms1656 KiB
#include<bits/stdc++.h> using namespace std; const int MAXN = 100005; int n, sol; int a[MAXN], b[MAXN]; unordered_map <int, int> mp; int main () { ios_base::sync_with_stdio(false); cin.tie(0); cin >> n; for (int i=1; i<=n; i++) { cin >> a[i]; } for (int i=1; i<=n; i++) { cin >> b[i]; mp[b[i] - a[i]]++; } for (auto it : mp) { sol = max(sol, it.second); } cout << sol; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...