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!

Help me with the algorithm
Posted by nushrat 19 Nov 2016 07:11
Hi,

I need desperate help with building the algo. It seemed easy at first, but I am getting all confused.  Can anyone explain the step for calculation ?

Suppose the input is 4 digits, so that means I have to fill up 4 spaces with 9 digits(0-9) for each space and from the combinations, find the one that has equal sum for first 2 and last 2 digits.

If someone can help me with the steps, I think I can figure out the rest.

Thanks in advance.