thebigjuicyd's blog

By thebigjuicyd, history, 4 years ago, In English

Recently, I was looking at the solution to 1217A - Создавая персонажа. In the first few lines of the the solution, the author writes how 2addS > exp + int-str. In the next line, the author writes 2addS >= exp + int-str + 1. If there like a rule that says if you add one to one side, you can get a >=?

Full text and comments »

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

By thebigjuicyd, history, 4 years ago, In English

I was doing 1238B: Kill 'Em All and this was my solution: 87445913 However, with the way that I did it, the only difference between my solution and the working one is the while loop at the end that goes through values that are the same in the array. I just don't understand why my while loop gets an error while Dukkha's doesn't(has solution that is identical but with a different while loop a the end). Dukkha's Solution: 62167923 Thanks!

Full text and comments »

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

By thebigjuicyd, history, 4 years ago, In English

I just participated in the Div 2 Algo Muse Comp and on question 3, you could use &=. But the &= was not used with booleans. It was used with int, like a &= n — 1; What does the &= mean and do in this int context?

Full text and comments »

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