View Code of Problem 445

#include<iostream>
using namespace std;
int main()
{
	int t;
	cin >> t;
	while(t --)
	{
		string s;
		cin >> s;
		for(auto s1 : s)
		{
			if(!(s1 >= '0' && s1 <= '9')) cout << s1;
		}
		cout << endl;
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 445