Skip to content

Simik31/AOC-2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2021

Advent of Code website

Languages:

  • C++ 14 Standard
  • C# (.NET Framework 4.7.2)
  • Go 1.17.5
  • Java 17.0.1
  • Node.js 17.2.0
  • PHP 8.0.13
  • Python 3.10

Progress:

Click on day number to go to day description

Click on star to go to code.

Day C++ C# GO Java Node.js PHP Python
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 ❌❌ ❌❌ ❌❌ ❌❌ ❌❌ ❌❌ ❌❌
21 ❌❌ ❌❌ ❌❌ ❌❌ ❌❌ ❌❌ ❌❌
22 ❌❌ ❌❌ ❌❌ ❌❌ ❌❌ ❌❌ ❌❌
23 ❌❌ ❌❌ ❌❌ ❌❌ ❌❌ ❌❌ ❌❌
24 ❌❌ ❌❌ ❌❌ ❌❌ ❌❌ ❌❌ ❌❌
25 ❌❌ ❌❌ ❌❌ ❌❌ ❌❌ ❌❌ ❌❌

How to run

Get the code:

    git clone https://github.com/Simik31/AOC-2021.git

C++

Open cpp/cpp.sln in Visual Studio to build and run the project.

C#

Open cs/cs.sln in Visual Studio to build and run the project.

Run for platform x64 (and ideally in Release mode)!

Data paths are hardcoded to x64 path (x64 has to go 5x ../ while Any CPU has to go ../ only 4x).

Go

    cd ./go
    go run .

Java

Open java/AOC-2021.iml in IntelliJ IDEA to run the project.

Run the project by clicking on the green arrow next to the public class Main { in Main.java.

Node.js

    cd ./nodejs
    node .

PHP

❗PHP solution of Day 7 Part 2 is for whatever reason extremely slow. Please be patient.

  • Run local server.

  • In browser:

    • Access /index.php for all solutions

    • Access /Day#.php where # stands for day number

      Example: /Day5.php will get you solution of day 5.

Python

    cd ./python
    python main.py

Or you can run each solution separate:

    cd ./python
    python Day1.py
    python Day2.py
    ...

License

Copyright (C) 2021 Simik31. All rights reserved.

Licensed under the WTFPL License.