ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1014. Product of Digits

WA #10 (1014 GCC 4.9)
Posted by kh1024 23 Jan 2015 05:45
(source removed after AC)

Edited by author 23.01.2015 06:01
Re: WA #10 (1014 GCC 4.9)
Posted by kh1024 23 Jan 2015 05:52
Resolved issue. Hints for those who look at this for reference.

While this may not be the most elegant solution, it works.

Make sure that:
- Large values work. Try to imagine how many digits your solution could be composed of...
- Values that may result in a legal (0-9) divisor at first, followed by a prime number...
- As stated before, 0 and 1. Remember it's the LEAST positive integer...

Edited by author 23.01.2015 06:00