結果

問題 No.3150 count X which satisfies with equlation
ユーザー lp_ql
提出日時 2025-05-20 23:13:37
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 332 bytes
コンパイル時間 10,799 ms
コンパイル使用メモリ 389,716 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-06-20 03:01:52
合計ジャッジ時間 12,129 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 42
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;
fn main() {
    input!{
        a: usize,
        b: usize,
    }
    let mut ans: usize = 1;
    for i in 0..10{
        if a >> i & 1 == 1{
            if b >> i & 1 == 1{
                ans *= 2
            }
            else{
                ans *= 0
            }
        }
    }
    println!("{}", ans)
}
0