Ljesnjak
의견: 0
Not so long ago, before operating systems were as powerful as they are today, computers (which often
had turbo buttons on the exterior) couldn't handle certain letters of the Croatian alphabet.
Programmers agreed to use two or thr\(ee-le\)tter substitutions as in this table:
Letter
Characters
č
c=
ć
c-
dž
dz=
ñ
d-
lj
lj
nj
nj
š
s=
ž
z=
For example, the word lj\(es=nj\)ak consists of six letters in the Croatian alphabet: lj, e, š, nj, a, k.
Write a program that calculates the number of letters in the given word.
The first line contains a string of at most \(100\) characters. Only lowercase letters of the English alphabet and characters – and = will appear.
The string will represent a word encoded as described above.
Output the number of letters in the input word.
| 서브태스크 | 점수 | 설명 |
|---|---|---|
Subtask 1 | 30점 |
dz=ak3ljes=njak6평가 및 의견
Ljesnjak
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Ljesnjak