Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let input =[3,
- 1,
- 2,
- 3,
- ];
- let print = this.print || console.log;
- let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
- const n =+gets();
- let maxValue = 0;
- for(let i=0; i <= n;i++){
- let number =+gets();
- if(number >= maxValue){
- maxValue=number;
- }
- }
- print(maxValue);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement