#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { int a[10]; for (int i = 0; i < 10; i++) { scanf("%d", &a[i]); } int i=1; for(i=1;i<10;i++){ if(a[i]!=0){ printf("%d",i); a[i]=a[i]-1; break; } } for(i=0;i<10;i++){ while(a[i]!=0){ printf("%d",i); a[i]=a[i]-1; } } return 0; }
标签:10,pat,1023,int,组个,include From: https://www.cnblogs.com/Npc-Hb/p/17176594.html