Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #define MAX 100002
- int main()
- {
- int n,i,a[MAX],p=1,b[10],m=1;
- scanf("%d ",&n);
- for(i=0;i<n;i++)
- {
- scanf("%d",&a[i]);
- }
- for(i=0;i<n-1;i++)
- {
- if(a[i]<a[i+1])
- {
- p++;
- if(p>m)
- m=p;
- }
- else
- {
- p=1;
- }
- }
- printf("%d",m);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement