Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - using System;
- namespace Rise
- {
- class Rise
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- var length = 0;
- var predhodno = 0;
- var maxLength = 0;
- for (int i = 0; i < n; i++)
- {
- var num = int.Parse(Console.ReadLine());
- if (num > predhodno)
- {
- length = length + 1;
- }
- else
- {
- length = 1;
- }
- if (length > maxLength) maxLength = length;
- predhodno = num;
- }
- Console.WriteLine(maxLength);
- }
- }
- }
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment                    
                 
                    