QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#127126#6641. XOR Dice45645A#AC ✓1ms3752kbC++14295b2023-07-19 13:19:382023-07-19 13:19:47

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:19:47]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3752kb
  • [2023-07-19 13:19:38]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int n,d;
int dd[10];
int main()
{
	cin>>n>>d;
	for(int i=1;i<=n;i++)
	{
		for(int j=0;j<6;j++)
		{
			int u=0;
			u+=((j>>2)&1)*(d);
			u+=((j>>1)&1)*(d<<6);
			u+=(j&1)*(d<<12);
			printf("%d ",u);
		}
		puts("");
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 2

output:

0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 

result:

ok Correct answer

Test #2:

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

input:

100 60

output:

0 245760 3840 249600 60 245820 
0 245760 3840 249600 60 245820 
0 245760 3840 249600 60 245820 
0 245760 3840 249600 60 245820 
0 245760 3840 249600 60 245820 
0 245760 3840 249600 60 245820 
0 245760 3840 249600 60 245820 
0 245760 3840 249600 60 245820 
0 245760 3840 249600 60 245820 
0 245760 384...

result:

ok Correct answer

Test #3:

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

input:

99 2

output:

0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 
0 8192 128 8320 2 8194 
0 8192 128 8...

result:

ok Correct answer

Test #4:

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

input:

99 59

output:

0 241664 3776 245440 59 241723 
0 241664 3776 245440 59 241723 
0 241664 3776 245440 59 241723 
0 241664 3776 245440 59 241723 
0 241664 3776 245440 59 241723 
0 241664 3776 245440 59 241723 
0 241664 3776 245440 59 241723 
0 241664 3776 245440 59 241723 
0 241664 3776 245440 59 241723 
0 241664 377...

result:

ok Correct answer

Test #5:

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

input:

93 17

output:

0 69632 1088 70720 17 69649 
0 69632 1088 70720 17 69649 
0 69632 1088 70720 17 69649 
0 69632 1088 70720 17 69649 
0 69632 1088 70720 17 69649 
0 69632 1088 70720 17 69649 
0 69632 1088 70720 17 69649 
0 69632 1088 70720 17 69649 
0 69632 1088 70720 17 69649 
0 69632 1088 70720 17 69649 
0 69632 10...

result:

ok Correct answer

Test #6:

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

input:

100 49

output:

0 200704 3136 203840 49 200753 
0 200704 3136 203840 49 200753 
0 200704 3136 203840 49 200753 
0 200704 3136 203840 49 200753 
0 200704 3136 203840 49 200753 
0 200704 3136 203840 49 200753 
0 200704 3136 203840 49 200753 
0 200704 3136 203840 49 200753 
0 200704 3136 203840 49 200753 
0 200704 313...

result:

ok Correct answer

Test #7:

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

input:

100 5

output:

0 20480 320 20800 5 20485 
0 20480 320 20800 5 20485 
0 20480 320 20800 5 20485 
0 20480 320 20800 5 20485 
0 20480 320 20800 5 20485 
0 20480 320 20800 5 20485 
0 20480 320 20800 5 20485 
0 20480 320 20800 5 20485 
0 20480 320 20800 5 20485 
0 20480 320 20800 5 20485 
0 20480 320 20800 5 20485 
0 2...

result:

ok Correct answer

Test #8:

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

input:

1 57

output:

0 233472 3648 237120 57 233529 

result:

ok Correct answer

Test #9:

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

input:

1 22

output:

0 90112 1408 91520 22 90134 

result:

ok Correct answer

Test #10:

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

input:

1 60

output:

0 245760 3840 249600 60 245820 

result:

ok Correct answer

Test #11:

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

input:

1 2

output:

0 8192 128 8320 2 8194 

result:

ok Correct answer

Test #12:

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

input:

10 24

output:

0 98304 1536 99840 24 98328 
0 98304 1536 99840 24 98328 
0 98304 1536 99840 24 98328 
0 98304 1536 99840 24 98328 
0 98304 1536 99840 24 98328 
0 98304 1536 99840 24 98328 
0 98304 1536 99840 24 98328 
0 98304 1536 99840 24 98328 
0 98304 1536 99840 24 98328 
0 98304 1536 99840 24 98328 

result:

ok Correct answer