File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ fn main() {
4
4
let line = stdin ( ) . lines ( ) . last ( ) . unwrap ( ) . unwrap ( ) ;
5
5
let mut lookup: HashMap < _ , _ > = line. split ( "," ) . map ( |n| n. parse ( ) . unwrap ( ) ) . zip ( 1 ..) . collect ( ) ;
6
6
let mut last = 0 ;
7
- for i in lookup. len ( ) +1 ..30000000 {
7
+ for i in lookup. len ( ) +1 ..30_000_000 {
8
8
last = i - lookup. insert ( last, i) . unwrap_or ( i) ;
9
9
if i == 2019 { println ! ( "{}" , last) ; }
10
10
}
Original file line number Diff line number Diff line change 1
1
<!-- AOC TILES BEGIN -->
2
2
<h1 align =" center " >
3
- Advent of Code - 178 /450 ⭐
3
+ Advent of Code - 180 /450 ⭐
4
4
</h1 >
5
5
<h1 align =" center " >
6
6
2023 - 50 ⭐
237
237
<img src =" .aoc_tiles/tiles/2021/25.png " width =" 161px " >
238
238
</a >
239
239
<h1 align =" center " >
240
- 2020 - 28 ⭐
240
+ 2020 - 30 ⭐
241
241
</h1 >
242
242
<a href =" 2020/01/01.rs " >
243
243
<img src =" .aoc_tiles/tiles/2020/01.png " width =" 161px " >
281
281
<a href =" 2020/14/14.rs " >
282
282
<img src =" .aoc_tiles/tiles/2020/14.png " width =" 161px " >
283
283
</a >
284
+ <a href =" 2020/15/15.rs " >
285
+ <img src =" .aoc_tiles/tiles/2020/15.png " width =" 161px " >
286
+ </a >
284
287
<!-- AOC TILES END -->
285
288
286
289
* The above tiles are clickable, leading to the solution of the corresponding day.*
You can’t perform that action at this time.
0 commit comments