結果

問題 No.3150 count X which satisfies with equlation
コンテスト
ユーザー atcoder8
提出日時 2025-05-20 21:28:43
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 13,187 ms
コンパイル使用メモリ 399,604 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-10-29 21:28:57
合計ジャッジ時間 13,944 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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