문제 4325번 어디서 틀렸는지 모르겠습니다!

YoonYoungJoon Reply 6 years 31 weeks ago
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner input = new Scanner(System.in); double a = input.nextDouble(); double b = input.nextDouble(); double c = input.nextDouble(); double D = b * b - 4 * a * c; if (D >= 0) { System.out.printf("%.1f\n", ((int)10*((-b+Math.pow(D,0.5))/2*a))/10); } else if(D<0){ System.out.println("complex"); } } } 에서 말 그대로 어디가 틀렸는지 모르겠네요...ㅠㅠ
keacotle Reply 6 years 31 weeks ago
질문글에 코드를 넣지 마시고 문제 추적이 가능하도록 문제에 질문을 연결해주시길 바랍니다.