Little Arya has learnt to count the highest and the lowest number recently. She can easily find out …
Click here to read the complete problem statement.
If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.
Why am I getting wrong answer in test case 2??? @touhidur@hjr265
T=int(input())
for i in range(0, T):
a, b, c=map(int, input().split())
if a==b or b==c or a==c:
r="Confused"
elif(a>b) and (a>c):
r="A"
elif (b>a) and (b>c):
r="B"
else:
r="C"
print("Case",str(i+1)+":",r)
#include
using namespace std;
int main()
{
int n , i;
cin >> n;
int a , b , c ;
for( i = 1 ; i <= n ; i++)
{
cin >> a >> b >> c;
if( a > b & a > c)
{
cout << "Case"<<" "<<i<<':'<<" "<<'A' <<endl ;
}
if( b > a & b > c)
{
cout << "Case"<<" "<<i<<':'<<" "<<'B' <<endl ;
}
if( c > a & c > b)
{
cout << "Case"<<" "<<i<<':'<<" "<<'C' <<endl ;
}
if( b == a || b == c || a == c)
{
cout << "Case"<<" "<<i<<':'<<" "<<"Confused" <<endl ;
}
}