# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
528094 | aris12345678 | Jarvis (COCI19_jarvis) | C++14 | 34 ms | 2576 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define X first
#define Y second
int main() {
int n;
scanf("%d", &n);
vector<int> a(n);
for(int i = 0; i < n; i++)
scanf("%d", &a[i]);
map<int, int> mp;
for(int i = 0; i < n; i++) {
int b;
scanf("%d", &b);
mp[b-a[i]]++;
}
printf("%d\n", mp.rbegin()->Y);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |