Posició a l'alfabet


Submit solution

Points: 10
Time limit: 5.0s
Memory limit: 256M

Author:
Problem types
Allowed languages
C#, Go, Java

Donat un text, indica la posició que ocupa cada lletra del text a l'alfabet. Els espais en blancs no es tenen en compte.

Input Format

Una única línea amb el text que s'ha de processar.

Constraints

\(-\)

Output Format

La posició de cada lletra en una línia diferent.

Sample Input 0

hola

Sample Output 0

7
14
11
0

Sample Input 1

mon

Sample Output 1

12
14
13

Sample Input 2

java

Sample Output 2

9
0
21
0

Sample Input 3

jived fox nymph grabs quick waltz

Sample Output 3

9
8
21
4
3
5
14
23
13
24
12
15
7
6
17
0
1
18
16
20
8
2
10
22
0
11
19
25

Autoria: Gerard Falcó


Authorship: Gerard Falcó

CC BY-NC-SA 4.0