kr25161's blog

By kr25161, history, 14 months ago, In English

what is wrong submission but passed 306759678

this is the changed one and passed which i think is correct 309488880

ask gives hash of string from l to r

whats wrong : inv[i] gives modular inverse of factorial of i

whats correct : inv[i] should be modular inverse of power of i base prime (P)

why i think this has happened : maybe due to combined probability of binary search, unsufficient tests, and bunch of luck i manage to AC the problem XD

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

»
14 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by kr25161 (previous revision, new revision, compare).

»
14 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

the added comment in the first submission "no bugs" is diabolical