Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Mysterious Sum

By darkprinx · Limits 1s, 512 MB

Sohel vai reads newspaper every morning. The newspaper he reads contains some good features including different types of puzzle. He likes to those solve very much. In today’s newspaper the puzzle he found involves two numbers being added but with a mysterious result. Below are a few examples:

4+2=624 + 2 = 62

9+6=1539 + 6 = 153

17+12=29517 + 12 = 295

5+5=?5 + 5 = ?

He was quite clever and solved the puzzle quickly and happily went out for a walk. You, being his neighbor, met him on the road where he told you about the puzzle.

Given two numbers you have to find out the mysterious sum of the numbers like given above. Don’t fail to figure out the mystery behind these numbers, otherwise Sohel vai will be upset.


Input starts with an integer TT (0<T500 < T \le 50), denoting the number of test cases. Each case starts with two integers AA and BB (1BA1001 \le B \le A \le 100) denoting the given numbers.


For each case, print the case number and the sum that is told to find out.


4 2
9 6
17 12
Case 1: 62
Case 2: 153
Case 3: 295



92% Solution Ratio

musa.cse12Earliest, Aug '16

RamzanFastest, 0.0s

HillolTalukdarLightest, 0 B

anonyo.akandShortest, 90B


Login to submit

Toph uses cookies. By continuing you agree to our Cookie Policy.