/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 284.0 KiB
#2 Accepted 1ms 324.0 KiB
#3 Accepted 1ms 332.0 KiB
#4 Accepted 1ms 284.0 KiB
#5 Accepted 1ms 296.0 KiB
#6 Accepted 1ms 284.0 KiB
#7 Accepted 1ms 284.0 KiB
#8 Accepted 1ms 284.0 KiB
#9 Accepted 1ms 332.0 KiB
#10 Accepted 1ms 284.0 KiB

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-12-17 12:05:46
Judged By
Score
100
Total Time
1ms
Peak Memory
332.0 KiB