QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#132737 | #6641. XOR Dice | Rabeya# | AC ✓ | 1ms | 3576kb | C++17 | 496b | 2023-07-31 13:02:59 | 2023-07-31 13:03:03 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n, d;
cin >> n >> d;
vector<int> a(6);
a[0] = 0;
a[1] = d;
for (int i = 2; i <= 3; i++) {
a[i] = (a[i-1] << 6);
}
a[4] = (a[3] | a[1]);
a[5] = (a[4] | a[2]);
for (int i = 0; i < n; i++) {
for (int j = 0; j < 6; j++) {
cout << a[j] << ' ';
}
cout << '\n';
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3560kb
input:
3 2
output:
0 2 128 8192 8194 8322 0 2 128 8192 8194 8322 0 2 128 8192 8194 8322
result:
ok Correct answer
Test #2:
score: 0
Accepted
time: 1ms
memory: 3444kb
input:
100 60
output:
0 60 3840 245760 245820 249660 0 60 3840 245760 245820 249660 0 60 3840 245760 245820 249660 0 60 3840 245760 245820 249660 0 60 3840 245760 245820 249660 0 60 3840 245760 245820 249660 0 60 3840 245760 245820 249660 0 60 3840 245760 245820 249660 0 60 3840 245760 245820 249660 0 60 3840 24...
result:
ok Correct answer
Test #3:
score: 0
Accepted
time: 1ms
memory: 3516kb
input:
99 2
output:
0 2 128 8192 8194 8322 0 2 128 8192 8194 8322 0 2 128 8192 8194 8322 0 2 128 8192 8194 8322 0 2 128 8192 8194 8322 0 2 128 8192 8194 8322 0 2 128 8192 8194 8322 0 2 128 8192 8194 8322 0 2 128 8192 8194 8322 0 2 128 8192 8194 8322 0 2 128 8192 8194 8322 0 2 128 8192 8194 8322 0 2 128 8192...
result:
ok Correct answer
Test #4:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
99 59
output:
0 59 3776 241664 241723 245499 0 59 3776 241664 241723 245499 0 59 3776 241664 241723 245499 0 59 3776 241664 241723 245499 0 59 3776 241664 241723 245499 0 59 3776 241664 241723 245499 0 59 3776 241664 241723 245499 0 59 3776 241664 241723 245499 0 59 3776 241664 241723 245499 0 59 3776 24...
result:
ok Correct answer
Test #5:
score: 0
Accepted
time: 0ms
memory: 3508kb
input:
93 17
output:
0 17 1088 69632 69649 70737 0 17 1088 69632 69649 70737 0 17 1088 69632 69649 70737 0 17 1088 69632 69649 70737 0 17 1088 69632 69649 70737 0 17 1088 69632 69649 70737 0 17 1088 69632 69649 70737 0 17 1088 69632 69649 70737 0 17 1088 69632 69649 70737 0 17 1088 69632 69649 70737 0 17 1088 ...
result:
ok Correct answer
Test #6:
score: 0
Accepted
time: 1ms
memory: 3416kb
input:
100 49
output:
0 49 3136 200704 200753 203889 0 49 3136 200704 200753 203889 0 49 3136 200704 200753 203889 0 49 3136 200704 200753 203889 0 49 3136 200704 200753 203889 0 49 3136 200704 200753 203889 0 49 3136 200704 200753 203889 0 49 3136 200704 200753 203889 0 49 3136 200704 200753 203889 0 49 3136 20...
result:
ok Correct answer
Test #7:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
100 5
output:
0 5 320 20480 20485 20805 0 5 320 20480 20485 20805 0 5 320 20480 20485 20805 0 5 320 20480 20485 20805 0 5 320 20480 20485 20805 0 5 320 20480 20485 20805 0 5 320 20480 20485 20805 0 5 320 20480 20485 20805 0 5 320 20480 20485 20805 0 5 320 20480 20485 20805 0 5 320 20480 20485 20805 0 5...
result:
ok Correct answer
Test #8:
score: 0
Accepted
time: 1ms
memory: 3508kb
input:
1 57
output:
0 57 3648 233472 233529 237177
result:
ok Correct answer
Test #9:
score: 0
Accepted
time: 1ms
memory: 3440kb
input:
1 22
output:
0 22 1408 90112 90134 91542
result:
ok Correct answer
Test #10:
score: 0
Accepted
time: 1ms
memory: 3476kb
input:
1 60
output:
0 60 3840 245760 245820 249660
result:
ok Correct answer
Test #11:
score: 0
Accepted
time: 0ms
memory: 3436kb
input:
1 2
output:
0 2 128 8192 8194 8322
result:
ok Correct answer
Test #12:
score: 0
Accepted
time: 1ms
memory: 3504kb
input:
10 24
output:
0 24 1536 98304 98328 99864 0 24 1536 98304 98328 99864 0 24 1536 98304 98328 99864 0 24 1536 98304 98328 99864 0 24 1536 98304 98328 99864 0 24 1536 98304 98328 99864 0 24 1536 98304 98328 99864 0 24 1536 98304 98328 99864 0 24 1536 98304 98328 99864 0 24 1536 98304 98328 99864
result:
ok Correct answer