Day 3 の入力を取得します 私の答え 私の答えです。 折りたたんでおきます。 ▶を押して開いてください。 details 回答用のモジュールです 入力を扱いやすい形にするためのparseと、回答を作るためのresolve関数を持っています defmoduleResolverdodefparse(input)doparsed_input=input|>String....
Date: Mon, 11 Mar 2024 07:45:33 +0100 Subject: [PATCH] Advent of Code 2023: Picat and SWI-Prolog --- advent-of-code-2023/1.pi | 128 ++++++++++ advent-of-code-2023/11.pi | 76 +++++++ advent-of-code-2023/12_part1.pi | 111 ++++++++++ advent-of-code-2023/13.pi |...
🎄 Advent of Code 2023 Solutions for Advent of Code in Rust. Benchmarks DayPart 1Part 2 Day 1 26.7µs 115.8µs Day 2 37.9µs 46.0µs Day 3 99.4µs 105.1µs Day 4 102.0µs 103.3µs Day 5 16.7µs 101.5µs Day 6 216.0ns 438.0ns Day 7 379.4µ...
和前两年一样,今年也争取每天用一种不同的编程语言完成。 最近跑马+流感,拖到第10天才有空开始,先做了前4天简单的题目。 第一天: Clojure。开始想用sed + bc发现不好搞,老实写了程序。第二天: Awk。第三天: Zi…
Advent of Code 2023 is an annual coding event that challenges programmers with daily algorithmic problems. The solutions to these problems typically involve a mix of data structures, algorithms, and problem-solving skills. While the total number of participants in the event may not be very high,...
Advent of Code [About] [Events] [Shop] [Log In] /*2024*/ [Calendar] [AoC++] [Sponsors] [Leaderboard] [Stats] Our sponsors help make Advent of Code possible: CodSpeed: Performance Leaderboard - Too slow to make it on the official leaderboard? Join the CodSpeed performance challenge and...
It may be caused by the initial cost of native compilation of the code. Day 7 I did mention “Lapland Hold’em” on day 4, didn’t I? They do have gambling issues and when I become a therapist for elves – I’m going to be insanely rich! Part 1 When parsing, I decided to ...
https://adventofcode.com/2023 Day 1 Part 1 (*读取文件*)lines= ReadList["E:\\ExplorerDownload\input.txt", String]; (*计算校准值*) calibrationValues = ToExpression[ StringJoin[#[[1]], #[[-1]]] & /@ (StringCases[#, DigitCharacter] & /@lines); (...
Advent of Code 2023 Advent of Code 是一年一度的编程谜题活动,里面包含着各种技能组合和技能水平的问题,参与者可以使用自己任何擅长喜欢的编程语言来解谜,谜题背后是精心构建的故事情节,让参与者挑战的同时,也享受到娱乐放松。 Advent of Code 在每年的圣诞节前 25 天开始,每天的题目分为两部分,第二部分会更难...
Find file Code day 15 Manouk authored 1 year ago 9374c038 History Name Last commit Last update Models day 10 (unfinished), 11 and 13 1 year ago PuzzleLogic day 15 1 year ago .editorconfig Initial commit 1 year ago .gitignore Initial commit 1 year ago AdventOfCode2023aspDOTnet....