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 1346. Intervals of Monotonicity

if you get WA #21
Posted by notbot 17 Mar 2017 09:00
I resolved WA21 using this case:

1 5
1 1 2 3 4

Correct Answer => 1

the problem with my solution was initialisation of the slope in case the first 2 elements are equal.