Hi,
I am getting NZEC on this problem spoj.pl/problems/DIV15/ . I believe that there is some character in input that is not decimal, correct me if i am wrong. But i do not know how to handle that character. I tried but failed.
Also i would like to speed up input, but i am still new to python and i wolud be grateful to you if you told me how.
Here is my code :
Removed after AC.
Mistake was "impossibile" instead of "impossible" :))
Furthermore, if you think that my code(logic) is wrong, don't tell me.