File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11namespace AdventOfCode . Y2025 . Day01 ;
22
3+ using System ;
34using System . Collections . Generic ;
45using System . Linq ;
56
@@ -12,7 +13,7 @@ class Solution : Solver {
1213 IEnumerable < int > Dial ( IEnumerable < int > rotations ) {
1314 int pos = 50 ;
1415 foreach ( var rotation in rotations ) {
15- pos = ( pos + rotation + 100 ) % 100 ;
16+ pos = ( pos + rotation ) % 100 ;
1617 yield return pos ;
1718 }
1819 }
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ public string ToSvg() {
199199 var text = token . Text
200200 . Replace ( "<" , "<" )
201201 . Replace ( ">" , ">" )
202+ . Replace ( "&" , "&" )
202203 . Replace ( " " , " " ) ;
203204 sb . Append ( $@ "<tspan fill=""{ token . RgbaColor } "">{ text } </tspan>") ;
204205
Original file line number Diff line number Diff line change 1- # Advent of Code (2015-2024 )
1+ # Advent of Code (2015-2025 )
22 C# solutions to the [ Advent of Code] ( https://adventofcode.com ) problems.
33
4- <a href =" https://adventofcode.com " ><img src =" 2024 /calendar.svg" width =" 80% " /></a >
4+ <a href =" https://adventofcode.com " ><img src =" 2025 /calendar.svg" width =" 80% " /></a >
55
66 I'm making a [ website] ( https://aoc.csokavar.hu ) out of this.
77
You can’t perform that action at this time.
0 commit comments