Hi, I'm hoping that somone could help me understand why my code is not passing the test. I know that it's overly complicated and that there are more elegant solutions out there, but this was the first solution that I came up with on my own. In my mind it should work but I don't know why it doesn't pass the test:
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        double t = Double.parseDouble(reader.readLine());

        t = t % 10;

        if ((0 <= t && t < 3) || (5 <= t && t < 8)) {
            System.out.println("green");
        } else if ((3 <= t && t < 4) || (8 <= t && t < 9)) {
            System.out.println("yellow");
        } else if ((4 <=  t && t < 5) || (9 <= t && t < 10)) {
            System.out.println("red");
        } else System.out.println("Error");