1504 - Even Digit Product (Easy)

Discussion around the problems of the COJ.
Forum rules
Remember that posting AC code is not allowed here. If you are going to ask a question or to post a solution, describe your algorithm instead. Posting AC code will be penalized.
Post Reply
User avatar
dovier
Posts: 1143
Joined: 8 years ago
Location: Havana, Cuba
Gender: Male
Cuba

1504 - Even Digit Product (Easy)

Post by dovier » 8 years ago




aslf010990
Posts: 3
Joined: 8 years ago
Gender: None specified

Re: 1504 - Even Digit Product (Easy)

Post by aslf010990 » 8 years ago

there is a formula to solve this problem what happens is that I did was capture a string and then pass it to an array of integers and multiply each element, but it gives me time limit exceeded in test 1 greetings

User avatar
ymondelo20
Posts: 1968
Joined: 8 years ago
Location: Universidad de las Ciencias Informáticas
Gender: None specified
Contact:

Re: 1504 - Even Digit Product (Easy)

Post by ymondelo20 » 8 years ago

Solution too slow :) and naive...
You should come up with something better, even if this is the easy version of the problem.
"Every problem has a simple, fast and wrong solution" OJ's Main Law. ;)

Post Reply

Return to “Problem set”