printing series
CodeChefOpen on judge ↗
Print the series from given values of x,y,n where series is as follows: (x+(2^0).y) , (x+(2^0).y+(2^1).y) , (x+(2^0).y+(2^1).y+(2^2).y) , .......... , x+(2^0).y+(2^1).y+(2^2).y+...........+(2^n-1).y ### Input The first line contains an integer,t , denoting the number of queries. Each line of the subsequent lines contains three space-separated integers describing the respective x , y , n value
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