QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#127066#6641. XOR Dicezadowwww#AC ✓1ms3600kbC++14294b2023-07-19 12:46:252023-07-19 12:46:25

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:46:25]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3600kb
  • [2023-07-19 12:46:25]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,d;
	cin>>n>>d;
	int x[]={d,(1<<6)*d,(1<<12)*d};
	for(int i=1;i<=n;++i){
		for(int j=1;j<=6;++j){
			int now=0;
			for(int k=0;k<3;++k)
				if((1<<k)&j)now+=x[k];
			cout<<now<<" ";
		}
		cout<<"\n";
	}
	return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3392kb

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: 1ms
memory: 3388kb

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: 3396kb

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: 1ms
memory: 3600kb

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: 1ms
memory: 3380kb

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: 1ms
memory: 3540kb

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: 1ms
memory: 3592kb

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: 1ms
memory: 3392kb

input:

1 57

output:

57 3648 3705 233472 233529 237120 

result:

ok Correct answer

Test #9:

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

input:

1 22

output:

22 1408 1430 90112 90134 91520 

result:

ok Correct answer

Test #10:

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

input:

1 60

output:

60 3840 3900 245760 245820 249600 

result:

ok Correct answer

Test #11:

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

input:

1 2

output:

2 128 130 8192 8194 8320 

result:

ok Correct answer

Test #12:

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

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