Help me in solving SLOWSOLN problem

My issue

how to know the testcase in that problem

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
	
	}
}

Problem Link: Slow Solution Practice Coding Problem - CodeChef

@satyayadav19
refer the following code for better understanding

/* 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 s = new Scanner(System.in);
		int t = s.nextInt();
		while(t-->0){
		    int maxt = s.nextInt();
		    int maxn = s.nextInt();
		    int maxs = s.nextInt();
		    int x = maxs/maxn;
		    int y = maxs-x*maxn;
		    if(x>=maxt)System.out.println(maxt*maxn*maxn);
		    else System.out.println((x*maxn*maxn)+y*y);
		}
	}
}