NikaraBika's blog

By NikaraBika, 10 years ago, In English

Hi there!
Last night I saw this problem in "Timus". I knew that it can be solved by Segment Tree, so I wrote this code. But it gets "Wrong answer on test 3" :-"
Can you tell me where it's bug is?!

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

»
10 years ago, # |
  Vote: I like it +4 Vote: I do not like it

According to the 190R order, the greatest common divisor of an empty collection is equal to one.