跳到正文

剪贴板

剪贴板 4z3vmc9j

原文
剪贴板信息

剪贴板信息

收录
更新
C++
//my datamaker
#include<bits/stdc++.h>
#define ll long long
using namespace std;
string file_name="";
ofstream outfile;
ifstream infile;
ll lim[11]={0,10,2000,2000,2000,2000,2000,2000,1000000,1000000,1000000};
ll random(int k)
{
	return (ll)rand()*rand()%k;
}
void make_data(int id)//生成一个测试点
{

	return ;
}
void make_in()
{
	for(int i=2;i<=2;++i)
	{
		string test;
		if(i<10) test.push_back(i+'0');
		if(i==10) test="10";
		outfile.open(file_name+test+".in");
		make_data(i);
		test.clear();
		outfile.close();
	}
	return ;
}
void work()//把标程放这
{

	return ;
}
void make_ans()
{
	for(int i=2;i<=2;++i)
	{
		string test;
		cout<<i<<endl;
		if(i<10) test.push_back(i+'0');
		else if(i==10) test="10";
		infile.open(file_name+test+".in");
		outfile.open(file_name+test+".ans");
		work();
		test.clear();
		infile.close();
		outfile.close();
	}
	return ;
}
int main()
{
	make_in();
	make_ans();
	return 0;
}