fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Depo
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. int k;
  10. Scanner in = new Scanner(System.in);
  11. k=in.nextInt();
  12. double[] t;
  13. t= new double[k];
  14. for(int i=0; i < k; i++ ){
  15. t[i]=in.nextDouble();
  16. }
  17. for(int i=0; i < k; i++ ){
  18. System.out.println(t[k-i-1]);
  19. }
  20. }
  21. }
Success #stdin #stdout 0.18s 321344KB
stdin
6 1 2 3 4 5 6
stdout
6.0
5.0
4.0
3.0
2.0
1.0