Submission #15725585


Source Code Expand

Copy
use proconio::input;

fn main() {
    input! {
        n: usize,
        a: [i64; n],
    };
    let mut ans = false;
    for &a_i in a.iter() {
        if a_i % 2 != 0 {
            ans |= true;
        }
    }
    println!("{}", if ans { "first" } else { "second" });
}

Submission Info

Submission Time
Task D - Harlequin
User bouzuya
Language Rust (1.42.0)
Score 500
Code Size 272 Byte
Status AC
Exec Time 20 ms
Memory 3708 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 500 / 500
Status
AC × 2
AC × 22
Set Name Test Cases
Sample a01, a02
All a01, a02, b03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13, b14, b15, b16, b17, b18, b19, b20, b21, b22
Case Name Status Exec Time Memory
a01 AC 8 ms 2132 KB
a02 AC 2 ms 2020 KB
b03 AC 4 ms 1972 KB
b04 AC 2 ms 1888 KB
b05 AC 2 ms 1996 KB
b06 AC 2 ms 1948 KB
b07 AC 2 ms 2132 KB
b08 AC 1 ms 2044 KB
b09 AC 2 ms 1964 KB
b10 AC 1 ms 2076 KB
b11 AC 1 ms 2064 KB
b12 AC 13 ms 2820 KB
b13 AC 13 ms 3708 KB
b14 AC 16 ms 3628 KB
b15 AC 11 ms 2808 KB
b16 AC 14 ms 3664 KB
b17 AC 20 ms 3552 KB
b18 AC 14 ms 3652 KB
b19 AC 12 ms 3520 KB
b20 AC 15 ms 3620 KB
b21 AC 15 ms 3628 KB
b22 AC 11 ms 3448 KB