跳到正文

学习·文化课

对拍笔记

shs0827约 1 分钟
原文
文章信息与版本

文章信息

发布
2026年8月29日
收录
2026年11月17日
更新
2026年11月21日
篇幅
约 1 分钟
获赞
1

版本

  1. v1当前
C++
#include <bits/stdc++.h>
using namespace std;
int main
{
	system("g++ ac.cpp -o ac.exe");
	system("g++ baoli.cpp -o baoli.exe");
	system("g++ rand.cpp -o rand.exe -std=c++11");
	int cnt=0;
	while(1)
	{
		cout<<"running on case "<<++cnt<<endl;
		system("rand.exe > input.txt");
		system("ac.exe < input.txt > ac.txt");
		system("baoli.exe < input.txt > baoli.txt");
		if(system("fc ac.txt baoli.txt")) break; 
	}
	system("pause");
	return 0;
  
}
原文