why is it showing an error when I try to submit the code but it works fine with custom input?
/* 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
{
double accountBalance;
int cashWithdraw;
double bankCharges = 0.50;
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String inputLine = input.readLine();
String[] split = inputLine.split(" ");
cashWithdraw = Integer.parseInt(split[0]);
accountBalance = Double.parseDouble(split[1]);
if(cashWithdraw % 5 == 0 && accountBalance > cashWithdraw) {
System.out.printf("%.2f",(accountBalance - cashWithdraw) - bankCharges);
} else {
System.out.printf("%.2f",accountBalance);
}
}
}