The Triangle Conundrum
Submissions: 175   Accuracy:

9.72%

  Max. Score:

10

You are given three sides a, b, c. You need to find if the three sides make a scalene triangle or not.
A scalene triangle is the one in which none of the sides are equal to each other.

Input:
The first line of input contains T denoting the number of testcases. T testcases follow. Each testcase contains one line of input containing three numbers a b and c.

Output:
For each testcase, in a new line, print 1 if scalene triangle is possible, else print 0.

Constraints:
1 <= T <= 100
1 <= a,b,c <=100

Example:
Input:

3
2 2 2
2 2 1
3 4 5
Output:
0
0
1

Explanation:
Testcase1: Not scalene as it is equilateral.

Testcase2: Not scalene as it is isosceles
Testcase3: It is scalene as sides are not equal.


to report an issue on this page.