ENG
RUS
Timus 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
Discussion of Problem
2183
. Good Mood
Show all threads
Hide all threads
Show all messages
Hide all messages
Wa 4
Hououin`~`Kyouma
2183
. Good Mood
28 Jan 2025 21:19
3
Wa 4
Hououin`~`Kyouma
27 Jan 2025 12:32
Input:
1
1
Ans:
-1
Re: Wa 4
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
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
New topic
Style:
flat
|
tree
|
nested
Thread Order:
bubble
|
fixed
© 2000–2025
Timus Online Judge Team
. All rights reserved.