TopCoder Competition Arena 插件推荐 - KawigiEdit

As we all know that the score of the Topcoder algorithm competition is calculated by the time you used to complete a problem. Since you opened a problem, the score is decreasing.

KawigiEdit can generate the code framework(the package including, the class name, the method name) automatically and help ypu to focus on the algorithm part.

Installation:
1.Download the latest KawigiEdit jar(currently 2.1 a.k.a PivanofEdit 1.0) to your computer
2.Launch the Competition Arena and log in to your account
3.Choose "Options" - "Editor" - "Add"
4.For "Name", enter "KawigiEdit" (or whatever you want it to be called, it doesn't really matter)
5.For "EntryPoint", enter "kawigi.KawigiEdit" (this one DOES matter).
6.For "ClassPath", hit "Browse" and find the KawigiEdit jar. You should not have a previous version of KawigiEdit in the global classpath (in the text field on the top of the Editor Preferences Dialog). And click OK.
7.Check the "Default" box next to the new entry in the table. And then click "Save".

How To Use:

1.generating code:

When opened a probelem (here we use TCHS SRM 3 DIV 1 as a example, I choose java as my programming language). Let's see the definition from the problem statement:

Class: KidsWordGame
Method: getCheater
Parameters: String[], String[], String[]
Returns: int
Method signature: int getCheater(String[] first, String[] second, String[] third)

And then, see what KawigiEdit does for us. Click "Generate Code", it will generate the code framework according to the problem statement for you as fellow:(it can be modified in the "Configration", but default codes can work perfectly for most people)

import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;

public class KidsWordGame
{
    public int getCheater( String [] first , String [] second , String [] third)
    {
       
    }
   
<%: testing - code %>
}

Isn't that amazing? What you need to do is just finishing the method.

2.Test code locally:

When finished the code, click "Run Tests" to test you code using the cases which are provided in the problem statement. It will goes to the output tab and displays the result of your code for each cases. When all cases match the expected result, it will displays "You're a stud (at least on the example cases)!", and now you can submit your code to Topcoder.

There are a lot of more features and KawigiEdit is highly customizable.

Download - KawigiEdit 2.1

你可能感兴趣的:(随手记)