← All problemsSign in

Exp Set

Let us define exp set to be a finite set of integers E, which contains a positive integer a and all elements of the set can be expressed as a^i (a to the power i), where i is a positive integer, and a is unique for the given set E. Input The first line of input consists of a single integer T denoting the number of test cases. The description of each test case follows: For every test case, the

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