You are viewing a single comment's thread. Return to all comments →
What do constraints 1 and 2 mean?
Does it means 1<= x <= N?
So for N=2, x will be 1 and 2
when x=1, don't add to sum because it is not irrational number
It means either/or. If P is over 1000, N will be limited to 100. Otherwise, the limit for both is 1000.