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

×

Getting WA for ADDMUL JULY15

asked 14 Jul '15, 20:27

akshayjnambiar's gravatar image

3★akshayjnambiar
152
accept rate: 0%

edited 15 Jul '15, 12:17

admin's gravatar image

0★admin ♦♦
19.0k348495531


You are pushing down contents of add,mul and mod array down by using pushDown function due to use of if else only one of the three will be pushed down either value add[k] or mul[k] or mod[k] instead you must push entire three values firstly mod[k] value after that mul[k] value and then add[k] value.

link

answered 14 Jul '15, 21:59

shubhparekh's gravatar image

4★shubhparekh
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:

×148
×37
×2

question asked: 14 Jul '15, 20:27

question was seen: 787 times

last updated: 15 Jul '15, 12:17