結果

問題 No.2282 Boxed Nim
ユーザー ixTL255
提出日時 2023-04-29 15:47:32
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 7 ms / 2,000 ms
コード長 421 bytes
コンパイル時間 10,930 ms
コンパイル使用メモリ 386,560 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-18 11:16:26
合計ジャッジ時間 11,999 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io;
fn main() {
    let mut n = String::new();
    io::stdin().read_line(&mut n).ok();
    let mut a = String::new();
    io::stdin().read_line(&mut a).ok();
    let a: Vec<usize> = a.trim().split_whitespace().map(|x| x.parse().unwrap()).collect();
    println!("{}",
        if a.iter().cloned().filter(|&x| x == 0).count() % 2 == 0 {
            "Second"
        } else {
            "First"
        }
    );
}
0