as know DZY love play game one day DZY decided play nm matrix to precise decide modify matrix exactly k operationseach modification follow Pick row matrix decrease element row p this operation bring DZY value pleasure equal sum element row decrease Pick column matrix decrease element column p this operation bring DZY value pleasure equal sum element column decrease DZY wants know large total value pleasure perform exactly k modification please help calculate value