QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#134861#6641. XOR DiceSolitaryDream#AC ✓1ms3888kbC++20271b2023-08-05 09:24:582023-08-05 09:25:00

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 09:25:00]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3888kb
  • [2023-08-05 09:24:58]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
int main() {
    int n, d;
    scanf("%d%d", &n, &d);
    int a = d, b = d << 6, c = d << 12;
    for (int i = 1; i <= n; ++i) {
        printf("%d %d %d %d %d %d\n", 0, a, b, c, a | b, a | c);
    }
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 2

output:

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

result:

ok Correct answer

Test #2:

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

input:

100 60

output:

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

result:

ok Correct answer

Test #3:

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

input:

99 2

output:

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

result:

ok Correct answer

Test #4:

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

input:

99 59

output:

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

result:

ok Correct answer

Test #5:

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

input:

93 17

output:

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

result:

ok Correct answer

Test #6:

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

input:

100 49

output:

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

result:

ok Correct answer

Test #7:

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

input:

100 5

output:

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

result:

ok Correct answer

Test #8:

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

input:

1 57

output:

0 57 3648 233472 3705 233529

result:

ok Correct answer

Test #9:

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

input:

1 22

output:

0 22 1408 90112 1430 90134

result:

ok Correct answer

Test #10:

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

input:

1 60

output:

0 60 3840 245760 3900 245820

result:

ok Correct answer

Test #11:

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

input:

1 2

output:

0 2 128 8192 130 8194

result:

ok Correct answer

Test #12:

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

input:

10 24

output:

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

result:

ok Correct answer