Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long long n;
- scanf("%lld", &n);
- long long i, a[n], c = 0, max = 0;
- for(i = 0; i < n; i++) scanf("%lld", &a[i]);
- for(i = 0; i < n - 1; i++)
- {
- if(a[i] < a[i+1]) c++;
- else c = 0;
- if(max < c) max = c;
- //printf("c %lld\n", c);
- }
- printf("%lld\n", max + 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment