×

# [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 1.1k●12●29 accept rate: 6%

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

 1 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 5★admin123 1.2k●12 accept rate: 28%
 1 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 3★bradley 656●2●3●21 accept rate: 20% @bradely it also does not work see here .... https://www.codechef.com/viewsolution/7888127 (22 Aug '15, 18:35)

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• 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