Masala #0153
Anagramma
Sizga S satri beriladi, siz S satrining nechta anagrammasida ketma-ket bir xil harf qatnashmasligini aniqlang.
Eslatma: Anagramma – bu satrdagi harflarning o’rnini almashtirgan holda hosil qilingan so’zdir.
INPUT.TXT kirish faylining yagona satrida lotin alifbosining kichik harflaridan tashkil topgan S(1 ≤ |S| ≤ 10) satri kiritiladi.
OUTPUT.TXT chiqish faylida so’ralgan javobni chop eting.
# | input.txt | output.txt |
---|---|---|
1 |
abc |
6 |
2 |
tatu |
6 |
3 |
matematika |
47760 |