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
- Host: GitHub
- URL: https://github.com/charlesaverill/aoc23
- Owner: CharlesAverill
- License: unlicense
- Created: 2023-12-05T08:05:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-15T03:19:44.000Z (over 1 year ago)
- Last Synced: 2025-01-14T10:59:00.258Z (3 months ago)
- Language: Pascal
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.```