ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1001. Reverse Root

What is wrong in my code? (I get the wrong answer in web compiler)
Posted by nattapong 21 Feb 2009 10:51
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