結果
| 問題 |
No.3112 Decrement or Mod Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-18 20:47:40 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 492 bytes |
| コンパイル時間 | 12,600 ms |
| コンパイル使用メモリ | 399,020 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-04-18 20:47:59 |
| 合計ジャッジ時間 | 14,933 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 65 |
ソースコード
#![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");
}
}