Byteland The final homework of algorithm. I should program in this way. It's more simple and structured.