fn main() {                                                                                                                                                                                                                                      let scan = std::io::stdin();                                                                                                                                                                                                                                                                                                                                                                                                                                                              let mut line = String::new();                                                                                                                                                                                                                let _ = scan.read_line(&mut line);                                                                                                                                                                                                           let v: Vec<&str> = line.split_whitespace().collect();                                                                                                                                                                                                                                                                                                                                                                                                                                     let n: usize = v[0].parse().unwrap_or(0);                                                                                                                                                                                                                                                                                                                                                                                                                                                 let mut line = String::new();                                                                                                                                                                                                                let _ = scan.read_line(&mut line);                                                                                                                                                                                                           let vec: Vec<&str> = line.split_whitespace().collect();                                                                                                                                                                                      let mut min: i64 = 0;                                                                                                                                                                                                                        let mut max: i64 = 0;                                                                                                                                                                                                                        let mut sum: i64 = 0;                                                                                                                                                                                                                                                                                                                                                                                                                                                                     for (i, e) in vec.iter().enumerate() {                                                                                                                                                                                                           let d: i64 = e.parse().unwrap_or(0);                                                                                                                                                                                                         if i == 0 {                                                                                                                                                                                                                                      min = d;                                                                                                                                                                                                                                     max = d;                                                                                                                                                                                                                                     sum = d;                                                                                                                                                                                                                                 } else {                                                                                                                                                                                                                                         min = std::cmp::min(min, d);                                                                                                                                                                                                                 max = std::cmp::max(max, d);                                                                                                                                                                                                                 sum += d;                                                                                                                                                                                                                                }                                                                                                                                                                                                                                        }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         println!("{} {} {}", min, max, sum);                                                                                                                                                                                                     }


Measured memory_bytes: 5040