zoukankan      html  css  js  c++  java
  • 对拍呐

    对拍

    (这个主要是存一下对拍程序)今天用了对拍调,真香。

    #include<cstdio>
    #include<cstdlib>
    #include<ctime>
    int main()
    {   long s,t;
        while(1){
            system("cls");
            do{
                system("data.exe > try.in"); //data是数据生成程序
                s=clock();
                system("a.exe < try.in > try1.out");  //a是要交的程序
                t=clock();
                system("b.exe < try.in > try2.out");  //b是正确的程序
                if(system("fc try1.out try2.out > nul"))
                    break;
                else printf("AC time: %ldms
    ",t-s);
            }while(1);
            printf("WA time: %ldms
    ",t-s);  //运行时间 
            system("fc try1.out try2.out");
            system("pause>nul");
        }
        return 0;
    }
    

    来源于互联网,好像要把所有的东西放在一个文件夹中呢。

  • 相关阅读:
    2.25
    2.24
    2.22
    influxdb 配置
    mongodb 数据备份
    influxDb数据备份
    Linux 及 git 指令集合
    git 项目 保存至gitee中
    TypeScripte 资料
    SecureCrt 的配色方案
  • 原文地址:https://www.cnblogs.com/clockwhite/p/12222525.html
Copyright © 2011-2022 走看看