瀏覽代碼

Might as well use an array if we're pre-sizing it.

master
Chris Smith 5 年之前
父節點
當前提交
c2a8a58817
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      day14.nim

+ 1
- 1
day14.nim 查看文件

@@ -7,7 +7,7 @@ let
7 7
     inputInt = input.parseInt
8 8
 
9 9
 var
10
-    scores = newSeq[int](100_000_000)  # Arbitrary large preallocation
10
+    scores: array[50_000_000, int]  # Arbitrary large preallocation
11 11
     size = 2
12 12
     elf1 = 0
13 13
     elf2 = 1