QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#120062#6641. XOR DicecmkakioiAC ✓1ms3748kbC++14503b2023-07-06 12:59:212023-07-06 12:59:24

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:24]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3748kb
  • [2023-07-06 12:59:21]
  • 提交

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);
	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;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3748kb

input:

3 2

output:

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

result:

ok Correct answer

Test #2:

score: 0
Accepted
time: 0ms
memory: 3460kb

input:

100 60

output:

0 249600 3840 3900 245760 245820
0 249600 3840 3900 245760 245820
0 249600 3840 3900 245760 245820
0 249600 3840 3900 245760 245820
0 249600 3840 3900 245760 245820
0 249600 3840 3900 245760 245820
0 249600 3840 3900 245760 245820
0 249600 3840 3900 245760 245820
0 249600 3840 3900 245760 245820
0 2...

result:

ok Correct answer

Test #3:

score: 0
Accepted
time: 1ms
memory: 3580kb

input:

99 2

output:

0 8320 128 130 8192 8194
0 8320 128 130 8192 8194
0 8320 128 130 8192 8194
0 8320 128 130 8192 8194
0 8320 128 130 8192 8194
0 8320 128 130 8192 8194
0 8320 128 130 8192 8194
0 8320 128 130 8192 8194
0 8320 128 130 8192 8194
0 8320 128 130 8192 8194
0 8320 128 130 8192 8194
0 8320 128 130 8192 8194
...

result:

ok Correct answer

Test #4:

score: 0
Accepted
time: 1ms
memory: 3568kb

input:

99 59

output:

0 245440 3776 3835 241664 241723
0 245440 3776 3835 241664 241723
0 245440 3776 3835 241664 241723
0 245440 3776 3835 241664 241723
0 245440 3776 3835 241664 241723
0 245440 3776 3835 241664 241723
0 245440 3776 3835 241664 241723
0 245440 3776 3835 241664 241723
0 245440 3776 3835 241664 241723
0 2...

result:

ok Correct answer

Test #5:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

93 17

output:

0 70720 1088 1105 69632 69649
0 70720 1088 1105 69632 69649
0 70720 1088 1105 69632 69649
0 70720 1088 1105 69632 69649
0 70720 1088 1105 69632 69649
0 70720 1088 1105 69632 69649
0 70720 1088 1105 69632 69649
0 70720 1088 1105 69632 69649
0 70720 1088 1105 69632 69649
0 70720 1088 1105 69632 69649
...

result:

ok Correct answer

Test #6:

score: 0
Accepted
time: 1ms
memory: 3568kb

input:

100 49

output:

0 203840 3136 3185 200704 200753
0 203840 3136 3185 200704 200753
0 203840 3136 3185 200704 200753
0 203840 3136 3185 200704 200753
0 203840 3136 3185 200704 200753
0 203840 3136 3185 200704 200753
0 203840 3136 3185 200704 200753
0 203840 3136 3185 200704 200753
0 203840 3136 3185 200704 200753
0 2...

result:

ok Correct answer

Test #7:

score: 0
Accepted
time: 1ms
memory: 3508kb

input:

100 5

output:

0 20800 320 325 20480 20485
0 20800 320 325 20480 20485
0 20800 320 325 20480 20485
0 20800 320 325 20480 20485
0 20800 320 325 20480 20485
0 20800 320 325 20480 20485
0 20800 320 325 20480 20485
0 20800 320 325 20480 20485
0 20800 320 325 20480 20485
0 20800 320 325 20480 20485
0 20800 320 325 2048...

result:

ok Correct answer

Test #8:

score: 0
Accepted
time: 1ms
memory: 3504kb

input:

1 57

output:

0 237120 3648 3705 233472 233529

result:

ok Correct answer

Test #9:

score: 0
Accepted
time: 1ms
memory: 3560kb

input:

1 22

output:

0 91520 1408 1430 90112 90134

result:

ok Correct answer

Test #10:

score: 0
Accepted
time: 1ms
memory: 3536kb

input:

1 60

output:

0 249600 3840 3900 245760 245820

result:

ok Correct answer

Test #11:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

1 2

output:

0 8320 128 130 8192 8194

result:

ok Correct answer

Test #12:

score: 0
Accepted
time: 1ms
memory: 3568kb

input:

10 24

output:

0 99840 1536 1560 98304 98328
0 99840 1536 1560 98304 98328
0 99840 1536 1560 98304 98328
0 99840 1536 1560 98304 98328
0 99840 1536 1560 98304 98328
0 99840 1536 1560 98304 98328
0 99840 1536 1560 98304 98328
0 99840 1536 1560 98304 98328
0 99840 1536 1560 98304 98328
0 99840 1536 1560 98304 98328

result:

ok Correct answer