Pls help in this problem -

Revision en2, by 650iq, 2024-03-18 06:16:59

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

This problem is similar to yesterdays atcoder regular contest problem A, where i 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?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English 650iq 2024-03-18 06:16:59 1 Tiny change: 'A, where is used the ' -> 'A, where i used the '
en1 English 650iq 2024-03-18 06:16:35 392 Initial revision (published)