AdventOfCode2022/02/README.md

17 lines
444 B
Markdown
Raw Permalink Normal View History

2022-12-04 00:52:52 +01:00
# [Day 2](https://adventofcode.com/2022/day/2)
:gift::gift:
2023-12-09 13:46:15 +01:00
2022-12-04 00:52:52 +01:00
Today's language: **C++**
2022-12-04 01:07:50 +01:00
2023-12-09 13:46:15 +01:00
Lines of code: **40**
Execution time: **0,003 s**
2022-12-04 01:07:50 +01:00
We use that chars are just numbers, so we can easily convert them into the respective points by just subtracting `'A'` or `'X'`.
The rest is then just a few `if else`s.
2022-12-03 03:01:06 +01:00
```shell
# What would your total score be if everything goes exactly according to your strategy guide?
g++ main.cpp -o day2
./day2
```