#include <stdio.h> #include <math.h> const int mval = 500; int r[1001]; int coot[501]; int j=0; int i=0; int main(){ for(i; i<20; i++){ coot[r[i]]++; } for(i=0; i<mval; i++) while(coot[i]>0){ r[j] = i; coot[i]--; j++; } return 0; }
Standard input is empty
7, 406, 105, 487, 113, 52, 490, 57, 498, 388, 50, 439, 80, 421, 131, 253, 129, 309, 208, 28, 7, 28, 50, 52, 57, 80, 105, 113, 129, 131, 208, 253, 309, 388, 406, 421, 439, 487, 490, 498,