Hi,
I agree it's not the smoothest solution, but it seems like it's working correctly.
Why isn't my solution accepted?
package fr.codegym.task.task04.task0416;
/*
Traverser les yeux fermés
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader lecteur = new BufferedReader(new InputStreamReader(System.in));
String reelT = lecteur.readLine();
float t = Float.parseFloat(reelT);
if ((t >= 0 && t<3) || (t>=5 && t<8) || (t>=10 && t<13)|| (t>=15 && t<18)|| (t>=20 && t<23)|| (t>=25 && t<28)|| (t>=30 && t<33)|| (t>=35 && t<38)|| (t>=40 && t<43)|| (t>=45 && t<48)|| (t>=50 && t<53)|| (t>=55 && t<58) )
System.out.println("vert");
else if (t==3 || t==8 || t==13 || t==18 || t==23 ||t==28 || t==33 || t==38 || t==43 || t==48 || t==53 || t==58)
System.out.println("jaune");
else if (t==4 || t==9 || t==14 || t==19 || t==24 ||t==29 || t==34 || t==39 || t==44 || t==49 || t==54 || t==59)
System.out.println("rouge");
}
}