My issue
pls explain the approach for this problem
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
for(int i=0;i<t;i++)
{
int a,b;
cin>>a>>b;
int count=0;
while((a%b)!=0)
{
a++;
b--;
count++;
if(b==1)
{
break;
}
}
cout<<count<<endl;
}
}
Problem Link: Marbles Practice Coding Problem - CodeChef