4 条题解

  • 0
    @ 2026-4-26 10:52:41

    #include<bits/stdc++.h> using namespace std; int aa; int main(){ int n,one=0,two=0,three=0; cin>>n; for(int i=1;i<=n;i++){ cin>>aa; two^=(one&aa); one^=aa; three=~(one&two); two&=three; one&=three; } cout<<one; }

    信息

    ID
    1224
    时间
    1000ms
    内存
    5MiB
    难度
    7
    标签
    递交数
    424
    已通过
    95
    上传者