QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#120218#6641. XOR DiceCmsMartinAC ✓2ms3560kbC++14348b2023-07-06 15:06:122023-07-06 15:06:14

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-06 15:06:14]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:3560kb
  • [2023-07-06 15:06:12]
  • 提交

answer

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

int n, d;

int main() {
	ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	cin >> n >> d;
	for (int i = 1; i <= n; i++) {
		int x = 1 << 6, y = 1 << 12;
		cout << 0 << " " << 0 + d * x << " " << 0 + d * y << " " << d << " " << d + d * x << " " << d + d * y << endl;
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 2

output:

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

result:

ok Correct answer

Test #2:

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

input:

100 60

output:

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

result:

ok Correct answer

Test #3:

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

input:

99 2

output:

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

result:

ok Correct answer

Test #4:

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

input:

99 59

output:

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

result:

ok Correct answer

Test #5:

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

input:

93 17

output:

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

result:

ok Correct answer

Test #6:

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

input:

100 49

output:

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

result:

ok Correct answer

Test #7:

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

input:

100 5

output:

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

result:

ok Correct answer

Test #8:

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

input:

1 57

output:

0 3648 233472 57 3705 233529

result:

ok Correct answer

Test #9:

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

input:

1 22

output:

0 1408 90112 22 1430 90134

result:

ok Correct answer

Test #10:

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

input:

1 60

output:

0 3840 245760 60 3900 245820

result:

ok Correct answer

Test #11:

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

input:

1 2

output:

0 128 8192 2 130 8194

result:

ok Correct answer

Test #12:

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

input:

10 24

output:

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

result:

ok Correct answer