Submission #2972324

Source Code Expand

Copy
fn read<T: std::str::FromStr>() -> T {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().parse().ok().unwrap()
}
fn read_vec<T: std::str::FromStr>() -> Vec<T> {
    read::<String>().split_whitespace().map(|e| e.parse().ok().unwrap()).collect()
}
fn main() {
    let a = read::<i32>();
    let bc = read_vec::<i32>();
    let s = read::<String>();
    println!("{} {}", a+bc[0]+bc[1], s);
}

Submission Info

Submission Time
Task PracticeA - はじめてのあっとこーだー(Welcome to AtCoder)
User naoya_t
Language Rust (1.15.1)
Score 100
Code Size 443 Byte
Status
Exec Time 2 ms
Memory 4352 KB

Test Cases

Set Name Score / Max Score Test Cases
All 100 / 100 00_rnd_01.txt, 00_rnd_02.txt, 00_rnd_03.txt, 00_rnd_04.txt, 00_rnd_05.txt, 00_sample_1.txt, 00_sample_2.txt
Case Name Status Exec Time Memory
00_rnd_01.txt 2 ms 4352 KB
00_rnd_02.txt 2 ms 4352 KB
00_rnd_03.txt 2 ms 4352 KB
00_rnd_04.txt 2 ms 4352 KB
00_rnd_05.txt 2 ms 4352 KB
00_sample_1.txt 2 ms 4352 KB
00_sample_2.txt 2 ms 4352 KB