Do you get bored doing the tasks listed below while solving problems continuously at Online Judges? I do :-|.
- Copy code from IDE/Editor
- Load the summit page of OJ
- Paste your code to text area
- Select language
- Write problem no/ID
- Click submit button
- Check verdict
Here is a solution for UVa Online Judge.
To get rid of these problems, early of this year, I had written a
Bash script for submitting solutions at UVa OJ and check verdict directly from my editor,
VIM. It was working fine. Later, I had converted the script into
C++ and submitted it as my university semester project, I did not want to spend time behind the semester project :p.
uva-tool has these features now:
- Login and Logout at UVa OJ
- Submit Problem
As it works via command line, it can be easily integrate with any other IDEs or Editors. From the very beginning, I have been using it with
VIM. I find out a way to integrate it with
Geany, funny way actually, I have no plan to write a
Currently, it works only on Linux, I’m thinking of bringing Windows version soon.
And one thing, doing this sort of work in C++ is a foolish idea, but I had to earn some credit from my project without any effort (:p) and wanted to kill two birds with one stone. There are three more such tools, two of them written in python and one in node.js. So what? The satisfaction of submitting problem with your own written program is really cool.
Git-hub Link: https://github.com/arafat-hasan/uva-tool