Hlo Anyone can help me to find out where is the problem in my code!

My code is getting successfully executed and work fine with custom Input but when i submit it’s generate error
you can check out the question ---->[FLOW009 Problem - CodeChef]]

you can check my submition ----> (CodeChef: Practical coding for everyone)

/* 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
	{
	  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	  String t = br.readLine();
	  if(t!=null){
	      int temp =Integer.parseInt(t);
	      for(int i=0;i<temp;i++){
	              String s = br.readLine();
	              if(s!=null){
	                   Scanner sc = new Scanner(s).useDelimiter(" ");
	                   int quantity =sc.nextInt();
	                   int price = sc.nextInt();
	                   float amount=quantity*price;
	                   if(quantity>1000){
	                        System.out.printf("%06f\n",amount-(amount*10)/100);
	                   }else{
	                        System.out.printf("%06f\n",amount);
	                   }
	                    
	              }
	      }
	  }
	}
}