Mystery

4.5

2 votes
Implementation
Problem

Problem Statement :

Solve the Mystery. :)

Input

First line of input contains T – No of test cases.(1<=T<=21) Next T lines of input contains three integers a,b,c separated by spaces. (1<=a,b<=20) (1<=c<=100)

Output

T lines should contain a single integer.

Sample Input
3
2 3 2
13 14 1
14 5 9
Sample Output
5
14
464
Time Limit: 1
Memory Limit: 256
Source Limit:
Contributers:
Editor Image

?