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


[closed] SPREAD : APRIL 11 Long contest....I got WA??


I am getting WA...I have coded my solution as given in editorial still didn't get AC

here is question for question

here is my solution........My solution

here is Editorial link...Editorial

I have solved this question at spoj here my solution..which actually based on same concept BIT range update and point query .... why this solution for this problemgive at WA at codechef..

Happy Coding

asked 15 Aug '15, 15:33

rcsldav2017's gravatar image

accept rate: 6%

closed 23 Aug '15, 03:10

The question has been closed for the following reason "The question is answered, right answer was accepted" by rcsldav2017 23 Aug '15, 03:10

Hi rcsldav2017,

both question are almost same but there constraints are different codechef has larger value of all variables than in spoj so you cant go with int use $long$ $long$ no other problem seems because solutions are same :)


answered 15 Aug '15, 23:23

admin123's gravatar image

accept rate: 28%

Yes Brother, you have to use larger valued integer datatypes, so you can use long long int.

It will surely work. :)


answered 22 Aug '15, 17:18

bradley's gravatar image

accept rate: 20%


it also does not work see here ....

(22 Aug '15, 18:35) rcsldav20175★

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 15 Aug '15, 15:33

question was seen: 933 times

last updated: 23 Aug '15, 03:10