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

Правка en1, от omkar21_pro, 2023-05-15 05:54: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://codeforces.com/contest/1828/submission/205934493

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

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

Теги c++, int overflow

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский omkar21_pro 2023-05-15 07:00:22 8 Tiny change: 'ion/205934493\n\nHere i' -> 'ion/205934626\n\nHere i'
en1 Английский omkar21_pro 2023-05-15 05:54:22 468 Initial revision (published)