← All problemsSign in

Only printf

In this question you only need to print a sequence S of length N which fulfills the given constraints. - Given a number H , the HCF ( S0, S1, S2, .... ,Si, ..... ,SN-1 ) = H and Si > H , ∀ 0 ≤ i . - Si ≤ Si+1, ∀ 0 ≤ i - The value of the function sum(S) = S0 + S1 + .... + SN-1 should be the least. Input - First line contains an integer T denoting the number of test cases. - Next T lines follo

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start