day03 #1
1 changed files with 9 additions and 8 deletions
|
@ -24,14 +24,6 @@ public class Main {
|
||||||
int d1_p2_answer = day01.Part2();
|
int d1_p2_answer = day01.Part2();
|
||||||
long day01_p2 = System.currentTimeMillis() - start;
|
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("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 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 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 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.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();
|
start = System.currentTimeMillis();
|
||||||
int day03_p1 = day03.part1();
|
int day03_p1 = day03.part1();
|
||||||
long day03_p1_t = System.currentTimeMillis() - start;
|
long day03_p1_t = System.currentTimeMillis() - start;
|
||||||
|
|
Loading…
Reference in a new issue