#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int num[10],sum;
for(int i=0;i<10;i++){
num[i]=2021;
}
for(sum=1;;sum++){
int pp=sum;
while(pp){
int a=pp%10;
num[a]--;
pp=pp/10;
}
if(num[0]<=0||num[1]<=0||num[2]<=0||num[3]<=0||num[4]<=0||num[5]<=0||num[6]<=0||num[7]<=0||num[8]<=0||num[9]<=0){
break;
}
}
printf("%d\n",sum);
return 0;
}
【蓝桥杯】卡片改善
最新推荐文章于 2024-08-09 19:54:59 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)