标签:mes -- cout return ace name cin pac include
1 #include <iostream> 2 using namespace std; 3 4 int main() { 5 int num[10] = { 0 }; 6 for (int i = 0; i < 10; i++) 7 cin >> num[i]; 8 for (int i = 1; i < 10; i++) { 9 if (num[i] != 0) { 10 cout << i; 11 num[i]--; 12 break; 13 } 14 } 15 for (int i = 0; i < 10; i++) { 16 if (num[i] != 0) { 17 for (int j = 0; j < num[i]; j++) { 18 cout << i; 19 } 20 } 21 } 22 cout << endl; 23 24 return 0; 25 }
标签:mes -- cout return ace name cin pac include
原文地址:https://www.cnblogs.com/moujun1001/p/9356331.html