segs by dc

enum o{o;System s;int j,i,f;{String t=new java.util.Scanner(s.in).nextLine();for(i=f=t.length();--i>=0;)for(j=1;j+i<=f;s.out.println(t.substring(i,i+j++)));}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page