- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
int main() {
srand(time(NULL));
for (int k=1;k<=75;k++) {
char file_name[] = "input ";
if (k<10) {file_name[5]='0'; file_name[6]=(k+'0'); } else
{
file_name[5]=(k/10+'0'); file_name[6]=(k%10+'0');
}
file_name[7]='.'; file_name[8]='t'; file_name[9]='x'; file_name[10]='t';
freopen(file_name,"wt",stdout);
n=rand()%500+1;
m=rand()%500+1;
cout << n << " " << m << endl;
for (i=0;i<n;i++) {
for (j=0;j<m;j++)
cout << rand()%10000000+1 << " ";
cout << endl;
}
}
return 0;
}