結果

問題 No.3108 Luke or Bishop
ユーザー yuto0214w
提出日時 2025-04-18 22:35:29
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 11,892 ms
コンパイル使用メモリ 385,868 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-18 22:35:44
合計ジャッジ時間 12,986 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 || x == y {
        println!("1");
    } else {
        println!("2");
    }
}
0