Gabriel Pereira de Carvalho's submission of Profitable Paths 2 | CodeChef