跳到正文

个人记录

dui拍

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

文章信息

发布
2025年10月26日
收录
2025年12月12日
更新
2026年11月21日
篇幅
约 1 分钟

版本

  1. v1当前
C++
拍
#include <bits/stdc++.h>
using namespace std;

int main ()
{
	while(1)
	{
		system("date.exe");
		system("baoli.exe");
		system("std.exe");
		if(system("fc baoli.out std.out"))
		{
			cout<<"WA";
			return 0;
		}
	}
	return 0;
}

生成
#include <bits/stdc++.h>
using namespace std;
int Rand(int x)
{
	return (1ll*rand()*rand()*rand())%x+1;
}
int main ()
{
	freopen("date.out","w",stdout);
	srand(time(0));
	int n=100;
	cout<<n<<'\n';
	for(int i=1;i<=n;i++)
	{
		cout<<Rand(11451)-1145<<' ';
	}
	return 0;
}
正解
freopen("date.in","r",stdin);
	freopen("std.out","w",stdout);
暴力
freopen("date.in","r",stdin);
	freopen("baoli.out","w",stdout);
原文