import java.util.*;
public class Main {

public static void main(String[] args) {
    Scanner ile = new Scanner(System.in).useLocale(Locale.US);
    for (int i = 1; i <= 3; i++) {
        Double a = ile.nextDouble();
        Double b = ile.nextDouble();
        Double c = ile.nextDouble();
        Double d = b * b - 4 * a * c;
        if (d < 0) {
            System.out.println("0");
        } else if (d == 0) {
            System.out.println("1");
        } else if (d > 0) {
            System.out.println("2");
        }
    }
}

}

  • created

    Oct '18
  • last reply

    Oct '18
  • 1

    reply

  • 710

    views

  • 2

    users

przeczytałeś dokładnie treść zadania ?
niezależnie od twojej odpowiedzi przeczytaj ponownie (tyle razy ile będzie potrzeba do AC) :slight_smile: