QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#127099#6641. XOR Dicexiaoxing666#WA 0ms3592kbC++17415b2023-07-19 12:57:312023-07-19 12:57:43

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 12:57:43]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3592kb
  • [2023-07-19 12:57:31]
  • 提交

answer

#include<bits/stdc++.h>

using namespace std;

int n, d;

int main()
{
	scanf("%d %d", &n, &d);
	int k = (int)(log2(d & -d) + 1);
	//cout<<k<<endl;
	int tmp = d<<k;
	vector<int> ans;
	for (int i = 1; i <= 6; i++)
	{
		tmp = tmp << 1;
		//cout<<tmp<<endl;
		ans.push_back(tmp);
	}
	for(int i=1;i<=n;i++)
	{
		for(int j=0;j<n;j++)
		{
			cout<<ans[j]<<" \n"[j==n-1];
		}
	}


	return 0;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3592kb

input:

3 2

output:

16 32 64
16 32 64
16 32 64

result:

wrong answer Invalid output