4 条题解

  • 0
    @ 2023-10-10 21:30:59
    #include <stdio.h>  
    #include<string.h>  
    int main()  
    {  
        int t,i,n;  
        char x[50];  
        scanf("%d",&t);  
        getchar(); //等待用户按键读取下一个字符 
        while (t--)  
        {  
            gets(x);  
            n=strlen(x);  
            for (i=n-1;i>=0;i--)  
            {  
                if (x[i]>='a'&&x[i]<='z')  
                {  
                    printf("%c",x[i]);  
                }  
            }  
            printf("\n");  
        }  
        return 0;  
    }
    

    信息

    ID
    192
    时间
    3000ms
    内存
    128MiB
    难度
    4
    标签
    (无)
    递交数
    486
    已通过
    210
    上传者