Special Positive Number
CodeChefOpen on judge ↗
Chef wants to find a special positive number. The special number is such that it is the difference between sum of even numbers and sum of odd numbers. Chef has given two numbers which is the range in which you have to find the sum. As Chef is not able to find the number he asks his friend to help him. Input: First line contains T denoting the number of test cases. Each T lines follow containing
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