← All problemsSign in

Transform

You have landed up on a strange planet,SEG-7270, where the aliens use only 2 and 3 in number system. You are given a fancy number N of that planet. Find out which number does it correspond to in Earth's decimal number system. Input First line contains an integer T, the number of testcases. First line of each testcase, contains N. Output For each testcase, print its decimal equivalent. Constr

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