Improved readme day07

This commit is contained in:
Felix Albrigtsen 2022-12-07 12:17:53 +01:00
parent 0b81d8d015
commit bb9331d9ed
2 changed files with 36 additions and 3 deletions

View File

@ -10,7 +10,7 @@ These are my attempts on [AoC 2022](https://adventofcode.com/2022/)
| [04](day04) | ⭐ | ⭐ | Haskell | | [04](day04) | ⭐ | ⭐ | Haskell |
| [05](day05) | ⭐ | ⭐ | Lua | | [05](day05) | ⭐ | ⭐ | Lua |
| [06](day06) | ⭐ | ⭐ | Common Lisp | | [06](day06) | ⭐ | ⭐ | Common Lisp |
| 07 | | | | | [07](day07) | ⭐ | ⭐ | Java |
| 08 | | | | | 08 | | | |
| 09 | | | | | 09 | | | |
| 10 | | | | | 10 | | | |

View File

@ -1,7 +1,40 @@
Run with command: ### Build
``` ```
mvn package && java -cp target/aoc07-1.0-SNAPSHOT.jar com.felixalb.app.App input.txt mvn package
``` ```
### Run
```
java -cp target/aoc07-1.0-SNAPSHOT.jar com.felixalb.app.App input.txt
```
### Read
Code is located in `src/main/java/com/felixalb/app/` Code is located in `src/main/java/com/felixalb/app/`
### Sample
```
$ java -cp target/aoc07-1.0-SNAPSHOT.jar com.felixalb.app.App input_demo.txt [12:16:33]
Lines: 23
Commands: 10
/ (48381165)
| a (94853)
| | e (584)
| | | i (584)
| | f (29116)
| | g (2557)
| | h.lst (62596)
| b.txt (14848514)
| c.dat (8504156)
| d (24933642)
| | j (4060174)
| | d.log (8033020)
| | d.ext (5626152)
| | k (7214296)
Total size: 48381165
Part 1: 95437
Part 2: 24933642
```