关于本题第一篇题解
查看原帖
关于本题第一篇题解
320087
N_z_楼主2022/9/23 14:55

本题第一篇题解的随机,经过测试,在以下的gen.cppM=100测试中会出现2组错误。

#include<bits/stdc++.h>
using namespace std;
int main()
{
	freopen("xx","w",stdout);
	int m=100;
	cout<<m<<endl;
	for(int x=1;x<=m;x++)
	{
		int n=10000,k=100;
		cout<<n<<' '<<k<<endl;
		vector<int>a(n+1);
		for(int x=1,y=1;x<=10000;x*=3,y+=2)
		a[y]=a[y+1]=x;
		for(int x=1;x<=n;x++)
		cout<<a[x]<<' ';
		cout<<endl;
	}
}
2022/9/23 14:55
加载中...