The input and output is as wanted, but why error?

rusi rustompmody at gmail.com
Tue Dec 3 12:19:58 EST 2013


On Tuesday, December 3, 2013 9:18:43 PM UTC+5:30, geez... at gmail.com wrote:
> I am trying to solve this problem:
>
> http://codeforces.com/problemset/problem/71/A
>
> The input and output is as wanted, but my answer keep rejected, here is my source code http://txt.do/1smv
>
> Please, I need help.

I suggest you take your problem one step at a time, like this:

1. You need to convert a string like "localization" to "l10n"
Write a function that takes strings like "localization" and RETURNS strings
like "l10n". The function SHOULD NOT use print.

2. Now you need to convert a list of strings like
["word", "localization", "internationalization",
"pneumonoultramicroscopicsilicovolcanoconiosis" ]
to a list like
["word", "l10n", "i18n", "p43s"]
You can use the above function (1). NO PRINTS

3. Use the function in 2 above to solve the problem.
Here you may use print



More information about the Python-list mailing list