Reverse root java
<p><a href="http://acm.timus.ru/problem.aspx?space=1&amp;num=1001&amp;locale=en" rel="nofollow">This is a problem set</a></p>

<p>This is my realization it works, but i get wrong answer on acm.timus.ru</p>

<pre><code>import java.io.PrintWriter;
import java.util.Scanner;

public class SqrtBack{

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int count = 0;
        PrintWriter out = new PrintWriter(System.out);

        long[] arr = new long[131072];
        while(in.hasNextLong()){
            arr[count] = in.nextLong();
            count++;
        }

        for(int i = arr.length-1; i&gt;=0; i--){
            System.out.printf("%.4f%n", (Math.sqrt(arr[i])));

        }
        out.flush();
    }
} 
</code></pre>
