_Bunny's blog

By _Bunny, history, 4 months ago, In English

Problem: Given an array a1, a2, ..., an (1 <= n <= 1e6) and q queries, for each query has two types.

1 l r x: a[i] = min(a[i], x) (l <= i <= r).

2 i : print value in position i.

I dont know use lazy update to solve operator 1, help me pls (sorry i'm poor E).

Full text and comments »

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

By _Bunny, history, 5 months ago, In English

hi everyone!

I read a blog write about formula of a^b = a'b + ab' and i dont understand. Someone can explain it for me pls :((

(sorry i'm poor E).

link: https://www.homeworklib.com/qaa/1383353/2prove-that-a-xor-b-a-xor-c-a-xor-b-b-xor

Full text and comments »

  • Vote: I like it
  • +7
  • Vote: I do not like it