結果

問題 No.3108 Luke or Bishop
ユーザー yuto0214w
提出日時 2025-04-18 22:59:20
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 262 bytes
コンパイル時間 10,373 ms
コンパイル使用メモリ 402,788 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-18 22:59:33
合計ジャッジ時間 11,562 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

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