Help me in solving MINPIZZAS problem

My issue

task 2 is failing . can somebody help me to identify failed test cases

My code

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		for(int i=0;i<t;i++)
		{
		    int n=sc.nextInt();
		    int k=sc.nextInt();
		    int c=0;
		    int nk=k;
		    if(k>n){
		        nk=k-n;
		        c=c++;
		    }
		   
		 
		   
		    if(n%nk==0){    //99 33
		   c=c+(n/nk);
		    }
		    else if(((n%2!=0) || (nk%2!=0)) && (nk%n!=0)){   // 72 23 47 56  78 89 91 92 25 27 29 31 32
		       
		     c=c+n;
		    }
		    else{
		      c=c+1;
		        // 12 24 36 26 28 34
		    }
	
		    System.out.println(c);
		}
	}
}

Problem Link: MINPIZZAS Problem - CodeChef