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

Автор Polyn0mial, история, 4 года назад, По-английски

I was solving this problem. The formula for this problem can be founded here. I've stress tested my code, and found out that this is the smallest test case where my code failed (answer for n <= 225537 are all correct).

Input
Output
Expect

It is obvious that my output is wrong, since $$$answer(n) \gt answer(n-1)$$$. I have no idea why my code doesn't work.

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

»
4 года назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

I think phi_pref is overflowing