結果

問題 No.1506 Unbalanced Pocky Game
ユーザー phspls
提出日時 2022-11-03 23:10:49
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 396 bytes
コンパイル時間 12,834 ms
コンパイル使用メモリ 379,136 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-18 05:19:06
合計ジャッジ時間 15,021 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 45 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut n = String::new();
    std::io::stdin().read_line(&mut n).ok();
    let n: usize = n.trim().parse().unwrap();
    let mut a = String::new();
    std::io::stdin().read_line(&mut a).ok();
    let a: Vec<usize> = a.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();

    if a[n-1] == 1 {
        println!("Bob");
    } else {
        println!("Alice");
    }
}
0