QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#134949#6641. XOR DiceTeam_name#AC ✓1ms3900kbC++20499b2023-08-05 10:17:142023-08-05 10:17:16

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-08-05 10:17:16]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3900kb
  • [2023-08-05 10:17:14]
  • 提交

answer

#include <bits/stdc++.h>

#define _debugVar(x) { cerr << #x << " = " << x << endl; }

using namespace std;
using LL = long long;

int n, d;
int a[6];

int main()
{
	// freopen("1.in", "r", stdin);
	ios::sync_with_stdio(false);
	cin.tie(nullptr);

	cin >> n >> d;
	a[0] = 0;
	a[1] = d; 
	a[2] = (d<<6);
	a[3] = (d<<6)+d;
	a[4] = (d<<12);
	a[5] = (d<<12)+d;

	for(int i = 1; i <= n; i++) {
		for(int j = 0; j < 6; j++) 
			printf("%d ", a[j]);
		puts("");
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 2

output:

0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0 2 128 130 8192 8194 

result:

ok Correct answer

Test #2:

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

input:

100 60

output:

0 60 3840 3900 245760 245820 
0 60 3840 3900 245760 245820 
0 60 3840 3900 245760 245820 
0 60 3840 3900 245760 245820 
0 60 3840 3900 245760 245820 
0 60 3840 3900 245760 245820 
0 60 3840 3900 245760 245820 
0 60 3840 3900 245760 245820 
0 60 3840 3900 245760 245820 
0 60 3840 3900 245760 245820 
...

result:

ok Correct answer

Test #3:

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

input:

99 2

output:

0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0 2 128 130 8192 8194 
0...

result:

ok Correct answer

Test #4:

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

input:

99 59

output:

0 59 3776 3835 241664 241723 
0 59 3776 3835 241664 241723 
0 59 3776 3835 241664 241723 
0 59 3776 3835 241664 241723 
0 59 3776 3835 241664 241723 
0 59 3776 3835 241664 241723 
0 59 3776 3835 241664 241723 
0 59 3776 3835 241664 241723 
0 59 3776 3835 241664 241723 
0 59 3776 3835 241664 241723 
...

result:

ok Correct answer

Test #5:

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

input:

93 17

output:

0 17 1088 1105 69632 69649 
0 17 1088 1105 69632 69649 
0 17 1088 1105 69632 69649 
0 17 1088 1105 69632 69649 
0 17 1088 1105 69632 69649 
0 17 1088 1105 69632 69649 
0 17 1088 1105 69632 69649 
0 17 1088 1105 69632 69649 
0 17 1088 1105 69632 69649 
0 17 1088 1105 69632 69649 
0 17 1088 1105 69632...

result:

ok Correct answer

Test #6:

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

input:

100 49

output:

0 49 3136 3185 200704 200753 
0 49 3136 3185 200704 200753 
0 49 3136 3185 200704 200753 
0 49 3136 3185 200704 200753 
0 49 3136 3185 200704 200753 
0 49 3136 3185 200704 200753 
0 49 3136 3185 200704 200753 
0 49 3136 3185 200704 200753 
0 49 3136 3185 200704 200753 
0 49 3136 3185 200704 200753 
...

result:

ok Correct answer

Test #7:

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

input:

100 5

output:

0 5 320 325 20480 20485 
0 5 320 325 20480 20485 
0 5 320 325 20480 20485 
0 5 320 325 20480 20485 
0 5 320 325 20480 20485 
0 5 320 325 20480 20485 
0 5 320 325 20480 20485 
0 5 320 325 20480 20485 
0 5 320 325 20480 20485 
0 5 320 325 20480 20485 
0 5 320 325 20480 20485 
0 5 320 325 20480 20485 
...

result:

ok Correct answer

Test #8:

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

input:

1 57

output:

0 57 3648 3705 233472 233529 

result:

ok Correct answer

Test #9:

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

input:

1 22

output:

0 22 1408 1430 90112 90134 

result:

ok Correct answer

Test #10:

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

input:

1 60

output:

0 60 3840 3900 245760 245820 

result:

ok Correct answer

Test #11:

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

input:

1 2

output:

0 2 128 130 8192 8194 

result:

ok Correct answer

Test #12:

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

input:

10 24

output:

0 24 1536 1560 98304 98328 
0 24 1536 1560 98304 98328 
0 24 1536 1560 98304 98328 
0 24 1536 1560 98304 98328 
0 24 1536 1560 98304 98328 
0 24 1536 1560 98304 98328 
0 24 1536 1560 98304 98328 
0 24 1536 1560 98304 98328 
0 24 1536 1560 98304 98328 
0 24 1536 1560 98304 98328 

result:

ok Correct answer