aboutsummaryrefslogtreecommitdiff
path: root/2015
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2021-12-02 10:02:05 +0100
committerThomas Voss <thomasvoss@live.com> 2021-12-02 10:02:05 +0100
commit00b67942fed9961bd8d46d6f4fdae97dd074bb4e (patch)
tree6606a5a20f8874eb73921a3a3410e9e4a43bb715 /2015
parent1180c8b9e19bdfa2e13fc5063aba639e6ee0640d (diff)
Run through gofmt
Diffstat (limited to '2015')
-rw-r--r--2015/20/puzzles.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/2015/20/puzzles.go b/2015/20/puzzles.go
index e734f2e..591bca4 100644
--- a/2015/20/puzzles.go
+++ b/2015/20/puzzles.go
@@ -17,7 +17,7 @@ func calc(n int) int {
}
for i := 1; i < int(s); i++ {
- if n % i == 0 {
+ if n%i == 0 {
/* START PART 2 */
ndi := n / i
if ndi <= 50 {
@@ -26,7 +26,7 @@ func calc(n int) int {
acc += ndi
}
/* END PART 2 START PART 1 */
- acc += i + n / i
+ acc += i + n/i
/* END PART 1 */
}
}