Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Advent of Code 2023 in Java
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LUDMANN Pierre
Advent of Code 2023 in Java
Commits
9b30f05f
Commit
9b30f05f
authored
1 year ago
by
LUDMANN Pierre
Browse files
Options
Downloads
Patches
Plain Diff
[day5] ranges from [0, +inf[ with start and soft end
parent
b6625be9
No related branches found
No related tags found
1 merge request
!1
Day5 ludmann1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/java/CieDuVaseDesNoces/Day5Test.java
+19
-0
19 additions, 0 deletions
src/test/java/CieDuVaseDesNoces/Day5Test.java
src/test/resources/day5.input
+33
-0
33 additions, 0 deletions
src/test/resources/day5.input
with
52 additions
and
0 deletions
src/test/java/CieDuVaseDesNoces/Day5Test.java
0 → 100644
+
19
−
0
View file @
9b30f05f
package
CieDuVaseDesNoces
;
import
org.junit.jupiter.api.Test
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
assertEquals
;
public
class
Day5Test
{
Day5
today
=
new
Day5
(
"day5.input"
);
@Test
void
part1_test
()
{
assertEquals
(
"35"
,
today
.
part1
());
}
@Test
void
part2_test
()
{
assertEquals
(
"46"
,
today
.
part2
());
}
}
This diff is collapsed.
Click to expand it.
src/test/resources/day5.input
0 → 100644
+
33
−
0
View file @
9b30f05f
seeds: 79 14 55 13
seed-to-soil map:
50 98 2
52 50 48
soil-to-fertilizer map:
0 15 37
37 52 2
39 0 15
fertilizer-to-water map:
49 53 8
0 11 42
42 0 7
57 7 4
water-to-light map:
88 18 7
18 25 70
light-to-temperature map:
45 77 23
81 45 19
68 64 13
temperature-to-humidity map:
0 69 1
1 0 69
humidity-to-location map:
60 56 37
56 93 4
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment