diff options
author | Thomas Voss <thomasvoss@live.com> | 2021-12-02 10:02:05 +0100 |
---|---|---|
committer | Thomas Voss <thomasvoss@live.com> | 2021-12-02 10:02:05 +0100 |
commit | 00b67942fed9961bd8d46d6f4fdae97dd074bb4e (patch) | |
tree | 6606a5a20f8874eb73921a3a3410e9e4a43bb715 /2015 | |
parent | 1180c8b9e19bdfa2e13fc5063aba639e6ee0640d (diff) |
Run through gofmt
Diffstat (limited to '2015')
-rw-r--r-- | 2015/20/puzzles.go | 4 |
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 */ } } |