| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1339450 | vjudge1 | Jarvis (COCI19_jarvis) | C++20 | 58 ms | 1592 KiB |
#include <bits/stdc++.h>
using namespace std;
const int nmax = 1e5 + 1;
int a[nmax];
int b[nmax];
int32_t main() {
// ifstream cin("julieta.in");
// ofstream cout("julieta.out");
int n;
cin >> n;
map<int, int> mp;
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]]++;
}
int mx = 0;
for (auto it : mp) mx = max(mx, it.second);
cout << mx;
return 0;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
