Skip to content

This tool produces an execution time table for days part of Advent of Code puzzles.

Notifications You must be signed in to change notification settings

coralkashri/AoC-execution_time_table_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code - Execution Time Table Generator

This tool produces an execution time table for days part of Advent of Code puzzles.
Usage example: https://github.com/coralkashri/AOC/blob/master/src/2020/README.md.

Run Command

AoC_execution_time_table_generator path/to/input/file.ext

Output Example

Produced using input_file_2.

Day First Part Second Part
1 50 milliseconds 5 seconds, 50 milliseconds
2 50 milliseconds 5 seconds, 50 milliseconds
3 5 seconds, 50 milliseconds
4 50 milliseconds 5 seconds, 50 milliseconds
5
6 50 milliseconds
7 50 milliseconds 5 seconds, 50 milliseconds
8 50 milliseconds 5 seconds, 50 milliseconds
9 50 milliseconds 5 seconds, 50 milliseconds
10 50 milliseconds 5 seconds, 50 milliseconds
11 50 milliseconds 5 seconds, 50 milliseconds
12 50 milliseconds 5 seconds, 50 milliseconds
13 50 milliseconds 5 seconds, 50 milliseconds
14 50 milliseconds 5 seconds, 50 milliseconds
15 50 milliseconds
16 5 seconds, 50 milliseconds
17 50 milliseconds 5 seconds, 50 milliseconds
18 50 milliseconds 5 seconds, 50 milliseconds
19 50 milliseconds 5 seconds, 50 milliseconds
20 50 milliseconds 5 seconds, 50 milliseconds
21 50 milliseconds 5 seconds, 50 milliseconds
22 50 milliseconds 5 seconds, 50 milliseconds
23 50 milliseconds 5 seconds, 50 milliseconds
24 50 milliseconds 5 seconds, 50 milliseconds
25 50 milliseconds 5 seconds, 50 milliseconds

Input File Syntax

... {day number (1-25)} ...
(optional)First: time details
(optional)Second: time details

Legal input lines

  • Days 24 // Day 24
  • 21 // Day 21
  • FirSt: 34milli // first part with data: ' 34milli'

Legal input days

  • Day 21
    First:
    Second: 34milli
  • 4
    Second: 34milli
  • 3 day
    fiRst: 34milli
  • day of advent - 12
    second: 34milli
    fiRst: 34milli

Illegal input lines

  • Day 56 // Max day is 25
  • 26 // Max day is 25
  • third: 2 milliseconds // Unrecognized part (only use first / second)
  • Seconds // Unrecognized part
  • Day: 5 // Unrecognized part

About

This tool produces an execution time table for days part of Advent of Code puzzles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published