题目链接:
点击打开链接
题目描述:
B. Minimize the error
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
You are given two arrays A and B, each of size n. The error, E, between these two arrays is defined . You have to perform exactly k1 operations on array A and exactly k2 operations on array B. In one operation, you have to choose one element of the array and increase or decrease it by 1.
Output the minimum possible value of error after k1 operations on array A and k2 operations on array B have been performed.
Input
The first line contains three space-separ