hello everybody , i m just stuck at this test case now more than two days . can someone help me out figuring what is wrong this submission problem — 1846C - Rudolf and the Another Competition submission — 269683436
also , share how did you people deal with such circumstances , as i m facing this issue in a few more problems now. thankyou
I just replaced all the int variables with long long and int main with signed main ,and it got accepted so I guess it was probably an overflow issue. Here is the accepted solution if you want 269819161
thankyou very much , i dont know how did i miss that can u help me with this problem as well problem — 1725B - Basketball Together code — 269709874
This part was wrong, I don't know why it was added but just commenting it out gets accepted:
if(D%P[j]==0 && D>P[j])
++x;
269825510
yeah , thank u so much , i got it , codeforces community is really nice and helpful
You are welcome brother
you are going to get wa9 forever
Hmmmmmmmm, Yeah I think it is better than looking at editorial before not trying enough.