Sunday, August 25, 2013

Kamil

KAMIL
Some kids cannot pronounce all letters, some of them they sometimes pronounce correctly and sometimes incorrectly. Kamil sometimes says T instead of K, but he never says K instead of T. Similarly he sometimes says D instead of G. Instead of R he sometimes says L and sometimes F. Of course it happens that he pronounces the letter correctly. Kamil's father always thinks how many words can mean the word spoken by his son (it doesn't matter if they are real English words).


code


for i in range(10):
    t=raw_input();
    print 2**sum(t.count(i)for i in'DFLT')


 

No comments:

Post a Comment