Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

AngryBaymax's blog

By AngryBaymax, history, 7 years ago, In English

Can anyone give me some problems about range GCD with adding updates?

and Hints about: https://www.codechef.com/KJSC2019/problems/RGCD (codechef — Range GCD) ?

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

»
7 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by AngryBaymax (previous revision, new revision, compare).

»
7 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

This problem can be solved using lazy propagation.
Another nice Problem on gcd queries
https://codeforces.me/contest/914/problem/D