|
|
back to boardWhat is wrong in my code? (I get the wrong answer in web compiler) 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)); } } I get the correct answer in java compiler but it can't accept. Please advise me about this. Edited by author 21.02.2009 10:56 Re: What is wrong in my code? (I get the wrong answer in web compiler) Posted by yzthz 14 Mar 2009 16:16 The number of Ai is not necessarily 4 |
|
|