Skip to content

Instantly share code, notes, and snippets.

View BorFour's full-sized avatar
🐧
Cuack

Borja Fourquet BorFour

🐧
Cuack
View GitHub Profile
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()