CF-2214C•Codeforces

And?

*specialbitmasks

$\LARGE{\texttt{RXOEARDMTINHUSERMEDESIANT}~&~20260401}$$

Input

Each test contains multiple test cases. The first line contains the number of test cases tt (1≤t≤1051 \leq t \leq 10^5). The description of the test cases follows.

The only line of each test case contains three integers aa, bb, and cc (1≤a,b,c≤10001 \leq a, b, c \leq 1000).

Output

For each test case, output the answer.

Sample 1
Input
4
1 2 6
2 5 2
19 6 4
167 1 102
Output
3
3
11
90

Discussions & Comments

Share your approach or ask questions about this problem (0)

You must be logged in to comment or start a discussion on this problem.

Log In

No comments yet. Be the first to comment!

Actions

Open on Codeforces

About Platform

CO
Codeforces
External Judge

Problem Discussions

0

Have questions or want to share your solution approach? Join the discussion.

View / write comments