Remove characters from alphanumeric string
Submissions: 2812   Accuracy:

40.43%

  Difficulty: School   Marks: 0
*School Problem's Submission isn't counted in score!
     

Remove all characters from an alphanumeric string.

Input:
The first line of the input contains T denoting the number of testcases. First line of each test case will be an alphanumeric string.

Output:
 For each test case output will be a numeric string after removing all the characters.

Constraints:
1 <= T <= 30
1 <= size of string <= 100

Example:

Input:
1
AA123BB4

Output:
1234

** For More Input/Output Examples Use 'Expected Output' option **

Author: Yash Goel


Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.

to report an issue on this page.