文章

2

粉丝

169

获赞

0

访问

13.0k

头像
仅供参考
P1118
发布于2021年7月17日 17:15
阅读数 6.4k

#include<bits/stdc++.h>
using namespace std;
int main()
{
	bitset<22>num;
    long i,N,res;
    while(cin>>N)
    {
        N=(1<<N)-1;
        for(i=res=0; i<N; ++i)
        {
            cin>>num;
            res^=num.to_ulong();
        }
        cout<<res<<endl;
    }
    return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发