Summer Outfit задача
Здравейте, задачата изхода от задачата е 1/1 с това, което се търси, но Judge ми дава 90/100? Къде може да е грешката?
import java.util.Scanner; public class SummerOutfit { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int degrees = Integer.parseInt(scanner.nextLine()); String Time = scanner.nextLine(); String outfit = ""; String shoes = ""; if(Time.equals("Morning")){ if(degrees >= 10 && degrees <= 18){ outfit = "Sweatshirt"; shoes = "Sneakers"; }else if(degrees > 18 && degrees <= 24){ outfit = "Shirt"; shoes = "Moccasins"; }else { outfit = "T-Shirt"; shoes = "Sandals"; } }else if(Time.equals("Afternoon")){ if(degrees <= 10 && degrees <= 18){ outfit = "Shirt"; shoes = "Moccasins"; }else if(degrees > 18 && degrees <= 24){ outfit = "T-Shirt"; shoes = "Sandals"; }else{ outfit = "Swim Suit"; shoes = "Barefoot"; } }else if(Time.equals("Evening")){ if(degrees <= 10 && degrees <= 18){ outfit = "Shirt"; shoes = "Moccasins"; }else if(degrees > 18 && degrees <= 24){ outfit = "Shirt"; shoes = "Moccasins"; }else{ outfit = "Shirt"; shoes = "Moccasins"; } } System.out.printf("It's %d degrees, get your %s and %s.", degrees, outfit, shoes);
Много благодаря!