How to cheat on Kattis (code golf edition)

Kattis is one of those popular competitive programming sites, where people go to practice ICPC-style coding problems. I don’t use it personally, but a while ago I found out they have a shortest code leaderboard. The easiest problem on the site is called Hello World!, where the task is simply to print Hello World! to STDOUT.

Kattis problem statement

It seems straightforward at first, but if you check the leaderboards, the shortest submission to the problem is an astonishing 5 characters long (in Bash)! Common sense tells us that Hello World! costs 12 characters alone, so this score should not be possible from an entropy perspective…

Read more >>

Hello, World!

Hey! This is just a test post. Maybe I’ll have cool stuff to put on here someday…

For now, here’s a Hello, World! program in Brainfuck:

+[-->-[>>+>-----<<]<--<---]>-.>>>+.>>..+++[.>]<<<<.+++.------.<<-.>>>>+.
Read more >>