{"id":16792295,"url":"https://github.com/chrivers/schantz-2017","last_synced_at":"2025-08-17T11:10:38.240Z","repository":{"id":140207754,"uuid":"80769527","full_name":"chrivers/schantz-2017","owner":"chrivers","description":"Schantz' New Year's Coding Challenge 2017","archived":false,"fork":false,"pushed_at":"2017-02-14T13:14:37.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T09:49:12.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrivers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-02T21:16:35.000Z","updated_at":"2017-02-02T21:36:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"e85a1ebf-a87c-48e6-9ce8-33ee09da3c0e","html_url":"https://github.com/chrivers/schantz-2017","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chrivers/schantz-2017","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrivers%2Fschantz-2017","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrivers%2Fschantz-2017/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrivers%2Fschantz-2017/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrivers%2Fschantz-2017/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrivers","download_url":"https://codeload.github.com/chrivers/schantz-2017/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrivers%2Fschantz-2017/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270837583,"owners_count":24654391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T08:45:19.811Z","updated_at":"2025-08-17T11:10:37.955Z","avatar_url":"https://github.com/chrivers.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Schantz Challenge 2017\n\nLike last year, Schantz A/S is holding a code golf competition. This\nrepository contains my research notes, failed attempts, experiments,\nas well as the 2 programs that won first place in each of the 2\ncategories.\n\nChallenge: Write the shortest possible program that outputs the yearly\nreserves for Santa’s pension until he has enough to retire and buy the\nisland of Kiatak (\u003e 1.000.000 DKK).\n\nThe exact rules are described in the [LinkedIn\nannouncement](https://www.linkedin.com/pulse/schantz-new-years-coding-challenge-2017-espen-højsgaard).\n\nThere are 2 categories:\n\n - Category 1: Only C# and Java are allowed\n\n - Category 2: Anything goes, except languages invented for this challenge.\n\n## Give it to me straight, doc!\n\nOk, ok. I get it, you want to cut to the chase. The 2 winning entries are:\n\n - Category 1: [2017-19.cs](2017-19.cs) (66 characeters)\n\n![2017-19.cs text](2017-19.png)\n\n - Category 2: [2017-17.gs2s](2017-17.gs2s) (assembles to `2017-17.gs2`) (33 characeters)\n\n![2017-17.gs2s text](2017-17.png)\n\n## I demand an explanation!\n\nYou're in luck! My [presentation from the prize\nceremony](https://chrivers.github.io/schantz-2017-presentation/index.html)\nis online! Just press \"f\" for full screen, and Space for next\nslide.\n\nAnd the source code for the presentation is [also on\ngithub](https://github.com/chrivers/schantz-2017-presentation).\n\n## Tools of the trade\n\n### Checking\n\nChecking the validity of the work is important. To this end, I made an\nimproved validation tool, that not only validates correctness, but\nalso displays deviation from the reference solution.\n\nTo run a check on a solution, run `make checkXX`, for example `make\ncheck17` or `make check19` to check the winning entries.\n\n### Size calculation\n\nType `make size` to see an overview of all sizes, like so:\n\n```\n2017-08.cs     :    153 total,     77 whitespace,     76 non-whitespace:     78 characters (minified)\n2017-09.gs2    :     39 total,      0 whitespace,     39 non-whitespace:     39 bytes (binary)\n...\n2017-16.gs2    :     39 total,      0 whitespace,     39 non-whitespace:     39 bytes (binary)\n2017-17.gs2    :     33 total,      0 whitespace,     33 non-whitespace:     33 bytes (binary)\n2017-18.java   :    101 total,     37 whitespace,     64 non-whitespace:     65 characters (minified)\n2017-19.cs     :     81 total,     17 whitespace,     64 non-whitespace:     66 characters (minified)\n2017-20.jshell :     97 total,     16 whitespace,     81 non-whitespace:     83 characters (minified)\n2017-21.py     :     89 total,      0 whitespace,     89 non-whitespace:     89 chars (raw text)\n...\n```\n\nType `make checkXX` to see the size of a specific entry.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrivers%2Fschantz-2017","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrivers%2Fschantz-2017","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrivers%2Fschantz-2017/lists"}