4 条题解

  • 0
    @ 2024-12-26 20:26:38
    #include<stdio.h>
    #include<string.h>
    
    
    int main()
    {
    	int t,i;
    	scanf("%d",&t);
    	t++;
    	while(t--)
    	{
    		char s[40]={0};
    		gets(s);
    		int length = strlen(s);
    		for(i=length-1;i>=0;i--)
    		{
    			if(s[i]>='a'&&s[i]<='z')
    			{
    				printf("%c",s[i]);
    			}
    		}
    		printf("\n");
    	}
    }
    
    

    信息

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