直接上代码吧.

#include<bits/stdc++.h>
using namespace std;

int main(){
    while(1){
        system("./cute_data");//生成数据程序
        system("./cute_ans");
        system("./cute");//暴力与正解程序
        if(system("diff cute.out cute_ans.out")){//检测到两个文件不同返回1
            printf("Fail\n");
            break;
        }
        else printf("Pass\n");
    }
    return 0;
}

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-10-20
猜你喜欢
  • 2021-09-03
  • 2022-12-23
  • 2021-09-05
  • 2021-11-14
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
相关资源
相似解决方案