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

×

Help please for matrix exponentiation based GROWGOLD

My code gives correct answers:

tax[7] = tax[3] * tax[4] * tax[5] * tax[6] = 3 * 4 * 8 * 16 = 1536

tax[8] = 4816*1536 = 786,432

tax[9] = 8 * 16 * 1536 * 786,432 = 18811834

tax[10] = 16 * 1536 * 786,432 * 18,811,834 = 84,208,956

tax[11] = 1536 * 786432 * 18811834 * 84208956 = 35889352

tax[12] = 786432 * 18811834 * 84208956 * 35889352 = 75453662

tax[13] = 18811834 * 84208956 * 35889352 * 75453662 = 44609468

But still I am getting Wrong Answer :(

(ideone link.)

asked 24 Mar '13, 12:54

monish001's gravatar image

2★monish001
66357
accept rate: 0%

edited 24 Mar '13, 13:01

Please help! :( i am here to learn.

(30 Mar '13, 23:30) monish0012★
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:

×166
×6

question asked: 24 Mar '13, 12:54

question was seen: 1,054 times

last updated: 30 Mar '13, 23:30