Average Halfify(keteki)
CodeChefOpen on judge ↗
Given an even number n, n=2^x (where 1Input Description: Input starts with a number T, the count of test cases. Each test case would contain the number n, on a newline. Output Description: Print the result for each case on new line each. Constraints: 1Input: 1 4 output: 2 Explanation for example 1: avg(1,2)=1, avg(3,4)=3. avg(1,3)=2
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