sdut oj 3730 字符串分割#include <stdio.h>
#include <string.h>


int main()
{
    char str[1005], y;
    int i, x;
    while(~scanf("%s %c",str,&y))
    {
        x = strlen(str);
        for(i = 0; i <= x - 1; i++)
        {
            if(str[i] == y)
                printf("\n");
            else
                printf("%c", str[i]);
        }
        printf("\n");
    }
    return 0;
}

相关文章:

  • 2021-11-01
  • 2021-06-13
  • 2022-12-23
  • 2021-11-22
  • 2022-01-12
猜你喜欢
  • 2022-02-17
  • 2021-10-24
  • 2022-01-13
  • 2021-12-10
  • 2022-02-11
相关资源
相似解决方案