作者在 2020-03-11 22:56:52 发布以下内容
void 组个最小值()
{//缘由https://bbs.bccn.net/viewthread.php?tid=499717&page=1&extra=#pid2721379
int j = 0, a[10]{2, 2, 0, 0, 0, 3, 0, 0, 1, 0};
if (a[0])
{
while (++j)if (a[j])break;
cout << j << ends, a[j]--;
}
j = 0; while (j < 10)if (a[j])cout << j << ends, a[j]--; else ++j;
}