Help me in solving BMMC18 problem

My issue

My code

// Update the code below to solve the problem

#include <iostream>
#include <string>
using namespace std;

int main() 
{
 int t;
 cin>>t;
 while(t--)
 { 
    
    int N,A,B;
    cin>>N;  
    
 }
  
 return 0;
}

Learning course: Solve Programming problems using C++
Problem Link: CodeChef: Practical coding for everyone

1 Like

bro we have to find minimum no. of point to be scored in match to win so
check whose points are more and subtract it from 7.
#include
#include
using namespace std;

int main()
{
int t;
cin>>t;
while(t–)
{
int a,b;
cin>>a>>b;
int p=max(a,b);
cout<<7-p<<endl;
}
return 0;
}