fork download
  1. class M{
  2. static String c(String i){
  3. return i.contains(".")
  4. ? " " + i
  5. : i + (i.endsWith("/")
  6. ? 92
  7. : '/');
  8. }
  9.  
  10. public static void main(String[] a){
  11. System.out.println(c(" ."));
  12. System.out.println(c(" ."));
  13. System.out.println(c(" ."));
  14. System.out.println(c(" ."));
  15. System.out.println(c(" ."));
  16. System.out.println(c(" ."));
  17. System.out.println(c(" ."));
  18. System.out.println(c(" ."));
  19. System.out.println(c("/"));
  20. System.out.println(c("\\"));
  21. System.out.println(c("/\\"));
  22. System.out.println(c("\\/"));
  23. System.out.println(c("/\\/"));
  24. System.out.println(c("\\/\\"));
  25. System.out.println(c("/\\/\\"));
  26. System.out.println(c("\\/\\/"));
  27. }
  28. }
Success #stdin #stdout 0.04s 711168KB
stdin
Standard input is empty
stdout
  .
   .
    .
     .
      .
       .
        .
         .
/\
\/
/\/
\/\
/\/\
\/\/
/\/\/
\/\/\