对拍核心代码

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

int main(){
	int t_case=100;
	while(t_case--){
		system("./gen");
		system("./sol");
		system("./bf");
		if(system("diff sol.out bf.out")){
			cout << "WA" << "\n";
			system("cat in.in");
			//system("cat sol.out");
			//system("bf.out");
			return 0;
		}
		cout << "AC" << "\n";
	}
  return 0;
}
posted @ 2022-10-03 14:50  Aehnuwx  阅读(5)  评论(0编辑  收藏  举报