結果

問題 No.3108 Luke or Bishop
ユーザー yuto0214w
提出日時 2025-04-18 21:48:52
言語 Rust
(1.83.0 + proconio)
結果
RE  
実行時間 -
コード長 247 bytes
コンパイル時間 12,820 ms
コンパイル使用メモリ 389,432 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-18 21:49:07
合計ジャッジ時間 13,906 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11 RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

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