Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

### Omar_Hafez's blog

By Omar_Hafez, 12 months ago,

بسم الله الرحمن الرحيم

Hello, I would like to introduce The Competitive Programming tool. It provides several useful features for competitive programming.

### Test your code for testCases:

You can test your code for several test cases at the same time and you can load the test cases supplied in the problem automatically just by pasting the link of the problem in the tool and let it load the test cases for you (This work for Codeforces, Atcoder)

This tool can also submit your solution automatically to your account from the tool itself and load the results of your submission (Accepted, Wrong answer, ..etc) (This work for codeforces.com and atcoder.jp)

This will take a copy of your solution and save it in a folder with a name depending on the link of the problem And this process happens automatically once your submission gets Accepted. This feature may be useful for some users

### Nice colorful output section:

Nice detailed output section that explains where exactly your error in the code and also gives you feedback about the time and memory taken by your code for each test case

### Works for C++, Python, and Java:

I will add to it in the future some other programming language.

Now you can Stress test your code using this new feature. Just click F8 to open it.

### How to use it:

You will need to put your code files in the CODE folder. (in the CODE folder you will find the C++ folder, Java folded, and Python folder to put your code in them) Then write the name of your file down right textBox (without the extension of the file i.e. A not A.cpp or A.java or A.py just A)

Then choose the language that you use from the upper right ComboBox.

to submit, save or load test cases, press F1 (Please make sure to take a look at the shortcuts.txt file that contains all the shortcuts in it)

For better experience: You can split the screen between this tool and the text editor you use like this:

### Installation:

There is no need to install anything just download this folder and double-click on the Competitive_Programming.jar file to open it! This program is written in Java so please make sure to have java installed on your machine. And also please make sure that you have the Chrome browser installed and updated.

_If you faced "An error occurred" while submitting your solution please check the version of your chrome browser and then go to this website and download the chrome driver of your chrome browser version (This is just about 7 MB only) then replace the file chromedriver in src folder (or chromedriver.exe for windows) with the new one_ (You may need to kill the process in the task manager named chromdriver.exe before you replace the files).

Please don't remove or rename any file or folder (except the code files in the CODE folder).

This Tool work for Linux(Ubuntu) and Windows

### Source code

If you faced any errors please let me know in the comments or in the PM. I spent a lot of time writing this program and debugging it so I expect that it will work without any errors with you.

Hope you find this useful. Thanks a lot for reading.

You will need to re-download the program for the latest update because It will not update automatically.

UPDATE: 2021/10/04 I updated the fonts with better fonts. Please make sure to install the fonts used from the folder "FONTS TO INSTALL" before starting the program.

UPDATE: 2021/10/11 Simple bugs fixed. The bug makes the program unable to load the results when submitting to atcoder for the first time for the contest. And the bug that makes it unable to submit a solution to codeforces once you change the programming language that you use.

UPDATE: 2021/12/25 Fixed some bugs.

• +108

 » 12 months ago, # |   +4 It looks fine, but how do we know we can trust it. like you won't steal people's accounts or something
•  » » 12 months ago, # ^ | ← Rev. 2 →   +24 Nice qusetion. I don't collect any data from this program and i dont know who used it and how. To make sure from this point you can decomplie the program (the jar file, you can use any java decomplier and there are alot of java decompilers online) and read its source code if you find my program collect any data you can simply take screen shot of that and tell the comunity here.
•  » » » 12 months ago, # ^ |   +3 why don't you just provide the source code yourself?
•  » » » » 12 months ago, # ^ | ← Rev. 2 →   +7 sohmm If I Collect some data from this, I will easily omit the code that does this from the source code that I will share! So decompiling the program is the convenient way to do this.
•  » » » » » 12 months ago, # ^ |   0 yeah fair enough, but I'd still suggest to open source it, since it can open up some collaboration and/or just a project for someone to study. Anyway will try your app :)
•  » » » » » » 12 months ago, # ^ |   0 I am not sure if I uploaded it correctly to GitHub or not because This is my first time sharing my java projects on Github Anyway this is the link of the project on Github
 » 12 months ago, # |   0 Seems a very good program, but to be brutally honest cpbooster is a similar project that is way better.
•  » » 12 months ago, # ^ | ← Rev. 3 →   +7 Every competitive programmer should know the benefit of competitions as a whole. It makes both parties showcase their best. It's just a matter of choice/preference. Are you against that?
•  » » » 11 months ago, # ^ |   0 ageeed
•  » » 12 months ago, # ^ | ← Rev. 2 →   +4 Majin_Boo What makes cpbooster is better? I think this program is faster and easier to use than anything I tried before. submission in cpbooster is quite slow and it doesn't have a nice GUI like this. If there is a tool that behaves better than this I will not spend all this time and effort to make this work! especially that I worked on this without any support or help from others. It is just one personal effort not a group of programmers like cpbooster
•  » » » 10 months ago, # ^ |   0 Sorry for writing that. I didn't know enough about CP tool at that time, and hadn't noticed the bugs of Cpbooster (even if it is a nice initiative). I apologize for what I wrote.
 » 12 months ago, # |   +3 Can anyone who downloaded this tell me did it work with him or found any errors? Thanks in advance.
•  » » 12 months ago, # ^ |   0 Yes actually on windows we generate a.exe file not a.out file also the window output size is way longer to fit inside the screen.
•  » » » 12 months ago, # ^ | ← Rev. 4 →   0 OiNishant Please send me the content of logs.txt file
 » 12 months ago, # | ← Rev. 3 →   0 UPDATE 2: Hello, I fixed the "Stupid bug" that makes the program not stop the last process(The code you run or test) before starting a new one or close the program. This bug happened because I forget to implement the function Stop_Process(). I am so sorry for that. I updated the links with the new one and also added a new shortcut to stop the code you testing and running in the background. (cntrl + B) How this may help you?In some cases when you run a code that goes in infinity for loop and never ends. you may want to stop this process manually. so this shortcut will do that for you. Anyway, when you run the new code it will stop the last "infinity code" or any code from running in the background.I hope you download the new updateThanks a for reading.