Submission #2972353

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 solve(a:i32, b:i32) {
    if a * b % 2 == 1 {
        println!("Odd");
    } else {
        println!("Even");
    }
}
fn main() {
    let ab = read_vec::<i32>();
    solve(ab[0], ab[1]);
}

Submission Info

Submission Time
Task ABC086A - Product
User naoya_t
Language Rust (1.15.1)
Score 100
Code Size 496 Byte
Status
Exec Time 2 ms
Memory 4352 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 0_000.txt, 0_001.txt
All 100 / 100 0_000.txt, 0_001.txt, 1_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt
Case Name Status Exec Time Memory
0_000.txt 2 ms 4352 KB
0_001.txt 2 ms 4352 KB
1_002.txt 2 ms 4352 KB
1_003.txt 2 ms 4352 KB
1_004.txt 2 ms 4352 KB
1_005.txt 2 ms 4352 KB
1_006.txt 2 ms 4352 KB