简单字符串。
1 #include2 3 #define MAXLEN 160 4 5 char buf[MAXLEN]; 6 int keys[4], parts[4]; 7 8 void getpart(int x) { 9 int i;10 for (i=3; i>=0; --i) {11 parts[i] = x%100;12 x /= 100;13 }14 }15 16 int main() {17 int case_n, n, max, mm;18 int i, j, k, flag, tmp, len;19 20 scanf("%d", &case_n);21 while (case_n--) {22 scanf("%d", &n);23 max = 0;24 for (i=0; i<4; ++i) {25 scanf("%d",&keys[i]);26 if (max < keys[i]) {27 max = keys[i];28 mm = i;29 }30 }31 len = 0;32 for (i=0; i