helioRocha's blog

By helioRocha, 10 years ago, In English

Greetings. I need some help, please. Code runs ok inside the custom test as well as offline in my pc. However, here is the Judgement Protocol:

Test: #1, time: 92 ms., memory: 20 KB, exit code: 1, checker exit code: 0, verdict: RUNTIME_ERROR

The proposal was coded in python 2.7 as follows:

z = input().lower()
a = range(len(z))
b = [z[i] for i in a]
c = range(len(b))
d = 'aeiouy'
e = [b[j].replace(b[j],"."+b[j]) for j in c if b[j] not in d]
print ''.join(e)

Thanks!

7555759 118A - Упражнение на строки

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it