All Tracks Algorithms String Algorithms Basics of String Manipulation Problem

Conversion
/
No tags
Problem
Editorial
Analytics

Given a string, convert it into its number form .

  • A or a -> 1
  • B or b -> 2
  • C or c -> 3
  • . . .
  • Z or z -> 26
  • space -> $

Input:

  • test cases, t
  • string , s

Output:

Desired O/p

Constraints: string length <=200

SAMPLE INPUT
2
AMbuj verma
Aaaa bBBB
SAMPLE OUTPUT
11322110$22518131
1111$2222
Time Limit: 1.0 sec(s) for each input file.
Memory Limit: 256 MB
Source Limit: 1024 KB

Best Submission

Similar Problems

Contributors

Initializing Code Editor...
Notifications
View All Notifications

?