Живко обнови решението на 01.11.2016 16:58 (преди над 1 година)
+package main
+
+func SquareSumDifference(n uint64) uint64 {
+ result := n*n*(n+1)*(n+1)/4 - n*(n+1)*(2*n+1)/6
+ return result
+}
PASS ok _/tmp/d20161101-5193-mhvlye 0.002s PASS ok _/tmp/d20161101-5193-mhvlye 0.003s PASS ok _/tmp/d20161101-5193-mhvlye 0.002s PASS ok _/tmp/d20161101-5193-mhvlye 0.002s