AdventOfCode2022/02/README.md

12 lines
391 B
Markdown
Raw Normal View History

2022-12-04 00:52:52 +01:00
# [Day 2](https://adventofcode.com/2022/day/2)
:gift::gift:
Today's language: **C++**
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
```