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 ---->[https://www.codechef.com/problems/FLOW009]]

you can check my submition ----> (https://www.codechef.com/viewsolution/39833087)

/* 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();
	      int temp =Integer.parseInt(t);
	      for(int i=0;i<temp;i++){
	              String s = br.readLine();
	                   Scanner sc = new Scanner(s).useDelimiter(" ");
	                   int quantity =sc.nextInt();
	                   int price = sc.nextInt();
	                   float amount=quantity*price;