| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1339427 | vjudge1 | Jarvis (COCI19_jarvis) | C++20 | 58 ms | 1052 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 time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
