Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Garfield_'s blog

By Garfield_, history, 7 years ago, In English

How to solve http://codeforces.com/contest/242/problem/E problem with square root decompositatio?

  • Vote: I like it
  • -19
  • Vote: I do not like it

| Write comment?
»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

This is not a problem of square root decomposition. It can be solved by segment tree with lazy propogation