每组数据有两个整数
use std::io::{self, *}; fn main() { let stdin = io::stdin(); while let Some(Ok(line)) = stdin.lock().lines().next() { let numbers: Vec<&str> = line.split(" ").collect(); let a = numbers[0].trim().parse::<i32>().unwrap_or(0); let b = numbers[1].trim().parse::<i32>().unwrap_or(0); print!("{}\n", a + b); } }