Sereja and Matrix Division
Sereja has a matrix with size N*M, a cell with coordinate (i,j) contains the integer A[i][j]. Sereja wants to divide the matrix into two parts between him and Dima. Sereja wants to choose C rectangles, i-th rectangle has coordinates X1[i], Y1[i], X2[i], Y2[i] (1 , 1 , we assume that any cell with coordinate (x, y) fits condition X1[i] and Y1[i] lies inside i-th rectangle). They need to be chosen i
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.
Sign in to chat with the tutor and save your progress.
Sign in to start