Closed lucasturci closed 4 years ago
I think the current overflow check is wrong (undefined behaviour). I received a WA in a recent problem because of that.
Check out the two submissions: https://codeforces.com/contest/1228/submission/70469025 https://codeforces.com/contest/1228/submission/70469115
The second won gave me AC after fixing this.
I think the current overflow check is wrong (undefined behaviour). I received a WA in a recent problem because of that.
Check out the two submissions: https://codeforces.com/contest/1228/submission/70469025 https://codeforces.com/contest/1228/submission/70469115
The second won gave me AC after fixing this.