QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#260716 | #6641. XOR Dice | ucup-team1198# | AC ✓ | 0ms | 3696kb | C++20 | 615b | 2023-11-22 14:28:37 | 2023-11-22 14:28:37 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pii pair<int, int>
#define ld long double
#define all(a) (a).begin(), (a).end()
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n, d;
cin >> n >> d;
for (int i = 0; i < n; ++i) {
for (int msk = 1; msk <= 6; ++msk) {
int x = 0;
for (int j = 0; j < 3; ++j) {
if (msk & (1 << j)) {
x |= (d << (6 * j));
}
}
cout << x << ' ';
}
cout << '\n';
}
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3600kb
input:
3 2
output:
2 128 130 8192 8194 8320 2 128 130 8192 8194 8320 2 128 130 8192 8194 8320
result:
ok Correct answer
Test #2:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
100 60
output:
60 3840 3900 245760 245820 249600 60 3840 3900 245760 245820 249600 60 3840 3900 245760 245820 249600 60 3840 3900 245760 245820 249600 60 3840 3900 245760 245820 249600 60 3840 3900 245760 245820 249600 60 3840 3900 245760 245820 249600 60 3840 3900 245760 245820 249600 60 3840 3900 245760 ...
result:
ok Correct answer
Test #3:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
99 2
output:
2 128 130 8192 8194 8320 2 128 130 8192 8194 8320 2 128 130 8192 8194 8320 2 128 130 8192 8194 8320 2 128 130 8192 8194 8320 2 128 130 8192 8194 8320 2 128 130 8192 8194 8320 2 128 130 8192 8194 8320 2 128 130 8192 8194 8320 2 128 130 8192 8194 8320 2 128 130 8192 8194 8320 2 128 130 8192...
result:
ok Correct answer
Test #4:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
99 59
output:
59 3776 3835 241664 241723 245440 59 3776 3835 241664 241723 245440 59 3776 3835 241664 241723 245440 59 3776 3835 241664 241723 245440 59 3776 3835 241664 241723 245440 59 3776 3835 241664 241723 245440 59 3776 3835 241664 241723 245440 59 3776 3835 241664 241723 245440 59 3776 3835 241664 ...
result:
ok Correct answer
Test #5:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
93 17
output:
17 1088 1105 69632 69649 70720 17 1088 1105 69632 69649 70720 17 1088 1105 69632 69649 70720 17 1088 1105 69632 69649 70720 17 1088 1105 69632 69649 70720 17 1088 1105 69632 69649 70720 17 1088 1105 69632 69649 70720 17 1088 1105 69632 69649 70720 17 1088 1105 69632 69649 70720 17 1088 1105...
result:
ok Correct answer
Test #6:
score: 0
Accepted
time: 0ms
memory: 3508kb
input:
100 49
output:
49 3136 3185 200704 200753 203840 49 3136 3185 200704 200753 203840 49 3136 3185 200704 200753 203840 49 3136 3185 200704 200753 203840 49 3136 3185 200704 200753 203840 49 3136 3185 200704 200753 203840 49 3136 3185 200704 200753 203840 49 3136 3185 200704 200753 203840 49 3136 3185 200704 ...
result:
ok Correct answer
Test #7:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
100 5
output:
5 320 325 20480 20485 20800 5 320 325 20480 20485 20800 5 320 325 20480 20485 20800 5 320 325 20480 20485 20800 5 320 325 20480 20485 20800 5 320 325 20480 20485 20800 5 320 325 20480 20485 20800 5 320 325 20480 20485 20800 5 320 325 20480 20485 20800 5 320 325 20480 20485 20800 5 320 325 ...
result:
ok Correct answer
Test #8:
score: 0
Accepted
time: 0ms
memory: 3504kb
input:
1 57
output:
57 3648 3705 233472 233529 237120
result:
ok Correct answer
Test #9:
score: 0
Accepted
time: 0ms
memory: 3504kb
input:
1 22
output:
22 1408 1430 90112 90134 91520
result:
ok Correct answer
Test #10:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
1 60
output:
60 3840 3900 245760 245820 249600
result:
ok Correct answer
Test #11:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
1 2
output:
2 128 130 8192 8194 8320
result:
ok Correct answer
Test #12:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
10 24
output:
24 1536 1560 98304 98328 99840 24 1536 1560 98304 98328 99840 24 1536 1560 98304 98328 99840 24 1536 1560 98304 98328 99840 24 1536 1560 98304 98328 99840 24 1536 1560 98304 98328 99840 24 1536 1560 98304 98328 99840 24 1536 1560 98304 98328 99840 24 1536 1560 98304 98328 99840 24 1536 1560...
result:
ok Correct answer