UVa 10921

From Algorithmist
Jump to navigation Jump to search

10921 - Find the Telephone[edit]

Summary[edit]

Very simple problem. Read in a bunch of phone numbers, consisting only of capital letters, hyphens, and the numbers 1 and 0. Convert every letter you find into its numeric equivalent given in the table, and leave all other characters alone.

Explanation[edit]

No, really. It's that simple.

Solutions[edit]

Input[edit]

1-HOME-SWEET-HOME
MY-MISERABLE-JOB
---------10100---

Output[edit]

1-4663-79338-4663
69-647372253-562
---------10100---