Tring Tring !!!
All submissions for this problem are available.
Converting names to phone numbers
INPUT IS ONLY IN UPPERCASE LETTERS!
The name given as text input is converted to a text string in the following way:
the ASCII notation of the uppercase letters are concatenated to form a long number.
The long number is then split into 10-digit segments and they all are added.
This sum mod 10^10 is the resultant phone number.
Names with 3 letters as well as names with 23 letters can be expected. Code accordingly.
First line will have number of names (n)
Following n lines will contain one name each
n lines containing the phone numbers corresponding to each input name
Input: 2 adisankara ayyappa Output: 4444396630 6253505038
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.5, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, SCM chicken, CLOJ, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.