QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#118924 | #6641. XOR Dice | 8BQube# | AC ✓ | 1ms | 3564kb | C++20 | 595b | 2023-07-04 15:37:41 | 2023-07-04 15:37:43 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
#define X first
#define Y second
#define SZ(a) ((int)a.size())
#define ALL(v) v.begin(), v.end()
#define pb push_back
int main() {
ios::sync_with_stdio(0), cin.tie(0);
int n, d;
cin >> n >> d;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < 6; ++j) {
int nw = 0;
for (int k = 0; k < 3; ++k)
if (j >> k & 1)
nw |= d << (k * 6);
cout << nw << " \n"[j == 5];
}
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3528kb
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: 3524kb
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 0 60 3840 ...
result:
ok Correct answer
Test #3:
score: 0
Accepted
time: 1ms
memory: 3352kb
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 2 128 130 81...
result:
ok Correct answer
Test #4:
score: 0
Accepted
time: 1ms
memory: 3380kb
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 0 59 3776 ...
result:
ok Correct answer
Test #5:
score: 0
Accepted
time: 1ms
memory: 3376kb
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 69649 0 1...
result:
ok Correct answer
Test #6:
score: 0
Accepted
time: 1ms
memory: 3564kb
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 0 49 3136 ...
result:
ok Correct answer
Test #7:
score: 0
Accepted
time: 1ms
memory: 3404kb
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 0 5 320 325 ...
result:
ok Correct answer
Test #8:
score: 0
Accepted
time: 0ms
memory: 3388kb
input:
1 57
output:
0 57 3648 3705 233472 233529
result:
ok Correct answer
Test #9:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
1 22
output:
0 22 1408 1430 90112 90134
result:
ok Correct answer
Test #10:
score: 0
Accepted
time: 1ms
memory: 3396kb
input:
1 60
output:
0 60 3840 3900 245760 245820
result:
ok Correct answer
Test #11:
score: 0
Accepted
time: 1ms
memory: 3560kb
input:
1 2
output:
0 2 128 130 8192 8194
result:
ok Correct answer
Test #12:
score: 0
Accepted
time: 1ms
memory: 3560kb
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