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

problem in 1001 in java
Posted by Nasimi 16 Feb 2010 18:11
Dear Team,
It is really very good support by you.
But please, look at the problem 1001-in java.
There might be problem in compiler-there is no one who solved this question in java.
I will include my answer too.:

import java.util.Scanner;
public class second{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);

double[] arr2=new double[200000];

int i=0,k=0;
do{
arr2[k]=s.nextDouble();
k++;
} while(s.hasNext());

for(i=k;i>0;i--){
System.out.printf("%.4f\n",Math.sqrt(arr2[i-1]));
}
}
}
Re: problem in 1001 in java
Posted by unlucky [Vologda SPU] 16 Feb 2010 21:04
Are you kidding :)
Many people solved this problem in Java.
I am among them.

Edited by author 16.02.2010 21:05