【轉】topcoder插件配置(傻瓜教程-圖文版)


地址:http://whucc2009luochen.blog.163.com/blog/static/1305715602010827102342860/

 

 

1、插件下載地址http://www.topcoder.com/tc?module=Static&d1=applet&d2=plugins

一般用下面三個插件:CodeProcessor(2.0),FileEditor ,TZTester 。

2、配置前:先將個人設置填寫好,主要是默認語言:

topcoder插件配置(傻瓜教程-圖文版) - 羅宸 - 羅宸 的博客
 
topcoder插件配置(傻瓜教程-圖文版) - 羅宸 - 羅宸 的博客
 
3、添加插件:
topcoder插件配置(傻瓜教程-圖文版) - 羅宸 - 羅宸 的博客
 
topcoder插件配置(傻瓜教程-圖文版) - 羅宸 - 羅宸 的博客
 
4、接下來就是配置插件了,我這里用的是CodeProcessor的2.0版本(1.2版本和2.0略有不同)。
topcoder插件配置(傻瓜教程-圖文版) - 羅宸 - 羅宸 的博客
 
  5、完成4后,可以點verify測試一下,如果都為found表示正常,接下來點上圖右上角的“Configure”,
開始配置編輯器:
(1)將文件寫到該位置,你可以填入自己的路徑。
(2)選吧,就不解釋了。
(3)將題目寫到一個獨立的html文件中,方便看題。
topcoder插件配置(傻瓜教程-圖文版) - 羅宸 - 羅宸 的博客
下一步:貼上模板,就是每次打開題目的時候生成的cpp文件就是根據這個模板而來。
topcoder插件配置(傻瓜教程-圖文版) - 羅宸 - 羅宸 的博客
 
完成這些之后,你就可以上practice房間開個題目試試了,插件的主要作用就是幫助你生成一個
包含題目所規定class定義及成員函數定義的類,以及用於測試的main函數。交題目前先點compile,
再submit。但是這個插件想在 本地測自己的數據就比較麻煩了,反倒不如直接在原來的題目窗口測,
所以如果有朋友知道什么 插件可以的,希望也可以給大家分享一下哈。
 
 
 
以下附上自己用的模板,為了方便復制粘貼,就不上圖了:
 
$BEGINCUT$
$PROBLEMDESC$
#include <conio.h>
#include <sstream>
/*
*/
 #define debuging
#ifdef debuging
#define FIN  {freopen("new.in" , "r" , stdin) ;}
#define FOUT {freopen("new.out" , "w" , stdout) ;}
#define OUT(x)  {cout<< #x << "  : " << x <<endl ;}
#define ERR(x)  {cout<<"#error: "<< x ; while(1) ;}
#endif
$ENDCUT$
#ifndef debuging
#define FIN  ;
#define FOUT ;
#define OUT(x)  ;
#define ERR(x)  ;
#endif
#include <cstdio>
#include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <vector>
using namespace std ;
#define For(i , n) for(int i = 0 ; i < (n) ; ++i)
#define SZ(x)  (int)((x).size())
typedef long long lint ;
const int maxint = -1u>>2 ;
const double eps = 1e-6 ;
 

class $CLASSNAME$
{
 public:
 $RC$ $METHODNAME$($METHODPARMS$)
 {
  
  
  return $RC$() ;
 }
 
 $TESTCODE$
};
$BEGINCUT$
int main(){
 $CLASSNAME$ ___test;
 ___test.run_test(-1);
 getch() ;
 return 0;
}
$ENDCUT$
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM