|
|
back to boardRuntime Error. Why? import java.util.*; import java.io.*; public class root { public static void main(String[] args) { Scanner in = new Scanner(System.in);
ArrayList<Long> list = new ArrayList<Long>();
while (in.hasNextLine()) { list.add(in.nextLong()); }
Collections.reverse(list);
for (long x : list) { System.out.printf("%.4f", Math.sqrt(x)); System.out.println(); } } } Works on my computer with the given input. Edited by author 31.01.2015 06:20 |
|
|