QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#213489#6641. XOR DicesolemnteeAC ✓0ms3944kbC++17399b2023-10-14 14:29:212023-10-14 14:29:21

Judging History

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

  • [2023-10-14 14:29:21]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3944kb
  • [2023-10-14 14:29:21]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int a[4];
int main(){
	int n,d;
	scanf("%d%d",&n,&d);
	a[0]=d;
	a[1]=(d<<6);
	a[2]=(d<<12);
	//printf("%d %d %d\n",a[0],a[1],a[2]);
	for(int i=1;i<=n;i++){
		for(int j=1;j<=6;j++){
			int ans=0;
			for(int k=0;k<=2;k++){
				if((j>>k)&1)ans+=a[k];
			}
			printf("%d ",ans);
		}
		printf("\n");
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 2

output:

2 128 130 8192 8194 8320 
2 128 130 8192 8194 8320 
2 128 130 8192 8194 8320 

result:

ok Correct answer

Test #2:

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

input:

100 60

output:

60 3840 3900 245760 245820 249600 
60 3840 3900 245760 245820 249600 
60 3840 3900 245760 245820 249600 
60 3840 3900 245760 245820 249600 
60 3840 3900 245760 245820 249600 
60 3840 3900 245760 245820 249600 
60 3840 3900 245760 245820 249600 
60 3840 3900 245760 245820 249600 
60 3840 3900 245760 ...

result:

ok Correct answer

Test #3:

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

input:

99 2

output:

2 128 130 8192 8194 8320 
2 128 130 8192 8194 8320 
2 128 130 8192 8194 8320 
2 128 130 8192 8194 8320 
2 128 130 8192 8194 8320 
2 128 130 8192 8194 8320 
2 128 130 8192 8194 8320 
2 128 130 8192 8194 8320 
2 128 130 8192 8194 8320 
2 128 130 8192 8194 8320 
2 128 130 8192 8194 8320 
2 128 130 8192...

result:

ok Correct answer

Test #4:

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

input:

99 59

output:

59 3776 3835 241664 241723 245440 
59 3776 3835 241664 241723 245440 
59 3776 3835 241664 241723 245440 
59 3776 3835 241664 241723 245440 
59 3776 3835 241664 241723 245440 
59 3776 3835 241664 241723 245440 
59 3776 3835 241664 241723 245440 
59 3776 3835 241664 241723 245440 
59 3776 3835 241664 ...

result:

ok Correct answer

Test #5:

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

input:

93 17

output:

17 1088 1105 69632 69649 70720 
17 1088 1105 69632 69649 70720 
17 1088 1105 69632 69649 70720 
17 1088 1105 69632 69649 70720 
17 1088 1105 69632 69649 70720 
17 1088 1105 69632 69649 70720 
17 1088 1105 69632 69649 70720 
17 1088 1105 69632 69649 70720 
17 1088 1105 69632 69649 70720 
17 1088 1105...

result:

ok Correct answer

Test #6:

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

input:

100 49

output:

49 3136 3185 200704 200753 203840 
49 3136 3185 200704 200753 203840 
49 3136 3185 200704 200753 203840 
49 3136 3185 200704 200753 203840 
49 3136 3185 200704 200753 203840 
49 3136 3185 200704 200753 203840 
49 3136 3185 200704 200753 203840 
49 3136 3185 200704 200753 203840 
49 3136 3185 200704 ...

result:

ok Correct answer

Test #7:

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

input:

100 5

output:

5 320 325 20480 20485 20800 
5 320 325 20480 20485 20800 
5 320 325 20480 20485 20800 
5 320 325 20480 20485 20800 
5 320 325 20480 20485 20800 
5 320 325 20480 20485 20800 
5 320 325 20480 20485 20800 
5 320 325 20480 20485 20800 
5 320 325 20480 20485 20800 
5 320 325 20480 20485 20800 
5 320 325 ...

result:

ok Correct answer

Test #8:

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

input:

1 57

output:

57 3648 3705 233472 233529 237120 

result:

ok Correct answer

Test #9:

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

input:

1 22

output:

22 1408 1430 90112 90134 91520 

result:

ok Correct answer

Test #10:

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

input:

1 60

output:

60 3840 3900 245760 245820 249600 

result:

ok Correct answer

Test #11:

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

input:

1 2

output:

2 128 130 8192 8194 8320 

result:

ok Correct answer

Test #12:

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

input:

10 24

output:

24 1536 1560 98304 98328 99840 
24 1536 1560 98304 98328 99840 
24 1536 1560 98304 98328 99840 
24 1536 1560 98304 98328 99840 
24 1536 1560 98304 98328 99840 
24 1536 1560 98304 98328 99840 
24 1536 1560 98304 98328 99840 
24 1536 1560 98304 98328 99840 
24 1536 1560 98304 98328 99840 
24 1536 1560...

result:

ok Correct answer