Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main()
- {
- int N, i, min, minL = 0, minLC = 1;
- std::cin >> N;
- min = N;
- while (N != 0)
- {
- std::cin >> N;
- if (N != 0)
- {
- if (N < min)
- {
- minLC++;
- if (minLC > minL)
- minL = minLC;
- }
- else
- {
- minLC = 1;
- }
- min = N;
- }
- }
- std::cout << minL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement