← All problemsSign in

Tom and his game

Problem description. In a game points are awarded as the main character Tom eats candy as he journeys across location A(0,0,0) to location B (N,N,N) . Each candy has different points allotted to it. Now Queries will be given of the form : - UPDATE x y z w Which updates the value of candy at location (x,y,z) to w. - QUERY x1 y1 z1 x2 y2 z2 Calculates sum of values of candy items between the co-or

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