`
digiter
  • 浏览: 118396 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

[转载]TopCoder插件

    博客分类:
  • ICPC
 
阅读更多
转载自:http://acm.cugb.edu.cn/blog/?p=253


首先我们到http://www.topcoder.com/tc?module=Static&d1=applet&d2=plugins(FTP上有)下载几个插件,主要是这三个:
Plugin Name: TZTester
Plugin Name: CodeProcessor
Plugin Name: FileEdit
下载后如果他们的后缀名变成了*.zip,记得把他们改回.jar的。

然后登陆Arena,选择”option”->”editor”,然后“Add”,Name那里可以自己起一个,例如“MyEditor”, EntryPoint选择codeprocessor.EntryPoint,记得是大小写敏感的。然后在class path那里填入你插件的绝对路径,然后OK就好了。

好了之后,把添加的插件选上“default”,然后选中它,按config。Enter EntryPoint那里填fileedit.EntryPoint,processor class填tangentz.TZTester,然后按一下Verify,如果都found到,那就一切正常。

然后按configure,勾上“Write the problem description using HTML”,把File Extension那里改成html,这样题目描述就会被生成一个html文件,方便看题。把Backup existing file when overwrite 的勾去掉吧,没什么用。
在“Enter directory read/write problems to:”这里填上你放程序文件的绝对路径
然后按一下code template,把language改成c++,把一下模版贴上去:


$BEGINCUT$
$PROBLEMDESC$
$ENDCUT$
#line $NEXTLINENUMBER$ "$FILENAME$"
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <string>
#include <sstream>
#define OUT(x) cout << #x << ": " << (x) << endl
#define SZ(x) ((int)x.size())
#define FOR(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long LL;

class $CLASSNAME$
{
public:
	$RC$ $METHODNAME$($METHODPARMS$)
	{
		return $RC$();
	}
	$TESTCODE$
};
// BEGIN CUT HERE
int main()
{
	$CLASSNAME$ ___test;
	___test.run_test(-1);
	system("pause");
	return 0;
}
// END CUT HERE


然后一起保存,就OK了。关闭Arena,再打开,现在打开一道题目看看,是不是很方便^_^
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics