INDIVISIBLE Codechef solutions Today | Codechef Starters 72 ✅ (100/100) FULL | AC Code ✅| Indivisible
Problem
Alice thinks Bob has very weak math skills.
Alice gave Bob three numbers and and challenged him to find any positive integer strictly less than such that none of the three numbers are divisible by .
Help Bob find one such integer .
Under the given constraints, a valid will always exist.
Input Format
- The first line of input will contain a single integer , denoting the number of test cases.
- The first and only line of each test case contains three space-separated integers and .
Output Format
For each test case, output on a new line any positive integer less than that does not divide any of or .
Constraints
Sample 1:
Input
Output
3 2 3 4 5 7 10 3 6 9
5 4 10
Explanation:
Test case : None of or are divisible by .
Test case : None of or are divisible by .
Test case : None of or are divisible by .