Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // dart solution to codeabbey challenge 15
- import 'dart:io';
- void main() {
- var inp = stdin.readLineSync();
- var arr_str = inp.split(" ");
- var RSP = [];
- var max = 0;
- var min = 0;
- for (var i = 0; i < 300; i++){
- RSP.add(int.parse(arr_str[i]));
- }
- for (var j = 0; j < 300; j++){
- if(RSP[j] > max){
- max = RSP[j];
- }else if(RSP[j] < min){
- min = RSP[j];
- }
- }
- var RES = max.toString() + " " + min.toString();
- print(RES);
- }
Add Comment
Please, Sign In to add comment