Egor's blog

By Egor, 13 years ago, translation, In English

Changes:

Defect Codeforces generation: should unescape HTML
Defect TopCoderTester: should accept arrays without curle bracers
Enhancement Add ability to select tests on which task would be tested
Enhancement Allow using custom output class instead of PrintWriter
Enhancement Tester: Should return WA if actual is not exhausted in checker

New property added to configuration - outputClass. It is java.io.PrintWriter by default. Ouput class shoud has constructor, that take OuputStream and one that take Writer as parameter and also method close. You can leave your old configuration as all properties that are absent in configuration file are set to default values

Method next of input class shoud throw exception if file is exhausted (Scanner do this)

Download links: plugin, configuration

Full text and comments »

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

By Egor, 13 years ago, translation, In English

Some screenshots:



Current version is 2.33

Let's try again. I had rewrote from scratch plug-in for IntelliJ Idea (that have free community edition, btw) which is designed to do the following:

1. Tests on all entered tests with one click

2. Inlines files from your library to your source code (inlucding removing of unused code)

3. Generates unit tests for your library based on entered tests.

First version seemed to be not very popular due to complexity of set up - special project, need of click "Run Task" each time before submit, etc.

In new version all this was fixed and, as a bonus, you can now create tasks for whole Codeforces contest (including sample tests already entered for you) by entering contest id.

Manual

That's all. Thank you for your time. Should you encounter any problem/bug using this plug-in please post comments to this entry insteam of sending me PM - that should help other people with same issues

Full text and comments »

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

By Egor, 13 years ago, translation, In English

Google CodeJam World Final will be conducted on July 29th at 9:00 AM Tokyo time

Full text and comments »

Tags gcj
  • Vote: I like it
  • +17
  • Vote: I do not like it

By Egor, 13 years ago, translation, In English

Good afternoon.

TopCoder Open Online Round #4 will be conducted today at 12:00 ET. Top 60 participants will advance to the fifth round. Good luck!

Full text and comments »

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

By Egor, 13 years ago, translation, In English

TopCoder SRM 511 will be conducted today at 17:00 GMT

Full text and comments »

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

By Egor, 13 years ago, translation, In English

Good afternoon.

TopCoder Open Online Round #2 will be conducted today at 12:00 ET. Top 350 participants will advance to the third round. Good luck!

Full text and comments »

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

By Egor, 14 years ago, translation, In English

Good afternoon.

TopCoder Open Online Round #1 will be conducted today at 12:00 ET. Top 850 participants will advance to the second round. Good luck!

Full text and comments »

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

By Egor, 14 years ago, translation, In English
Here is an early alpha version of Contest helper plug-in for Intelli Idea

What this plug-in does:
  • Inline classes from your library into single file
  • Eliminates unused code from it
  • Stores tests and then you can test your solution on all of them with one click

Known bugs:
  • Sometimes "Delete task" do not delete .task file. You can do taht manually
  • Do not removes unused methods that are cyclically called
  • Never removes method that implements interface/overriding super method if class is retained and super class is retained
  • Never removes main method no matter what signature it has
  • Do not supports static imports
Use it at your own risk
Plug-in is supplied with project that has structure needed for this plug-in. It also contains 3 sample tasks - 2 plain and 1 TopCoder style
How to use:
  1. Add plug-in buttons on main toolbar (Customize Menus and Toolbars -> Main Toolbar -> Add after... -> Plug-ins -> Contest helper)
  2. Press "New Task".
  3. New class will be created where you must implement solve interface. Arguments for this interface are test case index (1 based), InputReader and PrintWriter. You may extend capabilities of InputReader by editing corresponding class in utils module
  4. "Edit test" allows you to add and edit tests for current task
  5. When you want to run or debug code on your tests push "Run Task" button. After it finish it work you may run one of predifined configurations (Run - for running created file from module test and Debug - for debugging in module main/lib. Same with Tester runs/debugs on tests you enetered)
  6. You need to do "Run Task" every time you entered new test/before submitting to server (it is advised to do it after each change to avoid forgetting doing it before submitting)
  7. You need to submit file "Main.java" from module test to server
For TopCoder you need to have some plug-in that creares code locally (e. g. moj) and set target dirrectory for FileEditor to root of module topcoder. Remember to push "Run task: before compiling in arena
Your library classes must be in module library in non-default package.

Links for download:

Source code is here. It is pretty dirty

Any feedback appretiated

Update: installation - put plug-in file to dirrectory %user dir%\.IntelliJIdea10\config\plugins  and restart Idea

Update 2: Next version released. If you allready downloaded prohect you only need to copy files main/Tester.java, test/Tester.java и utils/main/net/egork/utils/checker/Checker.java
Changes:
Button Restore Task restroes choosen task from package unsorted
Task file is synchronised with disk before Run Task
You can add tests from code using generateTests method of checker
You can test only on subset of tests - pass their number as command line arguments

Update 3: Small uncritical fix released. You only need to update plug-in, no changes to project

Full text and comments »

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