제출 #1339528

#제출 시각아이디문제언어결과실행 시간메모리
1339528po_rag526Jarvis (COCI19_jarvis)C++20
70 / 70
58 ms1448 KiB
#include <iostream>
#include <vector>
#include <map>

std::map<int, int> f;

int main()
{
	int n;
	std::cin >> n;
	std::vector<int> a(n), b(n);
	for (int &x : a) {
	std::cin >> x;
	}
	for (int i = 0; i < n; i++) {
	std::cin >> b[i];
	f[a[i] - b[i]]++;
	}
	int answer = 0;
	for (const auto &[x, y] : f) {
	answer = std::max(answer, y);
	}
	std::cout << answer;
    return 0;
}
 // ghkjfdgjagas
#Verdict Execution timeMemoryGrader output
Fetching results...