Chef Corrupted File
CodeChefOpen on judge ↗
Chef done his homework and save the file on his system, next time when he is trying to open the file he is getting the error message "File is corrupted". Anyhow he wants to recover the file and he comes up with a technique which ensures that whether he can recover the file or not. The technique is very simple, if the difference of the sum of all the even numbers and sum of all the odd numbers is z
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