https://github.com/karpikpl/kattis-js-ecma2016
ES2016 wrapper for https://open.kattis.com/ platform.
https://github.com/karpikpl/kattis-js-ecma2016
es2016 kattis
Last synced: over 1 year ago
JSON representation
ES2016 wrapper for https://open.kattis.com/ platform.
- Host: GitHub
- URL: https://github.com/karpikpl/kattis-js-ecma2016
- Owner: karpikpl
- Created: 2017-02-09T05:21:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:56:17.000Z (over 3 years ago)
- Last Synced: 2025-01-09T12:57:13.587Z (over 1 year ago)
- Topics: es2016, kattis
- Language: JavaScript
- Homepage:
- Size: 2.42 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# About [](https://travis-ci.org/karpikpl/kattis-js-ecma2016)
ES2016 wrapper for https://open.kattis.com/ JAVASCRIPT SPIDER MONKEY platform.
## Usage
Run `./start -p [PROBLEM] -w [WORKDIR]` where:
* [PROBLEM] is kattis problem id (from the URL)
* [WORKDIR] is existign working directory - where new folder with the name [PROBLEM] will be created
## Once solution is created
Put your solution inside `solution()` method. Add tests in `test/index.js`.
### Testing
run `npm test` to run mocha unit tests
### Data files
Put data files from kattis into `datafiles` directory in the root folder.
```
index.js
\datafiles
1.ans
1.in
```
### Providing input as process params
run `node index.js [input string]`
### Providing input from terminal
run `node index.js i` for interactive mode. Empty line terminates input.
### Submitting to kattis
run `npm start` to transpile code to Firefox 24 - SpiderMonkey version JavaScript-C24.2.0
## Kattis and JavaScript
https://open.kattis.com/help/javascriptspidermonkey