• 【转】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$
     
  • 相关阅读:
    从一个线上服务器警告谈谈backlog
    聊聊服务器的负载
    Apache 配置说明
    Apache 服务器性能评估
    php之apc浅探
    Linux 服务器 监控命令
    小白学习mysql 之 innodb locks
    小白学习mysql之存储过程的优劣分析以及接入控制
    小白学习mysql之索引初步
    小白学习mysql之优化基础(EXPLAIN的连接类型)
  • 原文地址:https://www.cnblogs.com/kuangbin/p/3391466.html
Copyright © 2020-2023  润新知