| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1339428 | vjudge1 | Jarvis (COCI19_jarvis) | C++20 | 56 ms | 1496 KiB |
#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int a[N], b[N];
map<int, int> mp;
int main() {
int n;
cin >> n;
int ans = 0;
for (int i = 0; i < n; i ++) cin >> a[i];
for (int i = 0; i < n; i ++) cin >> b[i], mp[a[i] - b[i]] ++;
for (auto i : mp) ans = max(ans, i.second);
cout << ans << '\n';
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
