Mr.Adnan's blog

By Mr.Adnan, history, 7 years ago, In English

Here, Uva 13043- Marbles

How to solve it?

I had an idea. As example for for 3rd case =

ans is 900C20 * 880C20 * 860C20 * 840C20 * 820C20

As the k<=50 I can do it k times By reducing X from N every time. But my this code doesn't work correctly. Help me Someone plz.

http://codepad.org/LplfZ29V

  • Vote: I like it
  • -5
  • Vote: I do not like it

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Mr.Adnan (previous revision, new revision, compare).