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 1044. Lucky Tickets. Easy!

I wan to know the key to this problem,who can tell me?
Posted by GaoHughes 6 Sep 2010 20:14
I know the meaning of this problem,but I just can't find a good way to solve it!!
So who can tell me ?
Thank you!
I use C++

Edited by author 06.09.2010 20:15
Re: I wan to know the key to this problem,who can tell me?
Posted by Vedernikoff Sergey (HSE: АОП) 7 Sep 2010 00:54
Brute force: you just look through all possible numbers and choose lucky ones
Re: I wan to know the key to this problem,who can tell me?
Posted by nbodea 10 Apr 2012 20:37
You can backtrack for 2, 4, 6, 8 and see what your program's answers are. Then you can simply put the answers.