Height Problem
CodeChefOpen on judge ↗
Tracy is given a list of numbers from 1 to $N$, she is asked to square each number and select certain numbers from the squared list, and add them up. Now she is given a constraint that the sum should be divisible by 4. Can you help Tracy finding the greatest such sum? ###Input: - First line will contain $T$, number of testcases. Then the testcases follow. - Each testcase contains of a single 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