Pls help in this problem -

Правка en1, от 650iq, 2024-03-18 06:16:35

https://mirror.codeforces.com/contest/1155/problem/D

This problem is similar to yesterdays atcoder regular contest problem A, where is used the logic that if X>0 we multiply the maximum segment and if X<0 we multiply the minimum segment but if i use the same logic in this question it is giving WA on test 10. Can someone pls help me understand why it doesn't work here?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский 650iq 2024-03-18 06:16:59 1 Tiny change: 'A, where is used the ' -> 'A, where i used the '
en1 Английский 650iq 2024-03-18 06:16:35 392 Initial revision (published)