minor cleanup
This commit is contained in:
parent
9b75ff3744
commit
fa059dde06
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
import std/[algorithm, math, os, strutils, sugar]
|
||||
|
||||
let lst = stdin.readAll().strip()
|
||||
|
||||
let elves = lst.split("\n\n")
|
||||
|
||||
var totals = collect:
|
||||
|
@ -14,6 +13,6 @@ var totals = collect:
|
|||
totals.sort(order = Descending)
|
||||
|
||||
if paramStr(1) == "1":
|
||||
echo(totals[0])
|
||||
echo totals[0]
|
||||
elif paramStr(1) == "2":
|
||||
echo(sum(totals[0..2]))
|
||||
echo sum(totals[0..2])
|
||||
|
|
Loading…
Add table
Reference in a new issue