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

×

IITI15 - Editorial

6
4

alt text alt text alt text alt text alt text

Author's Solution can be found here

asked 05 Feb '14, 15:33

iiti_adm's gravatar image

0★iiti_adm
86145
accept rate: 0%

edited 18 Apr '17, 22:09

admin's gravatar image

0★admin ♦♦
19.7k350498541

Any similar problems for practice?

(05 Feb '14, 23:20) karan1735★
1

@karan173 There are many problems which can be solved using the "trick" for offline queries as described in the editorial. Some of them are: Chef and Substrings : http://www.codechef.com/COOK41/problems/GERALD3 Tree and Queries : http://codeforces.com/contest/375/problem/D Jeff and Removing Periods : http://codeforces.com/contest/351/problem/D

(06 Feb '14, 21:13) iiti_adm0★

Thanks for replying and for the great editorial! Will look at the problems!

(08 Feb '14, 17:22) karan1735★

Thanks for the editorial, I have come across a similar question on hacker earth with stricter constraints :

https://www.hackerearth.com/practice/data-structures/advanced-data-structures/fenwick-binary-indexed-trees/practice-problems/algorithm/sherlock-and-inversions/description/

the author's solution gives SIGSEGV even after changing chunk vector size (1000) , editorial on hackerearth seems to do something different with 2 fenwick trees any help on explaining hacker earth approach or modifying author's solution to pass it on hacker earth will be much appreciated

link

answered 27 Dec '18, 17:41

adi1992's gravatar image

3★adi1992
21
accept rate: 0%

edited 27 Dec '18, 17:42

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:

×15,498
×1,237
×371
×39
×8
×4

question asked: 05 Feb '14, 15:33

question was seen: 4,061 times

last updated: 27 Dec '18, 17:42