Divide and Mod
View as PDFWrite a program that answers the following question  times:
Given three integers
,
, and
, find the integer
where
and
.
Constraints
Input Specification
The first line contains .
The following 
 lines contain 3 integers 
, 
, and 
.
Output Specification
For each question, output on a separate line , the integer that satisfies the conditions.
Sample Input
1
6 5 11
Sample Output
35
Explanation
 satisfies both conditions when 
: 
, and 
.
Comments
what does the
 symbol in the equations mean I looked all around the internet and could not identify what is means other then "identical to" which doesn't explain 35 
 11. Please help.
It is a modular congruence symbol.
Oh that help a lot guess I didn't think BOTH 35 and 11 are moded (and out of all places the answer was it was khan academy (why))