Got WA because of ans*= j ,but ac with ans = ans*j

Revision en2, by omkar21_pro, 2023-05-15 07:00:22

In recent codeforces div 2 contest I got wa because of this in problem C — counting orders

I don's understand what is difference between two ,Aren't they both same ?

Here is my submission for which got wa

https://mirror.codeforces.com/contest/1828/submission/205934626

Here is same submission for which got ac by changing ans = ans* something

https://mirror.codeforces.com/contest/1828/submission/205934493

Tags c++, int overflow

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English omkar21_pro 2023-05-15 07:00:22 8 Tiny change: 'ion/205934493\n\nHere i' -> 'ion/205934626\n\nHere i'
en1 English omkar21_pro 2023-05-15 05:54:22 468 Initial revision (published)