← All problemsSign in

Matrix Maximum Sum

CodeChefRating 2387Open on judge ↗

Devu and Churu love to play with numbers. Today, each of them has an 1 - based array consisting of N positive integers. Devu named his array as A while Churu called his array B. They have decided to construct a matrix C of size N × N using given arrays A and B where an entry Ci,j in the matrix is given by following expression. where Ci,j denotes the value of the jth cell in the ith row of matr

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start