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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值