View Code of Problem 445

#include<iostream>
using namespace std;

int main()
{
	int t;
	cin >> t;
	while(t --)
	{
		string s;
		cin >> s;
		for(auto x : s)
		{
			if(x >= '0' && x <= '9') continue;
			else cout << x;
		}
		if(t > 0) cout << endl;
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 445