1 条题解

  • 0
    @ 2025-4-7 21:29:58

    C++ :

    #include<iostream>
    #include<string>
    #include<cctype>
    using namespace std;
    int main()
    {
    	string from,to;
    	getline(cin,from);
    	int len=from.size(),j=0;
    	for (int i=0; i<len; i++)
    		if (isalpha(from[i])) to+=from[i];
    	cout<<to<<endl;
    	return 0;
    }
    
    • 1

    信息

    ID
    1622
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者