This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io::{self, BufRead}; | |
fn main() -> io::Result<()> { | |
let stdin = io::stdin(); | |
let mut iterator = stdin.lock().lines(); | |
let line1 = iterator.next().unwrap().unwrap(); | |
let vec_of_ints: Vec<i32> = line1 | |
.split_whitespace() |