提交记录 16284


用户 题目 状态 得分 用时 内存 语言 代码长度
slgdsxw test. 自定义测试 Accepted 100 500.629 ms 131108 KB C++ 575 B
提交时间 评测时间
2021-06-18 16:33:16 2023-09-03 19:41:46
#include <bits/stdc++.h>
using namespace std;
typedef long long LI;
typedef unsigned long long ULI;
int rd(){return rand()<<15|rand();}

const int N=24,P=1e9+7;
ULI a[(1<<N)+5];
void FMT()
{
	for(int i=0;i<1<<N;i++)a[i]=rd();
	//for(int i=1;i<1<<N;i<<=1)
	//	for(int j=0;j<1<<N;j+=i<<1)
	//		for(int k=0;k<i;k++)
	//			a[j+k+i]+=a[j+k];				
	for(int i=0;i<N;i++)
		for(int j=0;j<1<<N;j++)
			if(j>>i&1)a[j]+=a[j^(1<<i)];
	//for(int i=0;i<1<<N;i++)a[i]%=P;
	ULI ans=0;
	for(int i=0;i<1<<N;i++)ans^=a[i];
	cout<<ans<<endl;
}
int main()
{
	srand(20210618u);
	FMT();
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1500.629 ms128 MB + 36 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-19 11:46:35 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠