1 条题解

  • 0
    @ 2025-10-8 16:52:56
    #include<bits/stdc++.h>
    using namespace std;
    typedef long long LL;
    int main()
    {
        LL a,b,k;scanf("%lld%lld%lld",&a,&b,&k);
        printf("%lld\n",a&b);
        printf("%lld\n",a|b);
        printf("%lld\n",a^b);
        printf("%lld\n",~a);
        printf("%lld\n",a<<k);
        printf("%lld\n",a>>k);
        return 0;
    }
    
    • 1

    信息

    ID
    729
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    217
    已通过
    86
    上传者