fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Main
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. String N = r.readLine();
  10. int n = Integer.parseInt(N);
  11. String[] flock = new String[n];
  12. for (int i = 0; i < n; i++)
  13. flock[i] = r.readLine();
  14. for (int i = n - 1; i >= 0; i--)
  15. System.out.print(flock[i]);
  16. }
  17. }
Success #stdin #stdout 0.04s 2184192KB
stdin
3
abc
def
ghi
stdout
ghidefabc