Блог пользователя SmallGirl

Автор SmallGirl, история, 8 лет назад, По-английски

Hello everyone,

I was solving the last problem from the last CF Round! http://mirror.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! :)

Полный текст и комментарии »

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится

Автор SmallGirl, история, 8 лет назад, По-английски

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.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +18
  • Проголосовать: не нравится