solved more TOJ problems.