← All problemsSign in

Sereja and BOX

CodeChefRating 2747Open on judge ↗

Sereja has a box A with size N*N*N, where N=2Q for some integer Q. Each cell A(i, j, k) contains some binary value (zero or one). Sereja now has C++ function F(A) (where the box A is parameter of the function F): int F(box A, int dx = 0, int dy = 0, int dz = 0, int size = N) { vector B = {}; for (int i = dx; i This function computes compression level of the box. Sereja now wants to know minimal

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