Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

My solutions for the Advent of Code 2016 challenges

License

NotificationsYou must be signed in to change notification settings

SizableShrimp/AdventOfCode2016

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository holds my solutions and helper code (in Java/Kotlin) forAdvent Of Code 2016.Usually, what I push to GitHub is fully formed and semi-optimized.

Running A Specific Day

This program runs a specific day based on a few factors inside theMain class.If it is the month of December in EST time and the 25th or earlier, whatever current day it is in EST time will be selected to run.If this program is not run during Advent season, it will run ALL days by default.An output from a day looks like the following:

Day 1:Part 1: 123Part 2: 456Completed in 5.298ms

Note that "Completed in X.XXXms" is not a real or accurate benchmark, but my own approximate measure of how long a day takes to run.For real benchmarks, please seegradle jmh and thebenchmarks package.If you would like to run a specific day outside the month of the December, userun(int) in theMain class.

Information About Data Manager

This program canoptionally read input data for a specified dayusing the Advent Of Code servers.To enable this feature, you must include asession.txt file in the working directory.This file should hold your session cookie from the Advent Of Code website, which can be found with browser inspection.This cookie expires after a month which means thesession.txt file needs to be updated from time to time.

Retrieving Input File

If the input file is successfully retrieved from the servers, this data is cached in a text file relative to your run directory in theaoc_input directory.Fetching data from the Advent Of Code servers isonly used if a file with the input data for a specified day cannot be found to reduce load on the servers.See the documentation onDataManager#read for more detail.

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp