When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

arafat_hasan's blog

By arafat_hasan, history, 6 years ago, In English

Hello, Codeforces!

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
  • uHunting

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 Geany plug-in.

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

Thank you!

  • Vote: I like it
  • +13
  • Vote: I do not like it

| Write comment?
»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Nice Work