Advent of code 2023/16
Ajax Direct

Answer

Part 1 :
Part 2 :