My issue
my code is ok then also its answer is showing wrong
My code
// Remember - there is no t in this problem
import java.util.Scanner;
class Codechef
{
public static void main (String[] args)
{
Scanner read = new Scanner(System.in);
int x = read.nextInt();
int y = read.nextInt();
// Update your code below this line to solve the problem
int a = x-y;
int b= y/2;
System.out.println("the total no of minutes that chef spends"+ " "+(a+b));
}
}
Learning course: Solve Programming problems using Java
Problem Link: CodeChef: Practical coding for everyone