The power of powers
CodeChefOpen on judge ↗
Your task is simple, to calculate the value of a b for the given values of a and b and compute the sum of the digits of ab. 83=512 , 5 + 1 + 2 = 8 The problem consists of many test cases. The input description of each test case is given below. Input The first line of input contains the number of test cases t. Then t lines follow each containing two space separated integers a and b. Output
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