批量造数据

#include<bits/stdc++.h>
using namespace std;
int main(){
	char c[1000005];
	srand(time(0));
	for(int i=1;i<=19;i++){
		sprintf(c,"%d.in",i);
		freopen(c,"w",stdout);
		……………………
		fclose(stdin);
		sprintf(c,"%d.out",i);
		freopen(c,"w",stdout);
		……………………
		fclose(stdin);
	}
	return 0;
}
posted @ 2023-10-03 16:49  hn小曜仔  阅读(19)  评论(0编辑  收藏  举报