結果

問題 No.3150 count X which satisfies with equlation
ユーザー atcoder8
提出日時 2025-05-20 21:28:43
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 22,141 ms
コンパイル使用メモリ 379,912 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2025-06-20 02:58:47
合計ジャッジ時間 14,588 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 42
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

fn main() {
    input! {
        (a, b): (u8, u8),
    }

    let ans = (0_u8..=255).filter(|x| a | x == b).count();
    println!("{}", ans);
}
0