|
|
back to boardWhy this code is showed wrong answer in problem 1001 I don't understand that my code below get wrong answer.It can show the correct answer.Anyone, please advise me. import java.util.Scanner; public class root { public static void main(String[]args){ Scanner in = new Scanner(System.in); long a = in.nextLong(); long b = in.nextLong(); long c = in.nextLong(); long d = in.nextLong();
System.out.printf("%.4f \n",Math.sqrt(d)); System.out.printf("%.4f \n",Math.sqrt(c)); System.out.printf("%.4f \n",Math.sqrt(b)); System.out.printf("%.4f \n",Math.sqrt(a)); } } |
|
|