day03 #1

Merged
eoghanconlon73 merged 17 commits from day03 into main 2024-12-09 15:05:01 +00:00
Showing only changes of commit c653c05a06 - Show all commits

View file

@ -24,6 +24,13 @@ public class Main {
int d1_p2_answer = day01.Part2();
long day01_p2 = 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);
System.out.printf("Part 2 sample answer is: %d (%dms)\n", sample_d1_p2_answer, day01_p2_sample);
System.out.printf("Part 2 answer is: %d (%dms)\n", d1_p2_answer, day01_p2);
System.out.println("\nDay 3:");
start = System.currentTimeMillis();
Day03 day03 = new Day03();
long day03_init = System.currentTimeMillis() - start;
@ -36,12 +43,6 @@ public class Main {
int day03_p1 = day03.part1();
long day03_p1_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);
System.out.printf("Part 2 sample answer is: %d (%dms)\n", sample_d1_p2_answer, day01_p2_sample);
System.out.printf("Part 2 answer is: %d (%dms)\n", d1_p2_answer, day01_p2);
System.out.printf("Day 3 init took %dms\n", day03_init);
System.out.printf("Day 3 part 1 (sample): %d (%dms)\n", day03_p1_sample, day03_p1_sample_t);
System.out.printf("Day 3 part 2 : %d (%dms)", day03_p1, day03_p1_t);