1 solutions

  • 0
    @ 2025-11-5 19:08:40

    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

    Information

    ID
    19196
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By