|  | 
|  | 
| back to board | Java WA on test 1 import java.io.*;import java.text.DecimalFormat;
 import java.util.*;
 
 public class Main {
 public static void main(String[] args) throws IOException {
 Scanner in = new Scanner(System.in);
 PrintWriter out = new PrintWriter(System.out);
 List<Double> a = new ArrayList<Double>();
 while (in.hasNextDouble() ) {
 a.add(in.nextDouble());
 }
 
 DecimalFormat df = new DecimalFormat("#.0000");
 for (int i = a.size() - 1; i >= 0; --i) {
 out.println(df.format(Math.sqrt(a.get(i))));
 }
 }
 }
 
 
 And I realy don't understand where is my problem
 
 
 
 Edited by author 02.10.2013 14:42
Re: Java WA on test 1 Posted by Eric  8 Oct 2013 14:53Change List<Double> to List<Long> | 
 | 
|