SmallGirl's blog

By SmallGirl, history, 8 years ago, In English

Hello everyone,

I was solving the last problem from the last CF Round! http://codeforces.com/contest/676/problem/E

I can't understand why at the end of the game if P(k) = 0 then the human wins, I mean why if P(k) = 0 then it means that the polynomial P(x) is divisible by polynomial Q(x)?

I really need your help! :)

Full text and comments »

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

By SmallGirl, history, 8 years ago, In English

Hi everyone, I was solving the problem from the recently ended contest May Circuits! https://www.hackerearth.com/may-circuits/algorithm/make-n00b_land-great-again-circuits/

But I faced a really strange problem! Here my AC submission: https://ideone.com/QxhGT6


// ----- int hey = update2(l, r, x, (v == -1 ? -1 : t2[v].l), tl, tm); t2[now].l = hey; hey = update2(l, r, x, (v == -1 ? -1 : t2[v].r), tm + 1, tr); t2[now].r = hey; // ----- /* t2[now].l = update2(l, r, x, (v == -1 ? -1 : t2[v].l), tl, tm); t2[now].r = update2(l, r, x, (v == -1 ? -1 : t2[v].r), tm + 1, tr);*/

But if replace the first part with the second, even sample isn't working! I really need your help.

Full text and comments »

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