BITWO
CodeChefOpen on judge ↗
Tanu's favourite number is 2. He only likes number made entirely of 2, like 2,22,222,2222,22222, etc. So much so that he is willing to change base of the number from 10 to a different one to make it entirely of 2s. Now he wants to know which numbers are made entirely of 2s in atleast 2 different bases. Can you help him? INPUT First line contains Q, number of testcases. Then Q lines follow. Each
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