变态的HelloWorld

public static void main(String[] args) {
        int i, n[] = {
                (((1 << 1) << (1 << 1) << (1 << 1) << (1 << (1 >> 1))) + ((1 << 1) << (1 << 1))),
                (((1 << 1) << (1 << 1) << (1 << 1) << (1 << 1))
                        - ((1 << 1) << (1 << 1) << (1 << 1))
                        + ((1 << 1) << (1 << (1 >> 1))) + (1 << (1 >> 1))),
                (((1 << 1) << (1 << 1) << (1 << 1) << (1 << 1))
                        - ((1 << 1) << (1 << 1) << (1 << (1 >> 1))) - ((1 << 1) << (1 << (1 >> 1)))),
                (((1 << 1) << (1 << 1) << (1 << 1) << (1 << 1))
                        - ((1 << 1) << (1 << 1) << (1 << (1 >> 1))) - ((1 << 1) << (1 << (1 >> 1)))),
                (((1 << 1) << (1 << 1) << (1 << 1) << (1 << 1))
                        - ((1 << 1) << (1 << 1) << (1 << (1 >> 1))) - (1 << (1 >> 1))),
                (((1 << 1) << (1 << 1) << (1 << 1))
                        + ((1 << 1) << (1 << 1) << (1 << (1 >> 1))) - ((1 << 1) << (1 << (1 >> 1)))),
                ((1 << 1) << (1 << 1) << (1 << 1)),
                (((1 << 1) << (1 << 1) << (1 << 1) << (1 << 1))
                        - ((1 << 1) << (1 << 1)) - (1 << (1 >> 1))),
                (((1 << 1) << (1 << 1) << (1 << 1) << (1 << 1))
                        - ((1 << 1) << (1 << 1) << (1 << (1 >> 1))) - (1 << (1 >> 1))),
                (((1 << 1) << (1 << 1) << (1 << 1) << (1 << 1))
                        - ((1 << 1) << (1 << 1) << (1 << (1 >> 1))) + (1 << 1)),
                (((1 << 1) << (1 << 1) << (1 << 1) << (1 << 1))
                        - ((1 << 1) << (1 << 1) << (1 << (1 >> 1))) - ((1 << 1) << (1 << (1 >> 1)))),
                (((1 << 1) << (1 << 1) << (1 << 1) << (1 << 1))
                        - ((1 << 1) << (1 << 1) << (1 << 1)) + ((1 << 1) << (1 << (1 >> 1)))),
                (((1 << 1) << (1 << 1) << (1 << 1)) + (1 << (1 >> 1))),
                (((1 << 1) << (1 << 1)) + ((1 << 1) << (1 << (1 >> 1))) + (1 << (1 >> 1))) };
        for (i = (1 >> 1); i < (((1 << 1) << (1 << 1))
                + ((1 << 1) << (1 << (1 >> 1))) + (1 << 1)); i++)
            System.out.print((char) n[i]);
    }

c版本原文:http://coolshell.cn/articles/914.html

posted @ 2013-06-20 10:38  带狗狗带  Views(282)  Comments(0Edit  收藏  举报