number slide by kevmo314

import java.util.*;\x0d
import java.io.*;\x0d
\x0d
class test\x0d
{\x0d
\x09public static void main(String[] args) throws IOException\x0d
\x09{\x0d
\x09\x09BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\x0d
\x09\x09int ct = 1, dr = 0, max = Integer.parseInt(in.readLine());\x0d
\x09\x09for(int i = 1; i <= max; i++)\x0d
\x09\x09{\x0d
\x09\x09\x09dr++;\x0d
\x09\x09\x09System.out.print(i);\x0d
\x09\x09\x09if(dr == ct)\x0d
\x09\x09\x09{\x0d
\x09\x09\x09\x09dr = 0;\x0d
\x09\x09\x09\x09ct++;\x0d
\x09\x09\x09\x09System.out.println();\x0d
\x09\x09\x09}\x0d
\x09\x09\x09else\x0d
\x09\x09\x09{\x0d
\x09\x09\x09\x09System.out.print(" ");\x0d
\x09\x09\x09}\x0d
\x09\x09}\x0d
\x09}\x0d
}

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

download

return to the top page