ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2183. Good Mood

Wa 4
Posted by Hououin`~`Kyouma 27 Jan 2025 12:32
Input:
1
1
Ans:
-1
Re: Wa 4
Posted by Combatcook [YarSU] 🐸 27 Jan 2025 19:06
"It is guaranteed that there exists at least one a_i < 0"
So your test is incorrect
Re: Wa 4
Posted by Hououin`~`Kyouma 28 Jan 2025 21:19
You're right. When solving this problem, I made the mistake of not selecting a segment at all and this test helped to find bug. I hope this helps someone.

Edited by author 28.01.2025 21:20