Fix. Adding Day02 stuff into main

Signed-off-by: Eoghan Conlon <git@eoghanconlon.ie>
This commit is contained in:
Eoghan Conlon 2024-12-09 15:01:14 +00:00
parent f91668f47e
commit eb2e8100c7

View file

@ -24,14 +24,6 @@ public class Main {
int d1_p2_answer = day01.Part2();
long day01_p2 = System.currentTimeMillis() - start;
start = System.currentTimeMillis();
Day03 day03 = new Day03();
long day03_init = System.currentTimeMillis() - start;
start = System.currentTimeMillis();
int day03_p1_sample = day03.part1_sample();
long day03_p1_sample_t = System.currentTimeMillis() - start;
System.out.printf("Day 1 init took %dms", day01_init);
System.out.printf("Part 1 sample is: %d (%dms)\n", sample_d1_p1_answer, day01_p1_sample);
System.out.printf("Part 1 answer is: %d (%dms)\n", d1_p1_answer, day01_p1);
@ -65,6 +57,15 @@ public class Main {
System.out.printf("Part 2 sample = %d (%dms)\n", d2_p2_sample, day02_p2_sample);
System.out.printf("Part 2 answer = %d (%dms)\n", d2_p2, day02_p2);
System.out.println("\nDay 3:");
start = System.currentTimeMillis();
Day03 day03 = new Day03();
long day03_init = System.currentTimeMillis() - start;
start = System.currentTimeMillis();
int day03_p1_sample = day03.part1_sample();
long day03_p1_sample_t = System.currentTimeMillis() - start;
start = System.currentTimeMillis();
int day03_p1 = day03.part1();
long day03_p1_t = System.currentTimeMillis() - start;