Nobita and the Shizukas Gift
CodeChefOpen on judge ↗
Recently Shizuka gave a gift to Nobita on his birthday. Guess what..?? The gift was a puzzle to meet Shizuka. In the puzzle, Shizuka gives Nobita $N$ positive numbers $A_1$, $A_2$, ... $A_N$, $A_i \leq 100$ .These are the the distances Nobita must move from his current position in either the left or right direction. Nobita will decide the direction. Assume that Nobita's current position is at his
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