项目作者: jmanuel1

项目描述 :
Solutions to some Code Jam problems in F#.
高级语言: F#
项目地址: git://github.com/jmanuel1/code-jam-f-sharp.git
创建时间: 2018-04-20T05:29:51Z
项目社区:https://github.com/jmanuel1/code-jam-f-sharp

开源协议:MIT License

下载


My solutions to Code Jam problems

This repo contains my solutions to a few Google Code Jam problems. I first
wrote these solutions in 2016, and then ported them to F# and wrapped them in a
CLI. They aren’t optimal solutions—in fact, one of them is quite slow—but
they are my solutions.

Demonstration GIF

Usage

To run a Code Jam solution, type

  1. CodeJam --problem <problem-name>
  2. rem Waits for input.
  3. rem Outputs "Case #1:..."

Like any other Code Jam solution, the input will be taken from stdin, and
output will go to stdout.

To get a usage message, run any of the following

  1. CodeJam
  2. CodeJam -h
  3. CodeJam help
  4. CodeJam --help
  5. goto EndExampleOutput
  6. This program can take a single argument --problem which can take the following values
  7. rank-and-file : run a solution to the 2016 Round 1a 'Rank and File' problem
  8. the-last-word : run a solution to the 2016 Round 1a 'The Last Word' problem
  9. coin-jam : run a solution to the 2016 Qualification Round 'Coin Jam' problem
  10. If no arguments are given, or the --help/help/-h argument is given, then this help message is printed.
  11. If the --version/version/-V/-v argument is given, the version of this program is printed.
  12. Input, just like in the real CodeJam, is fed through standard input.
  13. :EndExampleOutput

A usage message is displayed when the arguments are invalid, too.

To find out what version of CodeJam you’re using, run any of the following

  1. CodeJam -v
  2. CodeJam -V
  3. CodeJam version
  4. CodeJam --version
  5. rem Outputs "Version #.#.#"

Available solutions

Name Link to problem statement
rank-and-file https://code.google.com/codejam/contest/4304486/dashboard#s=p1
coin-jam https://code.google.com/codejam/contest/6254486/dashboard#s=p2
the-last-word https://code.google.com/codejam/contest/4304486/dashboard

Possible errors

Error code Description
EARGS The program received an invalid combination of arguments.

Reporting issues

Report issues on GitHub.

Code of Conduct

Contributing guidelines

Development

Acknowledgements