An open API service indexing awesome lists of open source software.

https://github.com/charlesaverill/aoc23

Advent of Code 2023
https://github.com/charlesaverill/aoc23

Last synced: about 2 months ago
JSON representation

Advent of Code 2023

Awesome Lists containing this project

README

        

# Advent of Code 2023

This is my first time participating in [Advent of Code](https://adventofcode.com/).
I will be participating using the [Pascal](https://en.wikipedia.org/wiki/Pascal_(programming_language)) Programming Language, which I have not used before.
All solutions are compiled using [fpc](https://www.freepascal.org/) version 3.2.2.
The AoC FAQ asks that participants not post problem descriptions or challenge inputs, so you can grab those from [the calendar](https://adventofcode.com/2023).

Here's a [sample of Pascal code](helloworld.pas):

```pascal
program HelloWorld;

function fact(n: integer): integer;
begin
if (n <= 0) then
fact := 1
else
fact := n * fact(n - 1)
end;

function fact_it(n: integer): integer;
var
i : integer;
begin
fact_it := 1;
for i := 1 to n do
begin
fact_it := fact_it * i;
end;
end;

begin
writeln('Hello World!');
writeln('fact(5): ', fact(5));
writeln('fact_it(5): ', fact_it(5));
end.

```