My issue
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
{
Scanner in=new Scanner(System.in);
int t=in.nextInt();
for(int i=0;i<t;i++){
int x=in.nextInt();
int y=in.nextInt();
int z=in.nextInt();
int div=x/y;
int rem=x%y;
int out;
if(x<=y){
System.out.println(z);
}
else{
out=z*(div+rem);
System.out.println(out);
}
}
}
}
Problem Link: TEA Problem - CodeChef