Add missing solution example and fixed Pascal.

Most of the solution for the supported task types example for java,
python, php were missing. Also Pascal used integer (16 bits, at least
on my platform) that failed some cases.