Hi everyone,
I have developed a tool called nodeforces
that parses problem i/o from codeforces and automatically creates a codefile for you (with your favorite template) (eg: nodeforces init 765A.java
).
Then, you can simply run your code and verify that it passes the basic test cases (eg: nodeforces test 765A.java
)
You can get it as an npm package (nodejs)
npm install -g nodeforces
If you do not know about node.js or npm you can easily setup by going to https://nodejs.org
A detailed description and the source code of the module is available on Github
Currently, it supports javac
and g++
and I am planning to add more. Try it out and let me know your thoughts!
Can it handle compilation errors, timeouts, runtime errors? and display them? I mean, in case of runtime errors, can it display the error stack?
Yes, it does, all the errors are written to the console. Need to work on timeouts.
For timeouts and memory errors(MLE's), there is a perl script which can handle both.