QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#127193#6641. XOR Dicearnold#WA 1ms3596kbC++14325b2023-07-19 13:58:292023-07-19 13:58:29

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-19 13:58:29]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3596kb
  • [2023-07-19 13:58:29]
  • 提交

answer

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

int n,d;

int ycl[7]={1,1<<6,1<<12,1+(1<<6),1+(1<<12),1+(1<<6)+(1<<12)};

int main()
{	
	cin>>n>>d;
	for(int i=1;i<=n;i++)
	{
		for(int j=0;j<=5;j++)cout<<ycl[j]*d<<" ";
		cout<<endl;
	}
	int num=(d*ycl[2]) ^ (d*ycl[1]) ^ (d*(ycl[5]));
	cout<<num; 
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3596kb

input:

3 2

output:

2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2

result:

wrong output format Extra information in the output file