#include #include #include int main(void) { int box_width,num_block; int block_width[11000]={}; int blockcnt=0; scanf("%d",&box_width); scanf("%d",&num_block); for(int i=0;iblock_width[j]) { int numtmp=block_width[i]; block_width[i]=block_width[j]; block_width[j]=numtmp; } } } for(int i=0;i