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

×

Help for SEACO

hi , i am not able to find out whats wrong in my solution for the problem "Sereja and Commands"(https://www.codechef.com/problems/SEACO ) . I am implementing a fenwick tree approach , in which i am applying all the commands of type "1" in my array a all commands of type "2"are pushed in a vector, then i am traversing the vector from back and implementing all the commands of type "2" on another BIT one by one .The second BIT is used for storing the count of all the commands with particular index , then finally implementing all the commands of type "1" on my array a . map 'c' and 'd'are used for the storing the type and range of the a particular command respectively. I checked in the editorial discusions that my approach is correct but not able to find the error in my code. my submission link (https://www.codechef.com/viewsolution/22518842 )

asked 17 Jan, 19:50

mrinal_29's gravatar image

4★mrinal_29
01
accept rate: 0%

edited 17 Jan, 19:54

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:

×171

question asked: 17 Jan, 19:50

question was seen: 39 times

last updated: 17 Jan, 19:54