Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
C++ version of Naive Solution
branch: master

This branch is 7 commits ahead of rdbisch:master

Failed to load latest commit information.
.gitignore visual studio related files
Driver.cpp misc changes
Elf.h misc changes
Hours.cpp misc changes
Hours.h misc changes
Makefile Broke massive file up
Naive.h misc changes
ReadMe.txt misc changes
Santa2014.sln visual studio related files
Santa2014.vcxproj misc changes
Santa2014.vcxproj.filters misc changes
Score.cpp misc changes
Toy.h misc changes
stdafx.cpp precompiled header
stdafx.h misc changes
targetver.h win ver stuff

ReadMe.txt

Santa2014

Adapted for VC++ 2013 from Rick Bischoff's code: https://github.com/rdbisch/Santa2014

=========

To generate naive solution:

	Santa2014.exe 900 toys_rev2.csv > output.csv

Run time about 20 secs on 3.4G i7 system.

To calculate solution score:

	Santa2014.exe --score 900 toys_rev2.csv < output.csv

Run time about 25 secs on 3.4G i7 system.

Naive solution score:

	This program   : 1875730155.05752
	Original Python: 1875730155.06
Something went wrong with that request. Please try again.