#include<stdio.h>
#include<stdlib.h>
int main()
{
int i,j;
unsigned seed;
int a[101];
printf("please input seed");
scanf("%d",&seed);
srand(seed);
for(i = 0; i < 100; i++)
a[i] = rand() % 10 +1;
for(i = 0; i < 1215 ; i++)
for(j = i+1; j < 1215; j++)
{
if(a[i]>a[j])
{
int temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
for(i = 0;i < 1215; i++)
printf("%d\t",a[i]);
printf("\n");
return 0;
}
追çé纳谢谢äº
追é®ä¸ºä»ä¹ä¸è¿è¡ï¼æ示è¦å
³éç¨åº