You are not logged in. Please login at www.codechef.com to post your questions!

×

MPROD-problem lunchtime

I was unable to solve this problem during the contest and after i was going through the submissions.so,i found this code which is coded by @dreamoon4 who is ranked 1 in this contest but i am unable to understand his code.Can anyone explain me what does he mean from the following statement .

REP(i,pn){ int tmp=max(sum[i]%2,ma[i]2-sum[i]); REP(j,tmp)an=(anpp[i])%MOD; }

http://www.codechef.com/viewsolution/3793782

asked 27 Apr '14, 15:49

kodoos's gravatar image

4★kodoos
11
accept rate: 0%


i checked his result it is absolutely true but how can one arrive at such result.

link

answered 27 Apr '14, 16:04

kodoos's gravatar image

4★kodoos
11
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×249

question asked: 27 Apr '14, 15:49

question was seen: 407 times

last updated: 27 Apr '14, 16:04