Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char str[10000000][140];
- char str2[10000000];
- int main()
- {
- char ch, dum;
- int t, i, j, k, l, a, b, c, d, x, y, z, m, n, p, len, i1, ss, tt;
- for (ss = 1; ;ss++)
- {
- i1 = 0;
- for (tt = 1; ;tt++)
- {
- gets(str2);
- if (feof(stdin))
- break;
- if (str2[0] == '\0' && tt != 1)
- break;
- len = strlen(str2);
- strcpy(str[i1], str2);
- str[i1][len] = '\0';
- i1++;
- }
- if (feof(stdin))
- break;
- for (i = 0; i < i1; i++)
- {
- z = 0;
- for (j = 0; str[i][j] != '\0';)
- {
- z = 0;
- if (str[i][j] >= 48 && str[i][j] <= 57)
- {
- z = 0;
- for (k = j; ;k++)
- {
- if (str[i][k] == '\0')
- break;
- if (str[i][k] < 48 || str[i][k] > 57)
- break;
- x = str[i][k] - 48;
- z = z + x;
- }
- for (p = 1; p <= z; p++)
- {
- if (str[i][k] == '\0')
- break;
- if (str[i][k] == 'b')
- {
- printf(" ");
- }
- else
- {
- printf("%c", str[i][k]);
- }
- }
- j = k;
- }
- else
- {
- if (str[i][j] == '!')
- {
- printf("\n");
- }
- j++;
- }
- }
- printf("\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement