結果

問題 No.3112 Decrement or Mod Game
ユーザー lumc_
提出日時 2025-04-19 15:34:47
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 649 bytes
コンパイル時間 12,542 ms
コンパイル使用メモリ 401,896 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-19 15:35:02
合計ジャッジ時間 12,563 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 65
権限があれば一括ダウンロードができます

ソースコード

diff #

#![allow(
    dead_code,
    non_snake_case,
    unused_imports,
    unused_mut,
    unused_variables,
    while_true,
    unused_assignments,
    clippy::needless_range_loop,
    clippy::ptr_arg,
    clippy::type_complexity,
    clippy::unnecessary_cast
)]
use proconio::{
    input,
    marker::{Chars, Usize1 as usize1},
};
use std::collections::{BinaryHeap, HashMap, HashSet, VecDeque};

fn sol() -> bool {
    input! {
        A: u64,
        B: u64,
    };

    if A == 1 || A == B {
        return true;
    }
    if A == B + 1 {
        return false;
    }
    A > B
}

fn main() {
    println!("{}", if sol() { "Alice" } else { "Bob" });
}
0