题解 | #成绩输入输出#
成绩输入输出
https://www.nowcoder.com/practice/eb49750ef0de47168c21761de086d97c
use std::io::{self}; fn main() { let mut a = String::new(); io::stdin().read_line(&mut a).expect("读取错误"); let a : Vec<_> = a.trim().split(" ").collect(); println!("score1={},score2={},score3={}",a[0],a[1],a[2]); }