結果

問題 No.3108 Luke or Bishop
ユーザー yuto0214w
提出日時 2025-04-18 23:02:06
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 12,187 ms
コンパイル使用メモリ 393,944 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-18 23:02:23
合計ジャッジ時間 13,407 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

fn main() {
    input! {
        x: i32,
        y: i32,
    }
    if x == 0 && y == 0 {
        println!("0");
    } else if x == 0 || y == 0 || x.abs() == y.abs() {
        println!("1");
    } else {
        println!("2");
    }
}
0