Comments

this is my code, but I can't calculate the probability to get wrong answer.

+2

in problem D, if i is divisor of x+1 why we need to replace i-1 to i ?