Accepted
Code
use std::io;
fn main() {
let mut line = String::new();
io::stdin().read_line(&mut line).expect("stdin");
let sum: i32 = line.split_whitespace()
.map(|x| x.parse::<i32>().expect("integer"))
.sum();
println!("{}", sum);
}
Information
- Submit By
- Type
- Submission
- Problem
- P1000 A + B
- Language
- Rust 2021 (Rust 1.75.0)
- Submit At
- 2024-10-03 18:25:29
- Judged At
- 2024-11-11 02:45:10
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 396.0 KiB