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

×

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

0
1

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


here is question link...click 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

5★rcsldav2017
1.1k1229
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 :)

link

answered 15 Aug '15, 23:23

admin123's gravatar image

5★admin123
1.2k12
accept rate: 28%

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

It will surely work. :)

link

answered 22 Aug '15, 17:18

bradley's gravatar image

3★bradley
6562321
accept rate: 20%

@bradely

it also does not work see here .... https://www.codechef.com/viewsolution/7888127

(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

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:

×15,683
×1,404
×1,070
×371
×136
×18
×6

question asked: 15 Aug '15, 15:33

question was seen: 933 times

last updated: 23 Aug '15, 03:10