QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#120061#6641. XOR DicecmkakioiWA 1ms3616kbC++14519b2023-07-06 12:59:022023-07-06 12:59:04

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-06 12:59:04]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3616kb
  • [2023-07-06 12:59:02]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
inline char gc()
{
	static char ibuf[1<<15],*ip1,*ip2;
	if(ip2==ip1) ip2=(ip1=ibuf)+fread(ibuf,1,1<<15,stdin);
	return *ip1++;
}
template<typename Tp> inline void read(Tp &x)
{
	char c=gc(); x=0;
	for(;!isdigit(c);c=gc());
	for(;isdigit(c);c=gc()) x=(x<<3)+(x<<1)+c-48;
}
int n,m;
signed main()
{
	read(n),read(m);
	puts("Yes"); 
	for(int i=1;i<=n;i++)
	{
		int a=(m<<6),b=(m<<12);
		printf("%d %d %d %d %d %d\n",0,a|b,a,a|m,b,b|m);
	}	
	return 0;
}

詳細信息

Test #1:

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

input:

3 2

output:

Yes
0 8320 128 130 8192 8194
0 8320 128 130 8192 8194
0 8320 128 130 8192 8194

result:

wrong output format Expected integer, but "Yes" found