搜索
查看: 277|回复: 2
打印 上一主题 下一主题

鬼快排

[复制链接]
楼主
发表于 2018-3-17 12:27:45 | 显示全部楼层
#include <stdio.h>
#include <stdlib.h>
int main()
{
         int d[11];
     int a;
     int b;
     int c;
     for(a=0;a<=10;a++)
     {
         d[a]=0;
     }
     for(a=1;a<=5;a++)
     {
         scanf("%d",&b);
         d[]++;
     }
     for(a=0;a<=10;a++)
     {
                 for(c=0;c<=d[a];c++)
         {
              printf("%d",a);
         }
     }
            system("pause");
         return 0;
}
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

广播台
特别关注
快速回复 返回顶部 返回列表