批量造数据
#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;
}