Time limit: 0.1s
Memory limit: 4MB
Input:
Output:
Task
You are given an integer , with at most digits. Implement the function duplicare, which gets as a parameter an integer and returns , the number obtained by writing each odd digit twice, or , if there was no such digit.
The proposed solution will only contain the definition of the required function. The occurence of other instructions can lead to errors which can lead to your solution obtaining a lower score.
Example
As an example, duplicare() = , but duplicare() = .