|  | 
|  | 
| вернуться в форум | Wrong answer please help me 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))));
 }
 }
 }
 | 
 | 
|