結果

問題 No.3112 Decrement or Mod Game
コンテスト
ユーザー rhoo
提出日時 2025-04-18 20:47:40
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
コード長 492 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,090 ms
コンパイル使用メモリ 192,472 KB
実行使用メモリ 5,632 KB
最終ジャッジ日時 2026-07-09 18:21:58
合計ジャッジ時間 3,717 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 65
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#![allow(unused_imports,non_snake_case,dead_code)]
use std::{cmp::Reverse as Rev,collections::*,iter::*};
use proconio::{marker::*,*};


#[fastout]
fn main(){
    input!{
        a:usize,
        b:usize,
    }
    if a==1 || b==1{
        println!("Alice");
        return;
    }

    if b+1==a{
        println!("Bob");
        return;
    }

    if a==b{
        println!("Alice");
        return;
    }

    if a<b{
        println!("Bob");
    } else{
        println!("Alice");
    }
}
0