Пример #1
0
func Exercise67() int {
	tri := utils.ReadFileOrURL("../docs/exercise67.dat", "http://projecteuler.net/project/triangle.txt")
	lines := triangles.Splittext(tri)
	nlines := len(lines)
	max, _ := triangles.Maxroute(lines[1:nlines])
	return max
}
Пример #2
0
func Exercise18() int {
	lines := triangles.Splittext(ttext)
	total, _ := triangles.Maxroute(lines)
	return total
}