2022-12-07 12:17:53 +01:00
|
|
|
### Build
|
2022-12-07 12:02:44 +01:00
|
|
|
|
|
|
|
```
|
2022-12-07 12:17:53 +01:00
|
|
|
mvn package
|
2022-12-07 12:02:44 +01:00
|
|
|
```
|
|
|
|
|
2022-12-07 12:17:53 +01:00
|
|
|
### Run
|
|
|
|
```
|
|
|
|
java -cp target/aoc07-1.0-SNAPSHOT.jar com.felixalb.app.App input.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
### Read
|
2022-12-07 12:02:44 +01:00
|
|
|
Code is located in `src/main/java/com/felixalb/app/`
|
2022-12-07 12:17:53 +01:00
|
|
|
|
|
|
|
### 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
|
|
|
|
```
|