Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

gautam94's blog

By gautam94, 12 years ago, In English

Problem: http://www.spoj.com/problems/PARTY/

Solution: http://ideone.com/XWCBcI

I am using the recurrence relation given here but as you can see it's not giving the correct output for the second case. Please help me find the error.

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?