結果

問題 No.3150 count X which satisfies with equlation
ユーザー Naru820
提出日時 2025-05-20 21:33:15
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 3,306 ms
コンパイル使用メモリ 270,940 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-06-20 02:59:08
合計ジャッジ時間 4,065 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 42
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int a,b;
int main(){
    cin >> a >> b;
    int ans = 0;
    for(int i = 0; i < 100000; i++){
        if((a | i) == b) ans++;
    }
    cout << ans;
}
0