QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#130017 | #6641. XOR Dice | smosp# | AC ✓ | 1ms | 3576kb | C++17 | 420b | 2023-07-23 13:53:21 | 2023-07-23 13:53:22 |
Judging History
answer
#include "bits/stdc++.h"
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, d;
cin >> n >> d;
vector<int> ans(6);
ans[0] = 0;
ans[1] = d;
ans[2] = d<<6;
ans[3] = d<<12;
ans[4] = ans[1] + ans[2];
ans[5] = ans[2] + ans[3];
while(n--) {
for (int i =0; i < 6; i++) {
cout << ans[i] << " ";
}
cout << '\n';
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3576kb
input:
3 2
output:
0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320
result:
ok Correct answer
Test #2:
score: 0
Accepted
time: 1ms
memory: 3448kb
input:
100 60
output:
0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 ...
result:
ok Correct answer
Test #3:
score: 0
Accepted
time: 0ms
memory: 3452kb
input:
99 2
output:
0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0...
result:
ok Correct answer
Test #4:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
99 59
output:
0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 ...
result:
ok Correct answer
Test #5:
score: 0
Accepted
time: 1ms
memory: 3528kb
input:
93 17
output:
0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105...
result:
ok Correct answer
Test #6:
score: 0
Accepted
time: 1ms
memory: 3520kb
input:
100 49
output:
0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 ...
result:
ok Correct answer
Test #7:
score: 0
Accepted
time: 1ms
memory: 3516kb
input:
100 5
output:
0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 ...
result:
ok Correct answer
Test #8:
score: 0
Accepted
time: 1ms
memory: 3460kb
input:
1 57
output:
0 57 3648 233472 3705 237120
result:
ok Correct answer
Test #9:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
1 22
output:
0 22 1408 90112 1430 91520
result:
ok Correct answer
Test #10:
score: 0
Accepted
time: 1ms
memory: 3516kb
input:
1 60
output:
0 60 3840 245760 3900 249600
result:
ok Correct answer
Test #11:
score: 0
Accepted
time: 0ms
memory: 3504kb
input:
1 2
output:
0 2 128 8192 130 8320
result:
ok Correct answer
Test #12:
score: 0
Accepted
time: 0ms
memory: 3460kb
input:
10 24
output:
0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840
result:
ok Correct answer