Ages, Грешка в тестовете на Judge или моя грешка?
import java.util.Scanner; public class Ages { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int age = Integer.parseInt(scan.nextLine()); if (age > 0 && age <= 2){ System.out.println("baby"); } else if (age >= 3 && age <= 13) { System.out.println("child"); }else if (age >= 14 && age <= 19) { System.out.println("teenager"); }else if (age >= 20 && age <= 65) { System.out.println("adult"); }else if (age >= 66) { System.out.println("elder"); } } }
Не разбирам къде е грешката Judge ми дава 90/100
В детайлите ми излиза това :
Test #1 (Incorrect answer)
The process executing your submission for this test may not have received the output successfully. Please try to submit again the same solution. If the result does not change, then search the error in the submission itself.
Time used: 0.012 s
Memory used: 0.00 MB
Благодаря!