QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#127194#6641. XOR Dicearnold#AC ✓2ms3596kbC++14329b2023-07-19 13:58:492023-07-19 13:58:51

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:58:51]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:3596kb
  • [2023-07-19 13:58:49]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;

int n,d;

int ycl[7]={1,1<<6,1<<12,1+(1<<6),1+(1<<12),1+(1<<6)+(1<<12)};

int main()
{	
	cin>>n>>d;
	for(int i=1;i<=n;i++)
	{
		for(int j=0;j<=5;j++)cout<<ycl[j]*d<<" ";
		cout<<endl;
	}
//	int num=(d*ycl[2]) ^ (d*ycl[1]) ^ (d*(ycl[5]));
//	cout<<num; 
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 2

output:

2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 

result:

ok Correct answer

Test #2:

score: 0
Accepted
time: 2ms
memory: 3380kb

input:

100 60

output:

60 3840 245760 3900 245820 249660 
60 3840 245760 3900 245820 249660 
60 3840 245760 3900 245820 249660 
60 3840 245760 3900 245820 249660 
60 3840 245760 3900 245820 249660 
60 3840 245760 3900 245820 249660 
60 3840 245760 3900 245820 249660 
60 3840 245760 3900 245820 249660 
60 3840 245760 3900 ...

result:

ok Correct answer

Test #3:

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

input:

99 2

output:

2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2 128 8192 130 8194 8322 
2 128 8192 130...

result:

ok Correct answer

Test #4:

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

input:

99 59

output:

59 3776 241664 3835 241723 245499 
59 3776 241664 3835 241723 245499 
59 3776 241664 3835 241723 245499 
59 3776 241664 3835 241723 245499 
59 3776 241664 3835 241723 245499 
59 3776 241664 3835 241723 245499 
59 3776 241664 3835 241723 245499 
59 3776 241664 3835 241723 245499 
59 3776 241664 3835 ...

result:

ok Correct answer

Test #5:

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

input:

93 17

output:

17 1088 69632 1105 69649 70737 
17 1088 69632 1105 69649 70737 
17 1088 69632 1105 69649 70737 
17 1088 69632 1105 69649 70737 
17 1088 69632 1105 69649 70737 
17 1088 69632 1105 69649 70737 
17 1088 69632 1105 69649 70737 
17 1088 69632 1105 69649 70737 
17 1088 69632 1105 69649 70737 
17 1088 6963...

result:

ok Correct answer

Test #6:

score: 0
Accepted
time: 2ms
memory: 3416kb

input:

100 49

output:

49 3136 200704 3185 200753 203889 
49 3136 200704 3185 200753 203889 
49 3136 200704 3185 200753 203889 
49 3136 200704 3185 200753 203889 
49 3136 200704 3185 200753 203889 
49 3136 200704 3185 200753 203889 
49 3136 200704 3185 200753 203889 
49 3136 200704 3185 200753 203889 
49 3136 200704 3185 ...

result:

ok Correct answer

Test #7:

score: 0
Accepted
time: 2ms
memory: 3404kb

input:

100 5

output:

5 320 20480 325 20485 20805 
5 320 20480 325 20485 20805 
5 320 20480 325 20485 20805 
5 320 20480 325 20485 20805 
5 320 20480 325 20485 20805 
5 320 20480 325 20485 20805 
5 320 20480 325 20485 20805 
5 320 20480 325 20485 20805 
5 320 20480 325 20485 20805 
5 320 20480 325 20485 20805 
5 320 2048...

result:

ok Correct answer

Test #8:

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

input:

1 57

output:

57 3648 233472 3705 233529 237177 

result:

ok Correct answer

Test #9:

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

input:

1 22

output:

22 1408 90112 1430 90134 91542 

result:

ok Correct answer

Test #10:

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

input:

1 60

output:

60 3840 245760 3900 245820 249660 

result:

ok Correct answer

Test #11:

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

input:

1 2

output:

2 128 8192 130 8194 8322 

result:

ok Correct answer

Test #12:

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

input:

10 24

output:

24 1536 98304 1560 98328 99864 
24 1536 98304 1560 98328 99864 
24 1536 98304 1560 98328 99864 
24 1536 98304 1560 98328 99864 
24 1536 98304 1560 98328 99864 
24 1536 98304 1560 98328 99864 
24 1536 98304 1560 98328 99864 
24 1536 98304 1560 98328 99864 
24 1536 98304 1560 98328 99864 
24 1536 9830...

result:

ok Correct answer